Understanding Media Duration and how it affects the playback of a Layout

This article has been updated and can be found at the following location: Understanding Media duration and how it affects playback

When working with Xibo layouts, it’s important to understand how media duration affects the playback of your layout.

For example, a layout setup like this:

Layout A
Region 1: Image 1 (10s), Image 2 (10s)
Region 2: Text 1 (5s), Text 2 (2s)

When that runs, region 1 will show Image 1 then Image 2 because it’s the longest running region on the layout. When that finishes, the whole layout will reload and start again. Region 2 will show Text 1, Text 2, Text 1, Text 2 over and over UNTIL Region 1 completes (after 20 seconds) and then it will stop and the whole layout will reload.

Regions which only contain one media item are an exception to this basic rule.

Layout B
Region 1: Image (10s)
Region 2: Text 1 (10s), Text 2 (10s)

In this case, Region 2 is the longest running region but since region 1 only has one media item in it, when the layout plays the image in region 1 will show once and remain on the layout until Region 2 completes (as if it had a duration of 20 seconds). That’s really a powerful feature as it offers great flexibility.

Consider this layout:

Layout C
Region 1: Clock (10s)
Region 2: Weather (10s)
Region 3: Video (0s)

When this layout runs, the clock and the weather will come up on the layout and remain there until the video finishes, with no ugly flashing or refreshing. The 0 duration on the video means that the Player will just play the video until it finishes, so we don’t know at this point how long that duration will be. Without this behaviour, you would have to manually edit the Clock and Weather items each time you changed that video such that they had the same duration as the video, otherwise they would refresh (and flash) every 10 seconds.

Take for example then a layout with a ticker that has a duration per item - so an RSS feed that gets shorter and longer could have a duration of 3s per item. Assuming the RSS feed is the longest running item then you only need to worry about the duration per item of your RSS feed, as the other regions will take care of themselves :smile:

Region Loop

In some cases it might be desirable to have a region with 1 item reload when that item is finished.

Consider this layout

Layout D
Region 1: Video (0s), Video (0s), Video (0s)
Region 2: Ticker (3600s) with loop

Assume that the Widgets in Region 1 are long and will play for an hour each, and that the ticker in region 2 is expected to have content that will changed every hour. With region loop ticked, the ticker will reload each time it expires.

If you are using ‘loop?’ checkbox on your regions, please be aware that in some circumstances it may cause the layout playback to be incorrect.

The below diagram illustrates when region loop is considered and it will effect the playback of that region.

Things to watch out for when using region loop

When using region loop, you should avoid using items that expire within a very short time of each other.

Consider this layout

Layout E
Region 1: Text (10s) with loop
Region 2: Text (10s) with loop
Region 3: Image (11s)

When this layout is scheduled, after 11s it should reload whole layout and move on to another layout or show this one again, depending on your schedule. With the loop checkboxes checked and similar/same duration of your regions, they will reload and begin to loop and nearly the same time as whole layout should reload. Which will cause additional ‘flickering’ of your display, where 2 regions will flicker then after about 1s whole layout will flicker and reload, which obviously doesn’t look good and is not recommended.

5 Likes
Can you have "Unlimited" duration
Player doesn't change
Data Set data updating on the TV
RSS feed not updating 1.7.4
Android Client not updating
Displaying a signage throughout a day
Using Region Loop
How to make web page refresh and play continuously
Only showing the background image on Xibo client - log attached
Help With Scheduling
I cant use Clock or embedded code
Daily update of content
Looping Single Image Best Practice
Xibo Client not showing campaign
Working on new editor - would it be useful for open source release?
Usermanagement: Assigning different rights to users for same campaign
Forecast IO showing weather one day in the past
Schedule not updating on Android client
Android display stays in status "Display is downloading new files"
Schedule and Required File Status sleeping
Default Layout fails?
Forecast IO Not Updating
The time is not auto updating along with live streaming video
Weather layout problem
Schedule End Time
Video has Stopped Working
Schedule layout that repeats - modify only single instance
Schedule Status: Sleeping | Required File Status: Sleeping
How To Force Update Display With CMS?
Music with slide
How to switch between default layout and scheduled Event
Problems with client Windows 7
Understanding the function "Loop" in Regions Option
Layout update time
Default layout playing longer than media assigned
Single region with multiple photos & videos - question regarding the duration
DarkSky module off by day
Trying to figure out random blank screens
Problem with Local Video looping - Windows
Layout not loading
Digital Clock not displaying
HTTP refresh header breaks region timeline
Regions display based on specific times of videos in another region
How to force presentation exchange automatically
Xibo text/rss/dataset region is flickering
Get ticker updates fast
Video Duration 0 Secs, Android Client Plays Video For 10 Secs
Problem with the client
Campaigns are not updated
Best/Most Reliable Player for Xibo? (good Jan 2017 options)
Layout not updated by watch dog
All content plays just once and then doesn't play again
Sometime timing not complete before full display text