Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ios/Video/RCTVideoManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ @interface RCT_EXTERN_MODULE (RCTVideoManager, RCTViewManager)
RCT_EXPORT_VIEW_PROPERTY(onTextTracks, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onAudioTracks, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onTextTrackDataChanged, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onTimeUpdate, RCTDirectEventBlock); // Pass time update events

RCT_EXTERN_METHOD(seekCmd : (nonnull NSNumber*)reactTag time : (nonnull NSNumber*)time tolerance : (nonnull NSNumber*)tolerance)
RCT_EXTERN_METHOD(setLicenseResultCmd : (nonnull NSNumber*)reactTag license : (NSString*)license licenseUrl : (NSString*)licenseUrl)
Expand Down
1 change: 1 addition & 0 deletions src/Video.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
)
: 0,
seekableDuration: 0,
currentPlaybackTime: 0, // Update this with the correct playback time
});
}}
onLoadedData={() => onReadyForDisplay?.()}
Expand Down
1 change: 1 addition & 0 deletions src/specs/VideoNativeComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export type OnProgressData = Readonly<{
currentTime: Float;
playableDuration: Float;
seekableDuration: Float;
currentPlaybackTime: number; // To get EXT-X-PLAYBACK-TIME
}>;

export type OnBandwidthUpdateData = Readonly<{
Expand Down
Loading