...
Supported platforms and browsers
Chrome | Firefox | Safari 11 | Edge | |
---|---|---|---|---|
Windows | + | + | + | |
Mac OS | + | + | + | |
Android | + | + | ||
iOS | - | - | + |
Supported codecs
- Video: MPEG
- Audio: G.711
...
Code Block | ||||
---|---|---|---|---|
| ||||
stream = session.createStream(options).on(STREAM_STATUS.PENDING, function(stream) { ... }).on(STREAM_STATUS.PLAYING, function(stream) { ... }).on(STREAM_STATUS.STOPPED, function() { setStatus(STREAM_STATUS.STOPPED); onStopped(); }).on(STREAM_STATUS.FAILED, function(stream) { ... }).on(STREAM_STATUS.NOT_ENOUGH_BANDWIDTH, function(stream){ ... }); stream.play(); |
Known issues
1. Fullscreen mode is not supported for WSPlayer in iOS
Symptoms: Stream.fullScreen() call does not switch playback to full screen mode using WSPlayer mediaprovider
Solution: if possible, update device to latest iOS version and use WebRTC in Safari browser
2. WSPlayer does not support audio only stream playback
Symptoms: audio only stream does not play, there's no sound but stream is in PLAYING status
Solution: use aaudio+video streams, mute video if necessary (black screen will be displayed)
3. Two streams cannot be played simultaneously by WSPlayer using the same Websocket connection on the same page
Symptoms: two streams cannot be played in 2Players example using main browsers (Chrome, Firefox, Safari) while connecting to WCS server via HTTP
Решение: use a separate Websocket connection for each stream on the same page while playing them by WSPlayer