• PlayX media player
    191 replies, posted
[QUOTE=GawsherMcGee;19300475]Screw youtube player, this is the bomb! Time for a theater gamemode.[/QUOTE] That would be extremely boring. Here's a tip, Watch a movie outside of gmod, Even better, Watch it in a real theater.
[QUOTE=Samantha Fangs;19335996]You cant save things with the Youtube player. Ive been using gmod a long time and when i used youtube played there was no save videos in it.[/QUOTE] No, but you can save the links to videos.
Beta 3 is out, with some minor bug fixes. [url]http://github.com/sk89q/playx/downloads[/url]
I officially released 1.0. The upload I put on garrysmod.org is a no-brainer version of everything -- just drop the PlayX folder into your addons folder. The Media Query extension that allows you to search YouTube from chat is also included, so you no longer have to manually install it. [url]http://www.garrysmod.org/downloads/?a=view&id=88535[/url] FYI, since the first public release, there has only been bug fixes. This version is no different from RC1, sans a version number change. Edit: I noticed SGNinja101's YouTube vote addon. This version automatically includes Media Query, which will not conflict with the version for PlayX that SGNinja101 is making, but both Media Query and his addon will trigger on mention of a YouTube URL. Media Query will only print the title of the video, so at worst, it may create chat spam.
How about creating a chrome version? Perhaps using gm_bass as well to stream the mp3 files?
That's still in the to-consider-to-do list. I've never used gm_bass before, but doesn't it require a DLL?
gm_bass is the dll. I'm in need for a media solution, so I'm creating one with chrome. It's not very difficult, just a replacement for the html vgui element, essentially. Bass is slightly more complicated to use, there is no documentation, so I've had to work it out myself..
Well my intention is that everyone can view/play the media, so having requirements is out of the question. You [i]can[/i] play MP3 files with PlayX. Or by streaming MP3, do you mean streaming Shoutcast? EDIT: After figuring out how gm_chrome worked, getting PlayX to automatically use gm_chrome took only 10 minutes. And it works beautifully. However, I still need to allow gm_chrome to be disabled, clean up the code a bit, and most importantly, battle an Adobe Flash Player warning. You can find the changes in a new gm_chrome branch: [url]http://github.com/sk89q/playx/tree/gm_chrome[/url] Diff: [url]http://github.com/sk89q/playx/commit/4b38dff7c17d91fb7e27e55528f311005e172eab[/url]
[QUOTE=aualin;19230364]I have to applaud the decision to license it under GPL. Looks amazing, especially the project/camera![/QUOTE] Me to , Work on adding Crome/gm bass and other Movie sites? How can i stream music ?
I'm working on Chrome, but not gm_bass. I currently don't have plans to add other movie sites (or at least not too many). Instead, I was planning to add a tool to allow you paste in embed code and it would auto-detect the URLs and play it, although that feature didn't make it in the first version. Hulu is one possible exception, but getting it to auto-play is not trivial, at least without requiring gm_chrome. What do you mean by "stream music"? The word stream has a very specific meaning. If you want to just play MP3 files, enter the path to a MP3 file.
I was wondering if there was a way to have users open the GUI menu with a keyboard press instead of opening the q menu. And if there is a way to auto-create the player on map load by a gamemode script. Any way to do this?
There's no other menu at the moment. To create the player, just create a gmod_playx entity and give it a model.
[QUOTE=sk89q;19676955]There's no other menu at the moment. To create the player, just create a gmod_playx entity and give it a model.[/QUOTE] But the API notes that the function void PlayX.SpawnForPlayer(entity ply, string model) requires a player entity, which wouldn't make sense when creating it as soon as the map starts. I'll try spawning it with a model though.
The player entity is needed because that function sends a trace from the player's eyes to see where to place the PlayX player. It's more of an internal function. You can just create the entity yourself and put it somewhere on the map.
Some of you have been using the player for a while now. Are there any minor problems that need to be fixed? For example, do people ask how to turn off the player often, and is explaining how too cumbersome? (That's something I'm working on improving.) Also, I'll gladly accept suggestions for ideas that are not listed on this page: [url]http://wiki.github.com/sk89q/playx/roadmap[/url]
I tried to play something from youtube from a specific time, and that didn't work. I tried with the jwflv player and without it.
Sometimes the video doesn't play for some players when playing a movie on my webhost. I'm not sure if it's a problem with PlayX or a bandwidth issue.
[QUOTE=CapsAdmin;19722477]I tried to play something from youtube from a specific time, and that didn't work. I tried with the jwflv player and without it.[/QUOTE] Can you provide a link to the video and the time that you tried to skip to? Some videos cannot be skipped to a position due to the placement of the keyframes in the video file and Flash Player's crappiness. [QUOTE=Kenny_;19722870]Sometimes the video doesn't play for some players when playing a movie on my webhost. I'm not sure if it's a problem with PlayX or a bandwidth issue.[/QUOTE] What format are the videos in? Could you provide a sample video? Do you know if the behavior is consistent among users? As in, will some people always be unable to play the video, and others will always be able to play it, or does the behavior appear to be random? Does restarting the video change the situation for anyone? How many videos have you tried it with? Does this affect YouTube videos? And lastly, for those who cannot see the video, what do they see on the screen?
[url]http://www.youtube.com/watch?v=Wl7n30_5Fi8[/url] 6:30 (Ignore the annoying girl gamer(I just wanted to show someone the nymph in fable)) Oh and I can't move the players for some weird reason, I'm not sure if it's prop protection doing it or not. (I'm using simple prop protection and I've tried turning it off in the options menu, but I haven't tried to disable the addon yet.) [editline]09:00PM[/editline] I can move the projector just fine.
Oh, you need to enter the skip time in seconds. I was supposed to have it parse more human readable time formats, but I forgot to do that before release. As for the other models, are you able to spawn the models you are using through the spawn list normally?
This is great! But one thing that is really needed is local file playing, i.e "C:\gmod_vids\test.mp4", etc. [editline]05:33PM[/editline] Shit, Youtube videos don't work. Yes, flash is installed for IE and firefox (I manually installed it for both, so they both have it) I download JW Player, and put it in the same folder the addon. Neither JW player or standard flash works, with any video I try, and the urls do not contain things like &&hd=1, etc. The player itself seems to work, as I see the youtube player and everything, but I keep getting, for the normal flash player (JW disabled) This video is unavailable, it may take some time too proccess. (something like that). When I try JW, I get The video does not exist or has been deleted. Yes, all the videos exist, and they have been up for months, so there should be no proccessing, and anyways, it works in IE and Firefox. Am I doing something wrong? Or has it broken already. The addon itself seems to work, no lua errors I could see. And like I said, the screen turned on and everything, it just seems to be convinced the videos don't exist. I'll post a screenshot in a bit.
[QUOTE=sk89q;19728159]Oh, you need to enter the skip time in seconds. I was supposed to have it parse more human readable time formats, but I forgot to do that before release. As for the other models, are you able to spawn the models you are using through the spawn list normally?[/QUOTE] Oh. So this is why I couldn't move screens. I didn't have css and all that stuff installed.
[QUOTE=GetOutOfBox;19729373] Shit, Youtube videos don't work. Yes, flash is installed for IE and firefox (I manually installed it for both, so they both have it) [...][/QUOTE] Have you been able to test this on multiplayer with another person? I am not sure what the problem is. It may be a problem between you and YouTube, but it only affects embedded IE. A screenshot would be nice though.
This is coded very well. I applaud you on your work.
[QUOTE=sk89q;19732840]Have you been able to test this on multiplayer with another person? I am not sure what the problem is. It may be a problem between you and YouTube, but it only affects embedded IE. A screenshot would be nice though.[/QUOTE] I havn't tried it on multiplayer, and I'll post a screenshot in a few minutes. [editline]11:48AM[/editline] [img_thumb]http://i50.tinypic.com/xdysdi.jpg[/img_thumb] [img_thumb]http://i45.tinypic.com/2dv395u.jpg[/img_thumb] [img_thumb]http://i48.tinypic.com/2mfyu4z.jpg[/img_thumb] snip
Could you post a screenshot of the default YouTube player, rather than the JW player?
I branched off 1.0 and I'm now making some small changes for 1.0.1: [LIST] [*]Human-readable time formats are now parsed (ss, mm:ss, hh:mm:ss, etc.) [*]Errors and messages are displayed in hints instead [*]Warning added for users without Flash Player installed for IE: [IMG]http://img59.imageshack.us/img59/2521/noflash.jpg[/IMG] [/LIST] Download: [URL]http://github.com/sk89q/playx/archives/1.0.1[/URL] Disclaimer: Not a final version.
[QUOTE=sk89q;19743391]Could you post a screenshot of the default YouTube player, rather than the JW player?[/QUOTE] I have one, but I made a mistake in my first post, on the deault flash player, the in game screen (not the moniter, just the screen model in game) just is filled with white.
This addon is awesome, but i wanted to know how we need to stream from a source (Ex. VLC)
[QUOTE=GetOutOfBox;19747606]I have one, but I made a mistake in my first post, on the deault flash player, the in game screen (not the moniter, just the screen model in game) just is filled with white.[/QUOTE] Once you've started a video, type [B]playx_dump_html[/B] in console. Copy the code, put it into Notepad, and then save the file as .html on your desktop. Open the file in Internet Explorer. You may see warnings from Flash Player, but tell me what happens. [QUOTE=Link2006;19753475]This addon is awesome, but i wanted to know how we need to stream from a source (Ex. VLC)[/QUOTE] The only streaming protocol that can be supported is RTMP. There are basically only about 3 servers that can do that right now: Adobe Flash Media Server ($$$), Wowza Media Service ($$$), Red5 (free). The number of client programs that can push RTMP to a server is also very low, and none of them, to my knowledge, can double as a pull server. At the moment, PlayX does not support RTMP, but implementing it would be trivial. You can use an online service such as [URL="http://livestream.com"]Livestream[/URL] to broadcast.
Sorry, you need to Log In to post a reply to this thread.