red5-server icon indicating copy to clipboard operation
red5-server copied to clipboard

Improve Browsers / JavaScript support

Open iongion opened this issue 6 years ago • 3 comments

Feature request

Short description

  • As Flash has been almost completely removed from the browsers, there is a need to be able to take control of and over rtmp protocol using other browser methods
  • Browsers don't allow socket connections, therefore a direct to RTMP communication from the browser is not possible
  • Connecting to a red5 application directly, using JavaScript could be done using WebSocket interface of the browser - NetConnection/SharedObject wrappers could be created
  • Stream could be accessed through http-flv hack or exposed through WebSocket too and decoded with FLV.js which already supports this tunneling method

Environment

[x] Operating system and version: Any [x] Java version: Any [x] Red5 version: Future

Expected behavior

Using projects such as FLV.js we should be able to connect and play live streams

From that project features:

  • HTTP FLV low latency live stream playback
  • FLV over WebSocket live stream playback

Using WebSocket connection, one can emulate the NetConnection behavior of ActionScript

There is this project https://github.com/illuspas/Node-Media-Server that can already do

  • RTMP
  • WebSocket tunneling through FLV.js
  • HTTP based live streaming through FLV.js
  • HLS
  • Dash

What do you think ? I don't know if you have time or plan any work in this area, what would be the steps needed to do this ?

I think a WebSocket connection api (with SharedObject) plus FLV.js stream playback support over websocket are all that is needed to make red5 a jewel for the non-flash future.

iongion avatar Jul 31 '19 15:07 iongion

Yes, I think so too. Flash is slowly dying. HTTP-FLV must be the mainstream of live broadcast technology for some time to come. I will also try to make Red5 support HTTP-FLV if I can. 😂😂 Thanks to the Red5 team!

imamiao avatar Aug 19 '19 02:08 imamiao

I'm all for it, any html5 etc interop with RTMP or other currently implemented tech in the server is welcomed.

mondain avatar Aug 26 '19 18:08 mondain

Red5 already has WebSocket support and I've started work on jsmpeg support for #283

mondain avatar Aug 15 '20 16:08 mondain