f4player icon indicating copy to clipboard operation
f4player copied to clipboard

Can't play this RTMP!

Open Drjacky opened this issue 9 years ago • 2 comments

rtmp://cdn1.iranseda.ir/tv-irib-tv1/4-1-24k240k

Link is work; VLC can play it.

Drjacky avatar Sep 22 '15 05:09 Drjacky

I guess the official document didn't really point out how to connec rtmp streams with f4player, perhaps because this project is not maintained for three years. But the player itself is simple and good enough for normal application scenario, so it's worth digging.

The player really support rtmp if you look into the source code. All you need to do is to add some more parameters to the html schema. Per my usage of the player, your link should be changed to:

  <param name="flashvars"   value="skin=./skins/mySkin.swf&video=rtmp://cdn1.iranseda.ir/tv-irib-tv1/4-1-24k240k&stream=rtmp://cdn1.iranseda.ir&streamname=tv-irib-tv1/4-1-24k240k"/>

To break it down, two parameters are required:

stream: the domain url of your stream, which is rtmp://cdn1.iranseda.ir in your case. streamname: the stream name of the rtmp stream, which is tv-irib-tv1/4-1-24k240k in your case.

The rest of the schema is the same as the simple document author provided.

In my project, it works just fine, but you should check it on your end and try whether it works as well.

yangjiheng avatar Oct 02 '15 15:10 yangjiheng

@yangjiheng Thank you for your attention, But it doesn't work. Would you like to test it yourself? With my given domain. Thanks.

Drjacky avatar Oct 03 '15 05:10 Drjacky