Commit 5f0e7963 authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Add basic 360 support methods in VLCPlaybackController

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 406f1bff
Pipeline #66 failed with stage
in 0 seconds
......@@ -91,7 +91,8 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
- (void)forward;
- (void)backward;
- (void)switchAspectRatio;
- (BOOL)updateViewpoint:(CGFloat)yaw pitch:(CGFloat)pitch roll:(CGFloat)roll fov:(CGFloat)fov absolute:(BOOL)absolute;
- (NSInteger)currentMediaProjection;
- (void)recoverDisplayedMetadata;
- (void)recoverPlaybackState;
......
......@@ -765,6 +765,29 @@ VLCMediaDelegate>
return _videoOutputViewWrapper;
}
#pragma mark - 360 Support
- (BOOL)updateViewpoint:(CGFloat)yaw pitch:(CGFloat)pitch roll:(CGFloat)roll fov:(CGFloat)fov absolute:(BOOL)absolute
{
return [_mediaPlayer updateViewpoint:yaw pitch:pitch roll:roll fov:fov absolute:absolute];
}
- (NSInteger)currentMediaProjection
{
VLCMedia *media = [_mediaPlayer media];
NSInteger currentVideoTrackIndex = [_mediaPlayer currentVideoTrackIndex];
if (media && currentVideoTrackIndex >= 0) {
NSArray *tracksInfo = media.tracksInformation;
NSDictionary *track = tracksInfo[currentVideoTrackIndex];
if ([track[VLCMediaTracksInformationType] isEqualToString:VLCMediaTracksInformationTypeVideo]) {
return [track[VLCMediaTracksInformationVideoProjection] integerValue];
}
}
return -1;
}
#pragma mark - equalizer
- (void)setAmplification:(CGFloat)amplification forBand:(unsigned int)index
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment