diff options
-rw-r--r-- | live/js/live/vlc.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/live/js/live/vlc.js b/live/js/live/vlc.js index 3b8aa23..1dd8597 100644 --- a/live/js/live/vlc.js +++ b/live/js/live/vlc.js @@ -96,6 +96,18 @@ var VLC = new Class({ } }, + enableDeinterlace: function(){ + if (this.newVlcApi) { + this.vlc.video.deinterlace.enable("yadif"); + } + }, + + disableDeinterlace: function(){ + if (this.newVlcApi) { + this.vlc.video.deinterlace.disable(); + } + }, + playerResize: function(el){ var winwidth = window.getWidth(); var winheight = window.getHeight(); @@ -126,10 +138,14 @@ var VLC = new Class({ if (!this.options.playRecording) this.vlc.playlist.togglePause(); else { - if (this.vlc.playlist.isPlaying) + if (this.vlc.playlist.isPlaying) { + clearTimeout(this.deint); + this.disableDeinterlace(); this.vlc.playlist.stop(); - else + else { this.vlc.playlist.play(); + this.deint = setTimeout(this.enableDeinterlace, 500); + } } else { if (this.isPlaying()) |