3

こんにちは、私は AVPlayer を使用していますが、その中で .mov ファイルを繰り返し再生したいと思っています。

4

2 に答える 2

4
player.actionAtItemEnd = AVPlayerActionAtItemEndNone;

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playerItemDidReachEnd:) name:AVPlayerItemDidPlayToEndTimeNotification object:[player currentItem]];

    - (void)playerItemDidReachEnd:(NSNotification *)notification{

AVPlayerItem *p = [notification object];

[p seekToTime:kCMTimeZero];
} 
于 2011-05-03T07:17:19.953 に答える