You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
vihar638
changed the title
Player freezes complete application when stopped just after video has been initialized
Player freezes complete electron application when stopped just after video has been initialized
Nov 29, 2021
var wjs = require("wcjs-player");
var conf = {
wcjs: require('wcjs-prebuilt'),
multiscreen: true,
autoplay: true,
loop: true,
};
var liveViewPlayerHolder = new wjs('#player').addPlayer(conf);
liveViewPlayerHolder.clearPlaylist();
liveViewPlayerHolder.addPlaylist(url);
liveViewPlayerHolder.play();
liveViewPlayerHolder.onBuffering(function(p){
if(p > 0 && p < 1)
{
liveViewPlayerHolder.stop();
setTimeout(() => {
start();
}, 1000);
}
else if(p > 50){
stop();
start();
}
});
function stop()
{
liveViewPlayerHolder.stop();
}
function start()
{
liveViewPlayerHolder.clearPlaylist();
liveViewPlayerHolder.addPlaylist(url);
liveViewPlayerHolder.play();
}
In some condition the player completely stuck the complete electron application and it stuck in file wcjs-player/index.js
wjs.prototype.stop = function() {
//player completely works fine till this line
this.vlc.playlist.stop();
//player stucks here
}
The text was updated successfully, but these errors were encountered: