Every line of 'jquery play video' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
260 play() { 261 this.trigger(Events.PLAYBACK_PLAY_INTENT) 262 this._stopped = false 263 this._setupSrc(this._src) 264 this._handleBufferingEvents() 265 let promise = this.el.play() 266 // For more details, see https://developers.google.com/web/updates/2016/03/play-returns-promise 267 if (promise && promise.catch) 268 promise.catch(() => {}) 269 270 }
429 play() { 430 this.player.play(); 431 432 if (this.options.autoplay) { 433 this.player.autoplay(true); 434 } 435 436 if (this.options.preload === 'none' && this.options.enableResolutionSwitcher) { 437 // help videojs-resolution-switcher to choose the proper handleSeekEvent 438 this.player.preload('metadata'); 439 } 440 }
29 async play(){ 30 return this.element.play(); 31 }
783 play() { 784 this.player.play(); 785 786 return this; 787 }
59 play () { 60 // Enable the video playing. 61 this._video.play() 62 63 // Set the volume 64 this._video.volume = (this.audio === true) ? 1 : 0 65 66 // Check if the video must be scaled. 67 if (this.full_screen === true) { 68 this._videoSprite.width = this._experiment._runner._renderer.width 69 this._videoSprite.height = this._experiment._runner._renderer.height 70 } 71 72 // Render the first frame. 73 this._experiment._runner._renderer.render(this._videoSprite) 74 75 // Set the play toggle. 76 this._playing = true 77 }
165 function playVideo(e){ 166 if (e) { 167 e.preventDefault(); 168 } 169 var el = $("#videoPlayer")[0]; 170 el.vjs_play(); 171 }
97 play() { 98 this.videoElement.play(); 99 }
17 play(): void { 18 this.nativeView.playVideo(); 19 }
988 function loadVideo($video, src) { 989 var w = "100%", h = "100%"; 990 if (src.indexOf("//www.youtube.com") != -1 || src.indexOf("//youtu") != -1 || src.indexOf("vimeo.com") != -1) { 991 // youtube/vimeo videos won't trigger mediaMetadata() from mediaPlayer.js so size needs to be set initially 992 if ($video.closest(".overviewStep").length > 0 || smallScreen == true) { 993 w = 200; h = 150; 994 } else { 995 w = 320; h = 240; 996 } 997 998 }else { 999 $video.css("visibility", "hidden"); 1000 } 1001 1002 $video.mediaPlayer({ 1003 type :"video", 1004 source :src, 1005 width :w, 1006 height :h, 1007 pageName:"decisionTemplate" 1008 }); 1009 }
136 function playVideo() { 137 console.log("play", playerId) 138 player.playVideo(); 139 clearInterval(self.timeUpdateId); 140 }