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.

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