web/static/res/js/incplayer.js
changeset 80 46b897524cc4
parent 78 8c3f0b94d056
child 88 eeb0a6f3c07d
equal deleted inserted replaced
79:a7e88f60f627 80:46b897524cc4
    45 
    45 
    46 	this.init = function(nextPage, videoDivId, playButtonId, hdSdButtonId, progressCurrentId, progressDurationId, progressCursorId, progressBarId, jsonFile)
    46 	this.init = function(nextPage, videoDivId, playButtonId, hdSdButtonId, progressCurrentId, progressDurationId, progressCursorId, progressBarId, jsonFile)
    47 	{
    47 	{
    48 		this.nextPage = nextPage;
    48 		this.nextPage = nextPage;
    49 		this.videoDivId = videoDivId;
    49 		this.videoDivId = videoDivId;
       
    50 
       
    51 		this.readUrlVideosIndex();
    50 
    52 
    51 		// Control
    53 		// Control
    52 		this.playButton = $("#" + playButtonId).get(0);
    54 		this.playButton = $("#" + playButtonId).get(0);
    53 		this.hdSdButton = $("#" + hdSdButtonId).get(0);
    55 		this.hdSdButton = $("#" + hdSdButtonId).get(0);
    54 		this.progressCurrent = $("#" + progressCurrentId);
    56 		this.progressCurrent = $("#" + progressCurrentId);
   822 		    	return "mp4";
   824 		    	return "mp4";
   823 		    }
   825 		    }
   824 		}
   826 		}
   825 		return "";
   827 		return "";
   826 	};
   828 	};
       
   829 
       
   830 	this.createUrlVideosIndex = function(index1, index2, index3)
       
   831 	{
       
   832 		return ((index1 << 16) | (index2 << 8) | index3) << 4;
       
   833 	}
       
   834 
       
   835 	this.readUrlVideosIndex = function()
       
   836 	{
       
   837 		var query = window.location.search.substring(1);
       
   838 		if (query.length < 0) {
       
   839 			return;
       
   840 		}
       
   841 
       
   842 		var number = parseInt(query);
       
   843 		number = this.createUrlVideosIndex(20, 30, 44);
       
   844 
       
   845 		console.log("query: " + number);
       
   846 		console.log(n);
       
   847 	};
   827 }
   848 }
   828 
   849 
   829 var incPlayer = new IncPlayer();
   850 var incPlayer = new IncPlayer();