API for Changing Media Length or layout length

Hi,

Is there an API to change length of media item or total play time of layout that it should play for irrespective of region timeline playtime.

Is there an example to it.

thanks
btech.

The total length that the layout runs for is governed by the longest running region on the layout. So yes, you could use the API to manipulate the media durations in the regions on a layout to alter the total layout runtime.