Closed Jmilham21 closed 1 month ago
It'd be worth considering the onCaptionText
event as well. This is helpful for those who want to render captions outside of the player.
Finished with the work found here: https://github.com/jwplayer/jwplayer-react-native/pull/99
This will be in the next release to NPM (version TBD)
What needs to be implemented Expose:
onCaptionsChanged
/onCaptionsList
(Android), and jwplayer(_:captionTrackChanged:) / jwplayer(_:updatedCaptionList:) (iOS) need to be exposed in JS.getCurrentCaptions
function (Android) / currentCaptionsTrack property (iOS).How should it be implemented
Acceptance Criteria
index.js
andindex.d.ts
getCurrentCaptions
in JS / NativeExample
app OR inREADME.md
Additional context If there are any other captions events or helper functions you see, feel free to implement.