This would not work.run Flashphoner.init function again with different mediaProviders without reloading the page
Flashphoner.init({
receiverLocation: '../../dependencies/websocket-player/WSReceiver2.js',
decoderLocation: '../../dependencies/websocket-player/video-worker2.js',
preferredMediaProviders: ["WSPlayer", "WebRTC"]
});
var options = {
name: streamName,
display: remoteVideo,
mediaProvider: "WebRTC"
};
session.createStream(options);
$("video").remove();
var options = {
name: streamName,
display: remoteVideo,
mediaProvider: "WSPlayer"
};
session.createStream(options);
The voice control for WSPlayer won't work on iOS devices. You have to mute the device using corresponding hardware switch (iPhone, iPad).Any idea how can i mute the sound on viewer side when using "WSPlayer"?
WSPlayer does not support constraints. The constraints are simply ignored by WSPlayer.Any idea way this can happened?
Looks like an issue. We will check that on our end.So i solved it by running a timer that wait 4 seconds and fire: session.disconnect()
session.createStream({name:'stream1_audio', constraints:{audio:true,video:false}}).publish();
session.createStream({name:'stream1_video', constraints:{audio:false,video:true}}).publish();
The issue has been fixed in WCS v. 2824. WSPlayer can be specified as mediaProvider in stream options and video will be played, even if WSPlayer was not listed as first in preferredMediaProviders.preferredMediaProviders in Flashphoner.init() – have to start from "WSPlayer"