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:
ndao
2016-10-01 11:23:50 -07:00
committed by Matt Apperson
parent 0c746e8fe8
commit 6b62119ce0
4 changed files with 24 additions and 17 deletions

View File

@@ -636,6 +636,11 @@ static NSString *const playbackRate = @"rate";
}
}
- (void)setProgressUpdateInterval:(float)progressUpdateInterval
{
_progressUpdateInterval = progressUpdateInterval;
}
- (void)removePlayerLayer
{
[_playerLayer removeFromSuperlayer];

View File

@@ -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
{