-
Hi,
when we use WP shortcode with subtitles[fvplayer subtitles=""]
it loads the video and there is a subtitles icon on the player.
But when we use javascript to load a new video with this code:
flowPlayer = jQuery(".flowplayer").data('flowplayer'); flowPlayer.load([{mpegurl: url}]);
And this event that loads the subtitles, we can see the subtitles active, but there is no icon on the player to turn it off.
flowplayer( function(api,root) { api.on('ready', function(e,api,time) { let subTitles = "https://cdn.foliovision.com/wp-content/themes/subtitles/lectures/example.vtt"; let subtitle_list = [ { label: "English", lang: "en", src: subTitles } ]; api.video.subtitles = subtitle_list; api.loadSubtitles(0); // subtitle index }); });