Regarding your first question: set the property AVQueuePlayer actionAtItemEndto AVPlayerActionAtItemEndNone. Then register for AVPlayerItemDidPlayToEndTimeNotificationand inside the function that processes this notification call [player seekToTime:kCMTimeZero], which plays your current video from the very beginning.
Second question: you can also take care of this case inside the specified function.
tephe source
share