Jump to content
  • 0

videotag.pause, videotag.play vs webRTCAdaptor.play, webRTCAdaptor.stop


Louis Veronneau
 Share

Question

Hi,

I saw a post on this but not sure where it is.

for live streaming

- webRTCAdaptor.play seems to connect to AMT and streaming starts from the server
it still take some connection time, 2 or 3 seconds
- webRTCAdaptor.stop the connection and streaming from the server stops immediately

- videotag.play plays the video rapidly (once the connection is made to the server)
- videotag.stop stop the video but the stream continue to come from the server, 
is I make a play() the video starts immediately

by using videotag.play and pause it is faster to start viewing
and it make sit so much cool
 but use bandwith even when the video is paused.

is there a way to keep the connection to the server but minimize bandwith consumption ?

thanks

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hi lveronneau,

How can you publish Stream? 
If you are using RTMP,  you can decrease keyFrame interval to 1. If you decrease the keyFrame interval, stream will start faster.  But it can cause more bandwidth consumption. 
If you publishing with WebRTC, we are sending keyframe every 2 seconds. It takes a max of 2 seconds for the new video to start.

I hope, I could help you.

Best Regards,
Selim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...