提交 db8e94e6 编写于 作者: Z Zhang Rui

ios/AVPlayer: replace ariPlayVideo with externalPlayback

上级 a5ef28bb
......@@ -889,22 +889,21 @@ static IJKAVMoviePlayerController* instance;
{
if (!_player)
return NO;
return [_player allowsAirPlayVideo];
return _player.allowsExternalPlayback;
}
-(void)setAllowsMediaAirPlay:(BOOL)b
{
if (!_player)
return;
[_player setAllowsAirPlayVideo:b];
_player.allowsExternalPlayback = b;
}
-(BOOL)airPlayMediaActive
{
if (!_player)
return NO;
return _player.airPlayVideoActive || self.isDanmakuMediaAirPlay;
return _player.externalPlaybackActive || self.isDanmakuMediaAirPlay;
}
- (void)setScalingMode: (MPMovieScalingMode) aScalingMode
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册