I only get audio from a RTMP stream

Hi all,



I have just started trying to write a plug-in by myself. The idea is to play videos from a streaming server we have.



The thing is, that I already got to play the rtmp stream using the plex player.php page from safari, but when I try it with a WebVideoItem object I just get the audio and no video.



This works fine on safari:

http://www.plexapp.com/player/player.php?url=rtmp://212.31.41.50/vod/&clip=mp4:TheTriplets-S04E05-EN070-960k.mov



but within the plug-in I only get the audio and no video using a WebVideoItem object:



dir.Append(

WebVideoItem(

url = ‘http://www.plexapp.com/player/player.php?url=rtmp://212.31.41.50/vod/&clip=mp4:TheTriplets-S04E05-EN070-960k.mov’,

title = ‘Test WebVideoItem’

)

)



I have tried with a VideoItem object and using a direct link to the file, then I get both audio and video:



dir.Append(

VideoItem(

key = ‘http://www.cromokids.tv/TheTriplets-S04E05-EN070-960k.mov’,

title = ‘Test File’

)

)



Maybe I am doing something wrong here, but I don’t know…

Any hint is apreciated.

If you’ve always got a direct link to the file I’d use that - the player integration is way better. Only use rtmp or flash if you need to.



Also, there’s a RTMPVideoItem (see http://dev.plexapp.com/docs/Objects.html#media-item-objects) that deals with URL construction etc. that makes things easier.



Finally, the audio but no video sounds like you are using flash 10.1.x not 10.0.x



Jonny



Thanks Jonny

unfortunately I cannot acces all the files directly, I copied one to the http root folder just to try it out. I tried the RTMPVideoItem but then I got nor audio or video... :-(
I'll check the configuration of the streaming server to see if I can tweak something there (is Wowza) or maybe with a custom player in the same server. All the files are quicktime containers with h.264 video on them.

w.

Bummer about the direct file access, makes things a lot easier.



Couple of things: First, the RTMPVideoItem just constructs a WebVideoItem with the correct URL based on the clip and player. So, if you can get the WebVideoItem to work by constructing the URL yourself the RTMPVideoItem should also.



Second, are you sure you’re not using the new flash version, this is know to cause audio and no video issues? See this thread for details (http://forums.plexapp.com/index.php/topic/15087-audio-but-no-video-with-plugins/).



Jonny

Hmm, I just noticed you said you got the player working in safari. That rules out the flash version issue.



I’m at work now but I’ll have a look more closely at home. Have you found the wiki page with details of the various player parameters:



http://wiki.plexapp.com/index.php/Online_videoplayers



Jonny


No, it doesn't :P The Plexapp Flash videoplayer (Flowplayer) works fine with Flash 10.0 and 10.1 in a webbrowser. It's just that Plex can't handle Flash player 10.1 yet.
The URL from your sample code (http://www.plexapp.com/player/player.php?url=rtmp://212.31.41.50/vod/&clip=mp4:TheTriplets-S04E05-EN070-960k.mov) works for me in a webbrowser, and should work fine in Plex too (as long as your system has the Flash 10.0 plugin). You can check your currently installed version here: http://kb2.adobe.com/cps/155/tn_15507.html

Well, that’s blindingly obvious. What was I thinking when I wrote that second reply I wonder?


You were right Jonny!



I just downgraded the flash version to 10.0 r45 and now works like a charm…



Thank you all for your help!

Now I have to try and make something that works. :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.