Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Close rtmp stream


We are using jwplayer as a rtmp client to play the live stream, everything works fine but close the rtmp stream. As we can follow the rtmp protocol, when we close the rtmp stream , we should invoke some command like closeStream or post a http request /close/someid/somenum (during rtmpt close the connection), rather than finish the tcp connection which is exactly what jwplayer do.
So how can we config jwplayer to make it invoke closeStream in flash or post a close http request when closing the rtmp stream.
Thanks very much for any answers.

5 Community Answers

r...

User  
0 rated :

i don't use

r...

User  
0 rated :

no comment

Heidi

JW Player Support Agent  
0 rated :

Hi I responded to your support case of the same question, but I will leave this open in case community members would like to contribute.

jone

User  
0 rated :

Hi, Heidi. Thanks for the advice. But like I have replied in the email, what really confused me is that the jwplayer js api :

// js api
jwplayer.stop();

just finish(or reset) the tcp connection (captured by wireshark) which is different from the rtmp protocol. Is there any other interface that can send closeStream?

Heidi

JW Player Support Agent  
0 rated :

Hello,

No, at this time there is not a way to trigger a function via the API to stop a stream, as the streaming takes place outside the player.

Yours, Heidi

Heidi Williams-Foy
Support Engineer, JW Player

This question has received the maximum number of answers.