ERROR Error: Flashphoner API is not initialized

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);
when using this code


<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../dependencies/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="./hls-player.css">
<!-- <link rel="stylesheet" href="video-js.css"> -->
<title>HLS VideoJS Player Minimal</title>
<script type="text/javascript" src="../js/flashphoner.min.js"></script>
<!-- <script type="text/javascript" src="../dependencies/jquery/jquery-1.12.0.js"></script>
<script type="text/javascript" src="../dependencies/jquery/jquery-ui.js"></script> -->
<script type="text/javascript" src="../dependencies/js/utils.js"></script>
<script type="text/javascript" src="./hls-player.js"></script>
 
Here autoplay not happening we are getting below with button. when click on button only it is playing.
All the HLS Player minimal examples does not support automatic playback because they are examples only. You should write a custom player code based on an example code to implement autoplay.
 
this error getting when player using flashphoner/websdk
We can't reproduce this on our demo server:
Publishing WebRTC stream to demo server (Win 11, Chome 124)
1714695826657.png

Playing WebRTC stream in MacOS Safari 17.5
1714695926161.png

Please also note that this error
1714696093423.png

raises from your custom code, not from Player example code.
 
We face a problem that when we go to some other application and back to video we got blank black screen in iphone 16 version. Could you please help to solve this.
 
We face a problem that when we go to some other application and back to video we got blank black screen in iphone 16 version. Could you please help to solve this.
You cannot stream or play video in backgroung on iOS. So you should start publish or playback again when browser window goes back to foreground.
 
Top