PageSourceSearch

https://delphic.games/videoplayer/js/jarisflvplayer.js

js delphic.games collected 2026-10-02 06:37:08 UTC 3,207 bytes, 118 lines download raw bytes

1/**    
2 * @author Jefferson Gonzalez
3 * @copyright 2010 Jefferson Gonzalez
4 *
5 * @license 
6 * This file is part of Jaris FLV Player.
7 *
8 * Jaris FLV Player is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License or GNU LESSER GENERAL 
10 * PUBLIC LICENSE as published by the Free Software Foundation, either version 
11 * 3 of the License, or (at your option) any later version.
12 *
13 * Jaris FLV Player is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License and 
19 * GNU LESSER GENERAL PUBLIC LICENSE along with Jaris FLV Player.  If not, 
20 * see <http://www.gnu.org/licenses/>.
21 */
22
23/**
24 *Interface for the JarisFLVPlayer JavaScript API implemented 
25 *by Sascha from http://projekktor.com/
26 *@param id The id of the flash object
27*/
28function JarisFLVPlayer(id){
29
30	this.playerId = id; //Stores the id of the player
31	this.player = null; //Object that points to the player
32}
33
34//Event constants
35JarisFLVPlayer.event = {
36	MOUSE_HIDE: "onMouseHide", 
37	MOUSE_SHOW: "onMouseShow",
38	MEDIA_INITIALIZED: "onDataInitialized",
39	BUFFERING: "onBuffering",
40	NOT_BUFFERING: "onNotBuffering",
41	RESIZE: "onResize",
42	PLAY_PAUSE: "onPlayPause",
43	PLAYBACK_FINISHED: "onPlaybackFinished",
44	CONNECTION_FAILED: "onConnectionFailed",
45	ASPECT_RATIO: "onAspectRatio",
46	VOLUME_UP: "onVolumeUp",
47	VOLUME_DOWN: "onVolumeDown",
48	VOLUME_CHANGE: "onVolumeChange",
49	MUTE: "onMute",
50	TIME: "onTimeUpdate",
51	PROGRESS: "onProgress",
52	SEEK: "onSeek",
53	ON_ALL: "on*"
54};
55	
56JarisFLVPlayer.prototype.isBuffering = function(){
57	this.setPlayer();
58	return this.player.api_get("isBuffering");
59}
60
61JarisFLVPlayer.prototype.isPlaying = function(){
62	this.setPlayer();
63	return this.player.api_get("isPlaying");
64}
65
66JarisFLVPlayer.prototype.getCurrentTime = function(){
67	this.setPlayer();
68	return this.player.api_get("time");
69}
70
71JarisFLVPlayer.prototype.getBytesLoaded = function(){
72	this.setPlayer();
73	return this.player.api_get("loaded");
74}
75
76JarisFLVPlayer.prototype.getVolume = function(){
77	this.setPlayer();
78	return this.player.api_get("volume");
79}
80
81JarisFLVPlayer.prototype.addListener = function(event, listener){
82	this.setPlayer();
83	this.player.api_addlistener(event, listener);
84}
85
86JarisFLVPlayer.prototype.removeListener = function(event){
87	this.setPlayer();
88	this.player.api_removelistener(event);
89}
90
91JarisFLVPlayer.prototype.play = function(){
92	this.setPlayer();
93	this.player.api_play();
94}
95
96JarisFLVPlayer.prototype.pause = function(){
97	this.setPlayer();
98	this.player.api_pause();
99}
100
101JarisFLVPlayer.prototype.seek = function(seconds){
102	this.setPlayer();
103	this.player.api_seek(seconds);
104}
105
106JarisFLVPlayer.prototype.volume = function(value){
107	this.setPlayer();
108	this.player.api_volume(value);
109}
110
111JarisFLVPlayer.prototype.loadVideo = function(url,type,streamType,server){
112	this.setPlayer();
113	this.player.api_loadVideo(url,type,streamType,server);
114}
115
116JarisFLVPlayer.prototype.setPlayer = function(){
117	this.player = document.getElementById(this.playerId);
118}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.