Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose timeshift api #135

Merged
merged 16 commits into from
Jun 28, 2023
Merged

Expose timeshift api #135

merged 16 commits into from
Jun 28, 2023

Conversation

zigavehovec
Copy link
Contributor

@zigavehovec zigavehovec commented Jun 23, 2023

Problem

The timeShift API isn't exposed yet.

Changes

  • Expose Player.timeShift(), Player.getTimeShift() and Player.getMaxTimeShift()
  • Expose timeShift related events: TimeShiftEvent and TimeShiftedEvent

Note that TimeShiftEvent.target has been renamed to TimeShiftEvent.targetPosition in the RN world since target cannot be mapped to JS objects with RCTEventEmitter (both Android and iOS) for some reason.

@zigavehovec zigavehovec marked this pull request as ready for review June 27, 2023 12:43
@zigavehovec zigavehovec self-assigned this Jun 27, 2023
Copy link
Contributor

@rolandkakonyi rolandkakonyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I marked some changes with 🚨 as those are functionally broken.

Others are documentation related only.

Note: We missed exposing LiveConfig but I think that could be covered in a separate PR later.

src/player.ts Outdated Show resolved Hide resolved
src/player.ts Outdated Show resolved Hide resolved
ios/RNPlayerView+PlayerListener.swift Outdated Show resolved Hide resolved
ios/PlayerModule.swift Outdated Show resolved Hide resolved
src/player.ts Outdated Show resolved Hide resolved
src/player.ts Outdated Show resolved Hide resolved
src/player.ts Outdated Show resolved Hide resolved
@zigavehovec zigavehovec merged commit da62e30 into development Jun 28, 2023
4 checks passed
@zigavehovec zigavehovec deleted the PRN-12/expose-timeshift-api branch June 28, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants