Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi Yaoki,
    Here is my solution.
    In file infinity.php in plugin folder jetpack. I add this code for update videojs object after going to next page:

    function showVideos() {
    		        _V_.players = {};
    		        var $ = jQuery;
    		        $("video").each(function () {
    		            try {
    		            	var id = $(this).attr("id");
    		            	var opt = $(this).attr("data-setup");
    		                _V_(id, opt,
    			                	function(){
    			                		// console.log('done init');
    			                	}
    		                	);
    		            } catch (error) { alert(error); }
    		        });
    		    }
    
    		jQuery(document).ready(function(){
    		    jQuery( document.body ).on( "post-load", function () {
    		        showVideos();
    		    })
    	 	})

Viewing 1 replies (of 1 total)