
Autoplay Videos
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This script automatically starts a video player when a video file is played in Amarok.
Details:
Videos are detected by the file extension. For streamed videos, Amarok is paused to avoid double bandwidth use. For local videos, Amarok is also paused, but playback is restarted after 5 seconds with volume set to zero. This way the play is simulated in Amarok to allow scoring (and, for taggable video formats like asf, mkv or mp4, scrobbling...yes, you can add music videos to your collection). Unfortunately it is still not possible to control the video from Amarok, but hey, Amarok is not a video player :)
When another file is played, the external player will be killed and the volume restored.
By default the script uses mplayer (You have to edit the script to choose another player). To achieve the impression that the video is played in the context browser, you can use kwin's special window settings (enable "No Border" and "Keep Above"... "Remember position" doesn't seem to work...but you can enter a line like "geometry=WxH+x+y" in ~/.mplayer/config).
Also this script only works with files supported by the engine used in Amarok (ironically)...But with xine this should be almost anything.
_____ LATEST CHANGES _____
! the volume got wrongly reset when changed during playback
+ added README
prol
12 years ago
Report
camico
12 years ago
Report
the7erm
12 years ago
I really should have checked the site before I started working on mine ...
Report
camico
12 years ago
what was your approach then?
Report
the7erm
12 years ago
Yours was a better approach.
You might want to consider processing the mplayer thread output and look for === paused === then pause amarok ... just an idea.
I'd do it but I don't know ruby, but looking at your script I like the language.
Thread{} looks like a really useful function.
Report
Contrast
12 years ago
Report
camico
12 years ago
Report
eeproms
13 years ago
Report
camico
12 years ago
Report