mad_ady wrote:Sorry, I forgot this was for the wdtvext version.
I suspect the way to prevent the video from starting on paused content is by modifying the script, right?
yep,
the quick way is to edit 2 files VideoScreensaver.plugin.js & VideoLoop (found in /bin)
find this in the .js
- Code: Select all
if (this.State === "PAUSED_PLAYBACK" ) {
delete these 4 lines directly below it
- Code: Select all
res = executeCmd("upnp-cmd Stop", this.debug.Lib);
res = executeCmd("upnp-cmd Stop", this.debug.Lib);
res = executeCmd("play \"" + MyScreensaver + "\"", 3);
res = executeCmd("upnp-cmd SetPlayMode REPEAT_ONE", this.debug.Lib);
you'll also need to make similar edits to VideoLoop
find
- Code: Select all
if [[ "$STATE" != "PLAYING" && "$STATE" == "PAUSED_PLAYBACK" ]] ; then
upnp-cmd Stop
upnp-cmd Stop
play $VIDEO
config_tool -c CONTINOUS_PLAY=true
elif [[ "$STATE" != "PLAYING" && "$STATE" != "PAUSED_PLAYBACK" ]] ; then
delete the first 5 lines above
change line 6 from elif to if
btw, if anybody needs to see loggin from VideoLoop it's found at /tmp/VideoLoop.log
and a question for all of you. I thought about this VideoLoop script I did
with some edits it could be provided as a standalone script for sequencing or randomizing playback of any file type
but the only other use case I can think of is music playback, WD does not correctly randomize music playback,
KAD


