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:
Any idea is welcome...
PS OpenMeetings - version 3.03 JWPlayer - 4.10
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.