Prechádzať zdrojové kódy

VLCPlaybackService: Expose current aspect ratio

Soomin Lee 5 rokov pred
rodič
commit
b3a563ac5b

+ 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;