Instance Method

setEndTime(_:for:)

The time the designated media item is to stop playing.

Declaration

func setEndTime(_ endTime: TimeInterval, for mediaItem: MPMediaItem)

Parameters

endTime

The TimeInterval describing when the media item stops playing.

mediaItem

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

See Also

Setting Start and End Times

func setStartTime(TimeInterval, for: MPMediaItem)

The time the designated media item is to start playing.