summaryrefslogtreecommitdiffstats
path: root/firefox-youtube-handler
diff options
context:
space:
mode:
Diffstat (limited to 'firefox-youtube-handler')
-rwxr-xr-xfirefox-youtube-handler11
1 files changed, 9 insertions, 2 deletions
diff --git a/firefox-youtube-handler b/firefox-youtube-handler
index b339612..51ea0ec 100755
--- a/firefox-youtube-handler
+++ b/firefox-youtube-handler
@@ -2,8 +2,15 @@
proto='yt://'
url=$1
id=${url##$proto}
-#smplayer $(youtube-dl -g ${id})
+#audiourl="$(youtube-dl -g -f 141/140 "$id")"
+#videourl="$(youtube-dl -g -f 137/136/135/134 "$id")"
+
+#vlc "$videourl" --input-slave "$audiourl"
+#mpv "$videourl" --audiofile "$audiourl"
+#mplayer "$videourl" -audiofile "$audiourl"
+
+# max 720p because youtube serves 1080p only via DASH (seperate audio/video streams)
#urxvt -e bash -c "youtube-viewer -I \"http://youtube.com/watch?v=$id\"; sleep 5"
smplayer "http://youtube.com/watch?v=$id"
-
+#smplayer $(youtube-dl -g ${id})