transitionToItem(withIdentifier:proposingInitialTimingBasedOn:)
Tells the coordinator to transition to a new item.
Declaration
func transitionToItem(withIdentifier itemIdentifier: String?, proposingInitialTimingBasedOn snapshotTimebase: CMTimebase?)Parameters
- itemIdentifier:
The identifier for the new current item, which is
nilif there isn’t anything to play. - snapshotTimebase:
A time base that communicates the initial playback state of the new item. If you specify
nil, the coordinator assumes that the player pauses at Zero.You can retrieve an appropriate time base to pass for this value from AVFoundation playback objects like Avsamplebufferrendersynchronizer. You can also create one manually using the Cmtimebasecreatewithsourceclock(allocator:sourceclock:timebaseout:) function.