diff options
author | Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi> | 2011-02-10 13:16:27 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-02-10 22:41:14 +0100 |
commit | 50b5348f582b5c7dd2bf1e59274e91189a73f5de (patch) | |
tree | b9a9fb2d65e43c79df4cddea1af67dc55bb159fe /live/js | |
parent | 90058d27b8ab482ad383a723d6d4bec2b1f0e8b7 (diff) | |
download | vdr-plugin-live-50b5348f582b5c7dd2bf1e59274e91189a73f5de.tar.gz vdr-plugin-live-50b5348f582b5c7dd2bf1e59274e91189a73f5de.tar.bz2 |
Enabled YADIF deinterlacing automatically for VLC-1.1.x.
Diffstat (limited to 'live/js')
-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()) |