Flashphoner.init()
method on page load, for example (GitHub): methods: {
onLoad() {
try {
Flashphoner.init({});
this.localVideo = document.getElementById('localVideo');
this.remoteVideo = document.getElementById('remoteVideo');
}
catch(e) {
...
}
},
...
}
Flashphoner.init()
callgetMediaAccess
method is used only to test the camera before publishing. See the Media Devices example source code. In a simple two way streaming case you don't need to call the method at all.Please clarify the following:Thanks for the support. but now after published the angular site. Iphone is not supported the video. we are getting blank display.
Is the issue reproducing with the latest WebSDK build 2.0.242? Please update and checkwebsdk version
@version Version: 1.0.0-beta
What iOS version (not phone model, iOS version and build, you can see it in Settings - General - About) do you test?12pro and 15 max pro
function playBtnClick() {
if (validateForm()) {
var llHlsEnabled = $('#llHlsEnabled').is(":checked");
var streamName = $('#playStream').val();
streamName = encodeURIComponent(streamName);
var videoSrc = $("#urlServer").val() + '/' + streamName + '/' + streamName + '.m3u8';
var key = $('#key').val();
var token = $("#token").val();
if (key.length > 0 && token.length > 0) {
videoSrc += "?" + key + "=" + token;
}
hlsPlayer = new Hls(getHlsConfig(llHlsEnabled));
hlsPlayer.on(Hls.Events.MANIFEST_PARSED, function() {
console.log("Play with HLS.js");
remoteVideo.play();
});
hlsPlayer.loadSource(videoSrc);
hlsPlayer.attachMedia(remoteVideo);
onStarted();
}
}