how to reduct video latency in chrome with ios11?

kevin_zhang

New Member
I'm new guy in wcs5.
I test web-sdk api demo in ios11 . demo is work fine in safari with low latency (which use webrtc player), but has 3 sec latency ( which use wsplayer ,because of getUserMedia can't use webrtc in chrome & ios11) when i playback video in chrome version 62.

how can i do for reduce video latency in wsplayer ? or how to force use webrtc in chrome if i use webrtc player for playback video?
 
Last edited:

Max

Administrator
Staff member
Hello,

Previous WSPlayer version - WSPlayer 1.0 - can be tried. It is less optimized and more demanding to resources but has lower latency.
On server, WSPlayer 1.0 demo client files are located in WCS_HOME/client/examples/demo/vow-player (link: https://<WCS_IP>:8888/client/examples/demo/vow-player/vow-player.html).
WSPlayer 1.0 is from the previous Web SDK version, so for usage with the current one it would have to be integrated separately.
 

Srdjan

New Member
Hi,

I am having the same issue (chrome iOS 13 WS v2 latency around 3-4s). I tried using WSPlayer v1 (by changing receiverLocation to .../WSReceiver.js and decoderLocation to .../video-worker2.js) however there is no output at all. What am I doing wrong?
In js console there are no errors and status PLAYING is logged.
 

Max

Administrator
Staff member
Good day.
I am having the same issue (chrome iOS 13 WS v2 latency around 3-4s)
WebRTC is optimal technology for real-time broadcasting without delay and WebRTC is supported in Safari browser (iOS11 or greater version).
WSPlayer can be used if for some reason you are not using Safari in iOS. Note that, websocket protocol (WSPlayer) allows up to 1-3 seconds delay.
In your case, please try stream your video with a lower resolution. This should reduce delay.

I tried using WSPlayer v1 ... however there is no output at all.
Please post a new topic for other questions.
 
Last edited:
Top