Closed MuhammadTufailAli closed 11 months ago
Sorry if channel plays currentIndex appers
player.context.playlist.changeSource(number)
Thanks it is working Fine
I have one more question newplayer.on("loadedmetadata", () => { setSelectedChannelNumberWhichWillChange((last) => { return DynamicChannel + 1; });
// localStorage.setItem(
// "EpisodeNumberThatWillChange",
// JSON.stringify(DynamicChannel + 1)
// );
});
This function is used to know it the data is load
Is there any function which is opposite to it which is triggred when data failed to load?
on 'error'
I am using Oplayer and using playlist in it. When i change channel and if the channel does not play then currentIndex Disappers. I want to chnage currentIndex manually is there any way to do this.
If channel play.
If channel does not play.