Browse Source

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

Pierre SAGASPE 7 years ago
parent
commit
996c7e23ff
1 changed files with 4 additions and 1 deletions
  1. 4 1
      SharedSources/ServerBrowsing/VLCServerBrowsingController.m

+ 4 - 1
SharedSources/ServerBrowsing/VLCServerBrowsingController.m

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