Git Product home page Git Product logo

ziondevelopers / playx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xerasin/playx

18.0 18.0 14.0 52.03 MB

In-game Internet (YouTube, Twitch, SoundCloud, mp4 and etc.) media player for Garry's Mod

Home Page: http://steamcommunity.com/sharedfiles/filedetails/?id=106516163

License: Other

Lua 99.92% Batchfile 0.08%
garrysmod garrysmod-addon media-player mp3 mp4 soundcloud twitch vimeo youtube

playx's People

Contributors

adam759 avatar atomeh avatar darthtealc avatar juliocoliveira avatar linus045 avatar nexbr avatar sk89q avatar srlion avatar swadicalrag avatar tr094 avatar x-coder avatar xerasin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

playx's Issues

Youtube video problem

Some youtube video i can play,but most video i can't watch.
And I will see this error: "an error occurred please try again later".
Or just see the loading picture.
This problem has been up for several weeks.
My friend has this problem too.
How fix these problem? Thanks^^

Not able to spawn playx

For some reason i'm not able to spawn the playx entity. I checked console and this is what I found. Lua Error: [ERROR] addons/playx 2.7.5/lua/entities/gmod_playx/init.lua:88: attempt to call field 'SendSpawnDialogUMsg' (a nil value) 1. SpawnFunction - addons/playx 2.7.5/lua/entities/gmod_playx/init.lua:88 2. Spawn_SENT - gamemodes/sandbox/gamemode/commands.lua:610 3. unknown - gamemodes/darkrp/gamemode/server/admincc.lua:438 4. unknown - lua/includes/modules/concommand.lua:69

Please help me ;) I Want to watch videos with my server :)

Volume slider no longer works for clients (or myself)

Hi, I noticed the volume slider stopped working after the latest SRCDS update. I doesn't work on my development machine, nor my 2 dedicated servers. This just started. To add, this is just plain old YouTube videos.

Getting out of game and into the mixer, awesomium_process.exe(was it called that exactly before?) is manageable, but not from in game from the PlayX settings control.

I would be glad to offer any additional information upon request. I would also be glad to start checking out the script if I knew where this action happens.

Radio gives errors

Weird cuz a billboard or any other video screen works fine but if i do a radio i get this spammed in the console

[PlayX] lua/includes/modules/draw.lua:70: 'DefaultBold' isn't a valid font

  1. SetFont - [C]:-1
   2. SimpleText - lua/includes/modules/draw.lua:70
    3. HUDPaint - lua/entities/gmod_playx/cl_init.lua:461
     4. v - lua/entities/gmod_playx/cl_init.lua:57
      5. unknown - lua/includes/modules/hook.lua:82

TEST [lua/entities/gmod_playx/cl_init.lua][lua/entities/gmod_playx/cl_init.lua]
FOUND IN ADDON [106516163]
TEST [lua/entities/gmod_playx/init.lua][lua/entities/gmod_playx/cl_init.lua]
TEST [lua/entities/gmod_playx/shared.lua][lua/entities/gmod_playx/cl_init.lua]
TEST [lua/entities/gmod_playx/cl_init.lua][lua/entities/gmod_playx/cl_init.lua]
FOUND IN ADDON [106516163]
TEST [lua/entities/gmod_playx/init.lua][lua/entities/gmod_playx/cl_init.lua]
TEST [lua/entities/gmod_playx/shared.lua][lua/entities/gmod_playx/cl_init.lua]

ULib group usage privilages

There seems to be a problem with the permissions related to who can use PlayX. When someone wants to use PlayX, I have to select their specific group in order for them to use it. So the problem in turn is only the selected user group can change the song or video in PlayX, other groups can't use it even if they are higher in rank than the target group. Any help would be appreciated.
Use means to change the video or music, stop media, etc.

Suggestion

I have suggestion for this addon. Can you add new wiremod output named "CurrentVidPos", which will output integer of current video position in seconds, which will output -1 if nothing is playing? Currently(as for time of this issue) you have to use wiremod timers, which are inaccurate since video buffering can stop due to low connection speed and at the same time output of Wiremod timer gate is raising up. What do you think?

Lua error upon attempting to play a video on PlayX

I seem to be having problems getting PlayX to work. When I spawn in a player, and try to select media, it spits out a Lua error in console

TEST [lua/includes/modules/hon.lua][lua/includes/modules/concommand.lua]

[PlayX] lua/playx/playx.lua:440: attempt to call field 'SetCurrentMediaLength' (a nil value)

  1. BeginMedia - lua/playx/playx.lua:440
  2. OpenMedia - lua/playx/playx.lua:305
  3. unknown - lua/playx/playx.lua:587
  4. unknown - lua/includes/modules/concommand.lua:69

I'm not using the extracted version.

I don't have any addons that can interact/use PlayX.

I spawn a PlayX player, I go to spawn menu, options, administrate, I put in a youtube URL, click the Open Media button, and it spits out the lua error.

I've tried multiple URL's with multiple providers, and all of them spit out the same error.

Also, using the bookmarks page as an alternative yields identical results.

"only play videos near me" option on with radio

With the "only play videos near me" option on while using shoutcast radio (and possibly other audio only media) causes this error:

[PlayX 2.7.3] lua/playx/client/playx.lua:679: bad argument #1 to 'RunJavascript' (string expected, got nil)

  1. RunJavascript - [C]:-1
    1. unknown - lua/playx/client/playx.lua:679

when you go outside the specified range to stop playing the video while continuing to play, also if you try to play any other media it will not play.

PlayX 2.7.4 from steam workshop http://steamcommunity.com/sharedfiles/filedetails/?id=106516163

Lag issues with video after last update

i was playing on a billboard and notice that there was some lagg between them and when i remove the billboard with z i get this (Openend with Navigator) bookmarks works fine

PlayXBrowser: Requested to open <> /
PlayX: Beginning media DcJFdCmN98s with handler YouTubePopup, start at 0s
PlayX: Metadata function available via provider YouTube
PlayX: Playing DcJFdCmN98s using handler YouTubePopup
PlayX: Received metadata via provider YouTube
PlayX DEBUG: Metadata received
[HTML] Unsafe JavaScript attempt to access frame with URL http://www.youtube.com/ from frame with URL http://ad.doubleclick.net/N4061/adi/com.ythome/_default;sz=970x250;tile=1;plat=pc;dc_yt=1;kbsg=HPNL130821;kcr=nl;kga=-1;kgg=-1;klg=en;kmyd=ad_creative_1;ord=2934911900665611?. Domains, protocols and ports must match.

[HTML] Unsafe JavaScript attempt to access frame with URL http://www.youtube.com/ from frame with URL http://ad.doubleclick.net/N4061/adi/com.ythome/_default;sz=970x250;tile=1;plat=pc;dc_yt=1;kbsg=HPNL130821;kcr=nl;kga=-1;kgg=-1;klg=en;kmyd=ad_creative_1;ord=2934911900665611?. Domains, protocols and ports must match.

PlayX Info: Page loaded, preparing to inject
[HTML] Unsafe JavaScript attempt to access frame with URL http://www.youtube.com/ from frame with URL http://ad.doubleclick.net/N4061/adi/com.ythome/_default;sz=970x250;tile=1;plat=pc;dc_yt=1;kbsg=HPNL130821;kcr=nl;kga=-1;kgg=-1;klg=en;kmyd=ad_creative_1;ord=2934911900665611?. Domains, protocols and ports must match.

[HTML] Unsafe JavaScript attempt to access frame with URL http://www.youtube.com/ from frame with URL http://ad.doubleclick.net/N4061/adi/com.ythome/_default;sz=970x250;tile=1;plat=pc;dc_yt=1;kbsg=HPNL130821;kcr=nl;kga=-1;kgg=-1;klg=en;kmyd=ad_creative_1;ord=2934911900665611?. Domains, protocols and ports must match.

[HTML] Unsafe JavaScript attempt to access frame with URL http://www.youtube.com/ from frame with URL http://ad.doubleclick.net/N4061/adi/com.ythome/_default;sz=970x250;tile=1;plat=pc;dc_yt=1;kbsg=HPNL130821;kcr=nl;kga=-1;kgg=-1;klg=en;kmyd=ad_creative_1;ord=2934911900665611?. Domains, protocols and ports must match.

Sound from video continues to play outside of range

Hello!

First and foremost, I apologize if this is a user error on my end, but I believe I've gotten everything working and I can't find any documentation on this, but:

Sound from my videos seems to keep playing outside of the range that I've set for the player. I'm running the latest Dev version of GMod.

SendSpawnDialogUMsg

Hey I am trying to add PlayX to a server and it seems that when I go to spawn one it only wants to post a error into console. Here is the error:

[ERROR] addons/playx 2.7.5/lua/entities/gmod_playx/init.lua:88: attempt to call
field 'SendSpawnDialogUMsg' (a nil value)

  1. SpawnFunction - addons/playx 2.7.5/lua/entities/gmod_playx/init.lua:88
    1. Spawn_SENT - gamemodes/sandbox/gamemode/commands.lua:610
    2. unknown - gamemodes/darkrp/gamemode/server/admincc.lua:438
      1. unknown - lua/includes/modules/concommand.lua:69

I seen where you said to ImDesire that it had to be a error in his DarkRP but it can't be a error because nothing is changed in that area for our server. Any help would be thanked for.

Errors in console whenever playing PlayX

Every time I play a youtube video on the PlayX player I get this error in console repeatedly there is also a box at the top of my screen with no text in it.

[PlayX 2.7.5] lua/includes/modules/draw.lua:70: 'DefaultBold' isn't a valid font

  1. SetFont - [C]:-1
    1. SimpleText - lua/includes/modules/draw.lua:70
    2. HUDPaint - lua/entities/gmod_playx/cl_init.lua:455
      1. v - lua/entities/gmod_playx/cl_init.lua:57
      2. unknown - lua/includes/modules/hook.lua:82

Shoutcast steams not playing

When trying to play shoutcast radio stream http://64.27.3.130:8181 (BCN Online) I get

PlayX: Beginning media http://64.27.3.130:8181/;stream%.nsv with handler JWAudio, start at 0s
PlayX: Metadata function available via provider Shoutcast
PlayX: Received metadata via provider Shoutcast
PlayX: Playing http://64.27.3.130:8181/;stream%.nsv using handler JWAudio
PlayX: Page loaded, preparing to inject

and the media never plays, this happens with all other shoutcast streams as well

PlayX appears to be blocking other GUI elements

Sometimes when the PlayX is playing something from youtube it won't let me click some items on the GUI such as the scoreboard or move the camera around in PAC3 editor. Instead, whenever I click on something it will pause/resume the current video. When I double-click something it sometimes opens the video in a flash player on full screen outside of the game. It's like the video that's playing was on top of the GUI, it's invisible but still takes input when I click something. This happens almost every time some video is playing. I know it happenes when the video is on youtube, I'm not 100% sure about other providers. Happens when the PlayX source has a screen as well as when it doesn't. It only influences some GUI parts (on my server the biggest problems are the scoreboard when you press TAB and the PAC3 outfit editor). Some other people told me they are also having this issue. I'm playing GMod in window mode if that makes any difference, idk if the other people are as well.

I cant spawn the player in i get a LUA error

Hi when I try to spawn the player in I get this error

[ERROR] addons/playx-master/lua/playx/playx.lua:56: attempt to call method 'EV_HasPrivilege' (a nil value) 1. AccessManager - addons/playx-master/lua/playx/playx.lua:56 2. IsPermitted - addons/playx-master/lua/playx/playx.lua:138 3. SendSpawnDialogUMsg - addons/playx-master/lua/playx/playx.lua:533 4. SpawnFunction - addons/playx-master/lua/entities/gmod_playx/init.lua:90 5. Spawn_SENT - gamemodes/sandbox/gamemode/commands.lua:610 6. unknown - gamemodes/sandbox/gamemode/commands.lua:667 7. unknown - lua/includes/modules/concommand.lua:69

Plese Help me

Volume change

Hi, i cant change the volume, default is 80 and i put it on 5 and sounds the same, is too high.

My console show this:

[PlayX] lua/entities/gmod_playx/cl_init.lua:212: attempt to call method 'ChangeVolume' (a nil value)

  1. unknown - lua/entities/gmod_playx/cl_init.lua:212

Timer Failed! [playxVolumeFix][@lua/entities/gmod_playx/cl_init.lua (line 212)]

Can't spawn a player

First thing first Hello and thank you for your amazing job on what I consider to be the best addon on Gmod ! I can't seem to be able spawn a player anymore,everytime I try to spawn one I get this error message in the console :"
[ERROR] addons/playx/lua/entities/gmod_playx/init.lua:87: attempt to index global 'PlayX' (a nil value)

  1. SpawnFunction - addons/playx/lua/entities/gmod_playx/init.lua:87
    1. Spawn_SENT - gamemodes/sandbox/gamemode/commands.lua:610
    2. unknown - gamemodes/sandbox/gamemode/commands.lua:667
      1. unknown - lua/includes/modules/concommand.lua:69"
        If you could help me fix this problem that'd be great !

Got the error (Lag issues)

Alright this is what i found

PlayX Info: Page loaded, preparing to inject
[HTML] Uncaught TypeError: Cannot set property 'cssText' of undefined
TEST [lua/entities/gmod_playx/cl_init.lua][lua/entities/gmod_playx/cl_init.lua]
FOUND IN ADDON [106516163]
TEST [lua/entities/gmod_playx/init.lua][lua/entities/gmod_playx/cl_init.lua]
TEST [lua/entities/gmod_playx/shared.lua][lua/entities/gmod_playx/cl_init.lua]

[PlayX] lua/entities/gmod_playx/cl_init.lua:212: attempt to call method 'ChangeVolume' (a nil value)

  1. unknown - lua/entities/gmod_playx/cl_init.lua:212

Timer Failed! [playxVolumeFix][@lua/entities/gmod_playx/cl_init.lua (line 212)]

Error or crash for people when they join server while video is playing.

We have an issue. Please I need your help. We installed it to the server through workshop collection for server. It plays fine and everything but when people join they crash from server or they timed out or something preventing them from joining while a video is running. Any idea on what it could be?

PlayX 'Volume Issue'

On my Dedicated Server when somebody plays a video it puts the volume at 100 and when i change the volume it does not stick, when someone puts a new video on it goes back at 100 (it is too loud) i dont like it at 100 all the time i like it at 5 or 10 could you please fix this 'youtube api volume bug'

thanks

No permission

Hi, I'm a superadmin with ulx and yet nobody has permission to do anything wtih playx. On the list with the ulx groups, every group is there and it doesn't do anyhting

resume playing from the overall playing time instead of the time when you left the range

Hi Nexus, you did a great job. I like this new range playing and GUI changes.
I started to do something similar ago, in my cinema branch@gihub for playX. It worked too, but your's is so much nicer.

Do you think you can implement a option so the resume position of the video is not the the same when you left the range, but instead resume the position as if you didn't have left the range? (So that all players are seeing always see the same like they are in sync.)
All you have to do for this is starting the resume from the position from time of start of the playing request and add the current time to this.

Maybe you can do it in a way so the clients or server owner can choose by a setting if they want to start the playing from the position they left the range, or from "live" position.

If you need the code for this I can lookup if I find it, I did it a while ago and it worked halfway.

Says Flash Isn't Installed

No matter what I do, it won't play anything. I'm running Mac OS X 10.8 and hosting this on a server running an up to date copy of PlayX and GMod, made sure Flash was installed and up to date, rebooted my computer, GMod, Steam, reinstalled Flash, etc, not sure what there is left to do.

It simply displays "Adobe Flash Player or HTML 5 browser required for playback." no matter what.

Here is all PlayX says when I try to play a video. (Two videos attempted here)

PlayX: Playing nCgQDjiotG0 using handler YouTubePopup
PlayX DEBUG: Metadata received
PlayX Info: Page loaded, preparing to inject
PlayX: Playing http://www.youtube.com/v/nCgQDjiotG0&showsearch=0&showinfo=0&version=3&autoplay=1&rel=0&enablejsapi=1&hd=0&start=__start__ using handler FlashAPI
PlayX DEBUG: Metadata received
PlayX Info: Page loaded, preparing to inject

screen shot 2013-07-13 at 1 27 35 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.