AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://OvenMediaEngine.com/ovenplayer
MIT License
506 stars 125 forks source link

Can't use RTMP stream as input directly #121

Closed nxtreaming closed 4 years ago

nxtreaming commented 4 years ago

Thank for this great player!

It seems that OvenPlayer fails to support RTMP source natively, although, the Demo shows we can select RTMP as the source.

The code:

player = OvenPlayer.create("player", { sources: [ { "file": "rtmp://stream.example.com/app/mystream", "type": "rtmp" } ] });

The error:

{code: 101, message: "Can not load due to unsupported media.", reason: "Can not load due to unsupported media."}

Is there any plan to support RTMP source?

Thanks.

SangwonOh commented 4 years ago

@nxtreaming OvenPlayer supports RTMP playback. This issue may be a browser issue.

OvenPlayer plays RTMP source using Adobe Flash. But since most modern browsers don't allows Adobe Flash defaultly. So please make sure that your browser is allowed to use Adobe Flash. Or make it useable manually.

nxtreaming commented 4 years ago

I see.

I use Chrome which will totally remove Adobe Flash in Jan 2021. I try to enable Flash manually.

Will OvenPlayer support RTMP natively in future?

Thanks.

SangwonOh commented 4 years ago

Unfortunately there is no way to playback RTMP by standard HTML. It is hard to say that further support RTMP. Thanks.

nxtreaming commented 4 years ago

I see.

I confirmed RTMP playback is supported through Adobe Flash in OvenPlayer.

Thanks.

alnux commented 4 years ago

Could You Make it compatible with http-flv, becouse there is a nginx-rtmp-flv-module and transcose rtmp to flv and it Will be Nice if ovenplayer soport it