Instance Method

setStartTime(_:for:)

The time the designated media item is to start playing.

Declaration

func setStartTime(_ startTime: TimeInterval, for mediaItem: MPMediaItem)

Parameters

startTime

The TimeInterval describing when the media item starts playing.

mediaItem

The media item in the queue whose start time has been changed.

See Also

Setting Start and End Times

func setEndTime(TimeInterval, for: MPMediaItem)

The time the designated media item is to stop playing.