ios - Notification when AVQueuePlayer rewinds to the beginning of an item -
After
I have 5 Why the 4th item is 3 items after the current item is rewound to its start The only way that I can turn this off is to set the player to auto- Not the advance ( After the text "itemprop =" text "> The way I handled this was in the demanding code, The following method is called long press gesture identifier. If a long time is organized, one may wish to speed up the quest. AVPlayerItems my
AVQueuePlayer In the
AVPlayerActionAtItemEndAdvance is set. I hit on playing on my UI, and play for the first time, start playing second and third again. Then I pressed my rewind button. What I have to do, it is that the third video has been changed in its beginning, and I get a notification that helps me stop I am seeing that I am ready to play for the 4th item One gets the status, after which an existing item is converted into 4th item - then the item plays 4th.
AVPlayerActionAtItemEndPause ) is followed by the end of each item, and hopefully I get an "end play off" notification for the rewinding of the third item, as well as when it is naturally its Finally, in my end supervisor code, I play Can see the player's rate, and if rewinding, do not advance to the next item.
actionAtItemEnd < Code> AVPlayerActionAtItemEndNone , and then reset it back to the code <> AVPlayerActionAtItemEndAdvance When the demand ends on IOS6, it appears that any track is looking for before beginning Could. In the "End Demand" code, I reset the rate and current time before the beginning of normal playback.
- (iBAction) Fast Rewind: (ID) sender {UIGestureRecognizer * recog = (UIGestureRecognizer *) sender; If (recog.state == UIGestureRecognizerStateBegan) {if (_player.rate == 1) {NSLog (@ this "fastRewind \ n% @",); _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; _player.rate = -2; (! Recog.state = UIGestureRecognizerStateChanged)}} else if {// end / canceled NSLog (@ "fastRewind end \ n% @", this); If (_player.rate & lt; 0) {_player.rate = 0; If (CMTimeGetSeconds (_player.currentTime) & lt; 0) {[_player seekToTime: CMTimeMake (0, 1)]; } _player.actionAtItemEnd = AVPlayerActionAtItemEndvance; _player.rate = 1;
Comments
Post a Comment