jwplayerrtmpopenmeetings

Streaming OpenMeetings rtmp stream in JWPlayer - debug?


Few years back i've written code in Flex for accessing streams from OpenMeetings. Now i need to rewrite it to RubyOnRails. I'm using JWPlayer too play stream

jwplayer("CameraElement").setup({
 file: "{stream_name}",
 width: 320,
 height: 240,
 primary: "html5"
});

I have 2 streams:

I had no problem in running Camera stream: rtmp://{address}:{port}/{folder}/{roomID}/flv:{StreamID}

but the same thing doesnt work with Desktop stream (from Desktop Sharer) - despite that it was working back in Flex. I know that JWPlayer finds stream - because after clicking play JWPlayer shows 'load' icon and then proceeds to show me black JWPlayer screen without content - and if I give wrong StreamID - JWPlayer shows infinitely 'load' icon.

What can I now do:

  1. How can i debug this problem - it doesnt seem that there is 'debug flag' anywhere in JWPlayer
  2. Can it be happening because 'Desktop stream' only has video data - and no audio data (ive tried to feed only Video data to Camera stream, and JWPlayer didnt have any issues)
  3. I've tried manipulating with options - primary: "flash", and giving file in playlist, or changing flv in stream name to mp4 - no luck here
  4. Can it be caused by too long StreamID in DesktopStream ?- its 32 alphanumeric signs, and one number in CameraStream.

Any idea is welcome...

PS OpenMeetings - version 3.03 JWPlayer - 4.10


Solution

  • I was finally able to show stream from desktop:

    1) There is no need to add functions to NetPlayer.as (despite what i suggested in comments) - JWPlayer is doing good job in handling errors for lacking functions for those calls for you (maybe even too good) - so they wont matter .

    2) If you see black screen - in options of JWPlayer object disable flag: stagevideo: "false"

    that should force rtmp connection to create stream in 'video' element, not in 'stage' element - that fixed the issue for me. Case closed.