|
@@ -208,8 +208,11 @@
|
|
|
} else {
|
|
|
// Create autoresizing view for video playback.
|
|
|
GodotNativeVideoView *videoView = [[GodotNativeVideoView alloc] initWithFrame:self.view.bounds];
|
|
|
- videoView.autoresizingMask = UIViewAutoresizingFlexibleWidth & UIViewAutoresizingFlexibleHeight;
|
|
|
+ videoView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
|
[self.view addSubview:videoView];
|
|
|
+
|
|
|
+ self.videoView = videoView;
|
|
|
+
|
|
|
return [self.videoView playVideoAtPath:filePath volume:videoVolume audio:audioTrack subtitle:subtitleTrack];
|
|
|
}
|
|
|
}
|