Here is some of the code for adding a new Library item to a Playlist:
// Determine the duration $itemDuration = ($duration !== null) ? $duration : $item->duration; $itemDuration = ($itemDuration == 0) ? $module->determineDuration() : $itemDuration;
Based on this, the Module-level duration is being used as a default if a duration is not specified. I would prefer the duration to be derived from the Library media item itself (which also stores a duration value).
Here’s what I would think should be the use case:
- When adding a new Media item to the Library, if a duration is not specified store the Module default duration as the duration for the new Media item
- When adding a new Library Media item to a Playlist, if a duration is not specified store the Media item’s duration as the new widget’s duration.
Could this be implemented in RC2?