add ability to change progress update interval (#289)
* added progressUpdateInterval prop iOS * add prop to Video.js * added progressUpdateInterval prop iOS * add prop to Video.js
This commit is contained in:
@@ -636,6 +636,11 @@ static NSString *const playbackRate = @"rate";
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setProgressUpdateInterval:(float)progressUpdateInterval
|
||||
{
|
||||
_progressUpdateInterval = progressUpdateInterval;
|
||||
}
|
||||
|
||||
- (void)removePlayerLayer
|
||||
{
|
||||
[_playerLayer removeFromSuperlayer];
|
||||
|
@@ -54,6 +54,7 @@ RCT_EXPORT_VIEW_PROPERTY(rate, float);
|
||||
RCT_EXPORT_VIEW_PROPERTY(seek, float);
|
||||
RCT_EXPORT_VIEW_PROPERTY(currentTime, float);
|
||||
RCT_EXPORT_VIEW_PROPERTY(fullscreen, BOOL);
|
||||
RCT_EXPORT_VIEW_PROPERTY(progressUpdateInterval, float);
|
||||
|
||||
- (NSDictionary *)constantsToExport
|
||||
{
|
||||
|
Reference in New Issue
Block a user