Videos limited by duration rather than playing to completion don't stop in Preview

Bug #1325564 reported by Alex Harrington
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Medium
Dan Garner

Bug Description

When previewing a layout with a video with a duration set shorter than the video duration, it continues playing when it is removed from the layout rather than stopping as it should

Related branches

Changed in xibo:
milestone: none → 1.6.2
status: New → Confirmed
Revision history for this message
Dan Garner (dangarner) wrote :

I *think* that adding the following on Line 337 will resolve this:

if (oldMedia.mediaType == "video") {
            $("#" + oldMedia.containerName + "-vid").get(0).play();
}

Dan Garner (dangarner)
Changed in xibo:
assignee: nobody → Dan Garner (dangarner)
importance: Undecided → Medium
status: Confirmed → Fix Committed
Revision history for this message
Dan Garner (dangarner) wrote :

I mean this:

if (oldMedia.mediaType == "video") {
            $("#" + oldMedia.containerName + "-vid").get(0).pause();
}

Although it seems like play() acts as a toggle anyway.

Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.