]> git.plutz.net Git - serve0/blobdiff - actions/watch.sh
introduced local player option in watch preferences
[serve0] / actions / watch.sh
index 8f1a18d272a04ad3e22fb291e805bcf8a33f379a..c0cdb377c8904d5849335fbdf4b4c834f34f8054 100755 (executable)
@@ -47,6 +47,10 @@ case "${_COOKIE[watch]}" in
   download)
     redirect "$videourl"
   ;;
+  server)
+    DISPLAY=:0 nohup /usr/bin/mplayer -ao pulse:jupiter --quiet "${_DATA}/videos/$info" >&- 2>&- &
+    redirect "$HTTP_REFERER"
+  ;;
   *) redirect "?p=view&${watch_link}"
   ;;
 esac