瀏覽代碼

VLCServerBrowsingController: add the fullscreen session requested at YES for playing video in fullscreen, by default.

Pierre SAGASPE 7 年之前
父節點
當前提交
996c7e23ff
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      SharedSources/ServerBrowsing/VLCServerBrowsingController.m

+ 4 - 1
SharedSources/ServerBrowsing/VLCServerBrowsingController.m

@@ -201,7 +201,9 @@
 
 - (void)streamMediaList:(VLCMediaList *)mediaList startingAtIndex:(NSInteger)startIndex
 {
-    [[VLCPlaybackController sharedInstance] playMediaList:mediaList firstIndex:startIndex subtitlesFilePath:nil];
+    VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
+    vpc.fullscreenSessionRequested = YES;
+    [vpc playMediaList:mediaList firstIndex:startIndex subtitlesFilePath:nil];
     [self showMovieViewController];
 }
 
@@ -221,6 +223,7 @@
         URLofSubtitle = [self _getFileSubtitleFromServer:remoteSubtitleURL];
 
     VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
+    vpc.fullscreenSessionRequested = YES;
     VLCMediaList *medialist = [[VLCMediaList alloc] init];
     [medialist addMedia:[VLCMedia mediaWithURL:item.URL]];
     [vpc playMediaList:medialist firstIndex:0 subtitlesFilePath:URLofSubtitle];