Dailymotion Objective-C 播放器未全屏
Dailymotion Objective-C player not fullscreen
我的应用程序中有 dailymotion-player-objc 2.9.0,视频停止显示全屏。它一直运行良好:
DMPlayerViewController *playerViewController;
[playerViewController loadVideo:@"x38n9ji" withParams:@{@"webkit-playsinline":@(NO),@"chromeless":@(YES),@"related":@(NO),@"quality":@720}];
- (void)dailymotionPlayer:(DMPlayerViewController *)player didReceiveEvent:(NSString *)eventName {
if ([eventName isEqualToString:@"playing"])
{
***// event detected but player doesn't enter fullscreen***
playerViewController.fullscreen = YES;
}
if ([eventName isEqualToString:@"fullscreenchange"])
{
***// event not detected player doesn't enter fullscreen***
}
}
使用 iOS 9.1 / App Transport Security - 允许任意加载 YES / DMPlayerViewController in Container View / Storyboard
有人遇到同样的问题或知道发生了什么事吗?
谢谢!
Dailymotion 方面存在问题,现已解决,因此全屏现在应该可以正常工作了。
我的应用程序中有 dailymotion-player-objc 2.9.0,视频停止显示全屏。它一直运行良好:
DMPlayerViewController *playerViewController;
[playerViewController loadVideo:@"x38n9ji" withParams:@{@"webkit-playsinline":@(NO),@"chromeless":@(YES),@"related":@(NO),@"quality":@720}];
- (void)dailymotionPlayer:(DMPlayerViewController *)player didReceiveEvent:(NSString *)eventName {
if ([eventName isEqualToString:@"playing"])
{
***// event detected but player doesn't enter fullscreen***
playerViewController.fullscreen = YES;
}
if ([eventName isEqualToString:@"fullscreenchange"])
{
***// event not detected player doesn't enter fullscreen***
}
}
使用 iOS 9.1 / App Transport Security - 允许任意加载 YES / DMPlayerViewController in Container View / Storyboard
有人遇到同样的问题或知道发生了什么事吗?
谢谢!
Dailymotion 方面存在问题,现已解决,因此全屏现在应该可以正常工作了。