Browse Source

VLCPlaybackService: Expose current aspect ratio

Soomin Lee 5 years ago
parent
commit
b3a563ac5b
2 changed files with 2 additions and 1 deletions
  1. 2 0
      Sources/VLCPlaybackService.h
  2. 0 1
      Sources/VLCPlaybackService.m

+ 2 - 0
Sources/VLCPlaybackService.h

@@ -112,6 +112,8 @@ NS_SWIFT_NAME(PlaybackService)
 
 @property (nonatomic, nullable) VLCRendererItem *renderer;
 
+@property (nonatomic, readonly) VLCAspectRatio currentAspectRatio;
+
 + (VLCPlaybackService *)sharedInstance;
 - (VLCTime *)playedTime;
 #pragma mark - playback

+ 0 - 1
Sources/VLCPlaybackService.m

@@ -45,7 +45,6 @@ NSString *const VLCPlaybackServicePlaybackPositionUpdated = @"VLCPlaybackService
     int _itemInMediaListToBePlayedFirst;
     NSTimer *_sleepTimer;
 
-    NSUInteger _currentAspectRatio;
     BOOL _isInFillToScreen;
     NSUInteger _previousAspectRatio;