Commit Graph

108 Commits

Author SHA1 Message Date
coofzilla
253ffb5956
feat(ios): Add ios support for accessing WebVTT Subtitle Content (#3541)
* feature: add support to get subtitle content data

* refactor: return a string of the subtitles

Push the parsing/formatting to the consumer side.

* chore: add types for new subtitle feature

* chore: run swiftlint and swiftformat

* chore: add documentation for new onSubtitleTracks callback

* chore: added test uri; basic implementation of feature; hotfix onTextTracks

added optional chaining for `return x?.selected` because tracks that don't have a track selected either by default or manually will return undefined and this can cause an error.

* feat: rename onSubtitleTracks to onTextTrackDataChanged

Renamed the onSubtitleTracks event to onTextTrackDataChanged across the codebase to clearly indicate the callback's purpose: being called when the text track's data changes. This change is reflected in the events documentation, example usage in VideoPlayer.tsx, and the relevant iOS implementation files for consistency and clarity, in line with PR feedback.

* chore: omit target property

target could be confusing for users so we have removed it. using the delete operator instead of using {target,...eventData} as that would give an eslint error about unused vars.
2024-02-29 14:41:04 +01:00
Krzysztof Moch
b5ac4d6a11
chore(example): bump react-native version (#3466)
* chore(example): bump react-native version

* fix(ci): bump java version
2024-01-10 08:45:37 +01:00
Olivier Bouillet
22a2655dca
fix: ensure save doesn't crash on android (#3415)
Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-12-10 15:53:48 +01:00
Olivier Bouillet
fbb5654a8e
fix: revert drm type definition change (#3409)
And add drm content in android sample

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-12-08 11:58:00 +01:00
Olivier Bouillet
472820123a
chore(sample): fix lint and ts sample & add ci jobs to build samples (#3365)
* chore: start fixing linter and tsc warning and errors
* chore(ci): add basic example build
* chore: allow to build with or without ads on android
* chore: fix job definition

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2023-11-30 21:17:41 +01:00
Olivier Bouillet
fe89122524
fix(android): ads build and enable ads in android sample (#3376)
* fix: refactor androidx core version management

* chore: fix missing import rework for media3

* fix: enable IMA in sample

* chore: rename stub fie

* chore: code review, fix variable name

* chore: reorder imports

* chore: fix linking in sample

* chore: fix stub management

* chore: few cleans and ensure we don't use ima is disabled

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-24 13:17:13 +01:00
Olivier Bouillet
5beef383cb
fix(android): revert media3 update, back to 1.1.1 (#3369)
* fix: revert last media3 upgrade

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-22 15:03:57 +01:00
Krzysztof Moch
211c3c7d08
fix(example): remove dependency loop (#3353)
* chore(examples/basic): fix eslint config

* chore(examples/basic): change manual linking for react-native-video

* Update examples/basic/package.json

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2023-11-17 08:38:26 +01:00
Olivier Bouillet
dfac7a6ed3
Fix(ios): restore caching feature (#3341)
* chore: fix build issue

* fix: try to fix save typings

* chore: fix podspec

* fix: update integration guide for ios Caching

* fix: update sample to test the save function

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
2023-11-13 21:36:16 +01:00
Olivier Bouillet
0f8467f51d
chore: rework typescript integration (#3304)
* create few new types
* Add missing api

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
2023-10-26 08:46:04 +02:00
Krzysztof Moch
45dcded576
fix(example): update metro config (#3291) 2023-10-12 10:36:15 +02:00
Olivier Bouillet
1f0137608a
feat(sample): merge ios and android samples (#3015)
* chore: split components
2023-10-07 23:14:09 +02:00
Konstantin
a855284d8d
feat(tvos): add custom image metadata option for tvos and add missing types for custom metadata properties (#3280)
* fix: add typescript types for custom metadata properties
* chore: add possibility to override image metadata of video playback

---------

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
2023-10-07 15:14:10 +02:00
Olivier Bouillet
4dd2319dee
Merge pull request #3263 from TheWidlarzGroup/chore/bump-example-react-native-version
chore(example/basic): bump react native version
2023-09-29 22:40:50 +02:00
KrzysztofMoch
a279a0cb3a chore(example/basic): bump react native version 2023-09-28 08:25:13 +02:00
KrzysztofMoch
04b52023f7 chore: update basic example 2023-09-25 08:30:08 +02:00
Olivier Bouillet
a0fa8312ba
Merge pull request #3216 from Duell10111/tvos-custom-playback-exerpience-fork
feat: allow customization of tvOS playback expierence
2023-09-13 21:27:37 +02:00
olivier
ddc87acf84 fix: implement lost presentFullscreenPlayer & dismissFullscreenPlayer
These apis has been removed during swift porting
2023-09-04 23:57:45 +02:00
Konstantin Späth
8bd5525d87 chore: use bunny example video again 2023-08-25 12:57:43 +02:00
Konstantin Späth
6cbc7cdc89 chore: add chapter images 2023-08-25 12:54:37 +02:00
Konstantin Späth
b225b0f800 chore: add custom titles, description and chapters 2023-08-25 12:54:37 +02:00
Konstantin Späth
f4851ba181 chore: add tvOS example project 2023-08-11 23:59:39 +02:00
yungblud
d81d59d00f feat: setup pod-install script with fabric enabled on Podfile 2023-07-19 16:47:56 +09:00
yungblud
0cd28cfdf1 feat: changed folder name to FabricExample 2023-07-19 16:36:52 +09:00
yungblud
805ccb9f47 feat: renamed with react-native-rename 2023-07-19 16:36:24 +09:00
yungblud
0ca348f4b5 feat: setup kotlin 2023-07-19 16:32:19 +09:00
yungblud
650b3a6a24 feat: setup android example app for fabric android 2023-07-19 16:31:47 +09:00
yungblud
7b6e76e2d0 feat: setup example app new arch 2023-07-19 16:31:27 +09:00
yungblud
0be9de98d8 feat: turn on newarch enabled on example app 2023-07-19 16:31:08 +09:00
jiyong1
bc4d2cacc5 example app change 2023-07-19 16:29:59 +09:00
jiyong1
2c2f812359 chore: update example package 2023-07-19 16:28:32 +09:00
yungblud
b2bf6f8333 chore: chore 2023-07-19 16:25:16 +09:00
yungblud
9e9c5ec01a feat: added example video 2023-07-19 16:24:06 +09:00
yungblud
4ddecbf42b feat: modified setup 2023-07-19 16:24:00 +09:00
yungblud
f5dc4992fb feat: modified setup 2023-07-19 16:23:53 +09:00
yungblud
fe4e2bfcd9 feat: Pod install 2023-07-19 16:23:45 +09:00
yungblud
f9fe2b0f38 feat: set path 2023-07-19 16:23:39 +09:00
yungblud
70bab9e69c feat: added setup for exapmle 2023-07-19 16:23:06 +09:00
yungblud
617bcb36a2 feat: added laftel video example app 2023-07-19 16:21:39 +09:00
olivier
4aca30d308 fix: disable Google IMA by default on ios. now shall be enabled in project podfile 2023-03-12 23:29:03 +01:00
Sunbreak
9baa1391ca fix: update debug JSBundle name & rootView component 2023-03-10 11:02:02 +08:00
olivier
a3b4b94f71 chore: fix build of andrpoid sample 2023-02-07 23:15:05 +01:00
olivier
57b4a76775 fix: add stub for IMA and option to enable it on demand 2023-02-07 23:14:50 +01:00
Olivier Bouillet
9bcca0c5be
Merge pull request #2806 from iFeelSmart/feat/add_new_events_on_tracks_changed
Feature(android): new events on tracks changed
2023-01-03 18:50:38 +01:00
olivier bouillet
2b6654b458 Merge branch 'master' of https://github.com/react-native-video/react-native-video into feat/add_new_events_on_tracks_changed
# Conflicts:
#	API.md
#	android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java
#	android/src/main/java/com/brentvatne/exoplayer/VideoEventEmitter.java
#	examples/basic/yarn.lock
2023-01-02 22:59:10 +01:00
olivier bouillet
11b9449692 chore: fix sample typing mismatch 2023-01-02 22:39:04 +01:00
olivier bouillet
58c719c275 fix: upgrade react-native version on basic sample 2022-12-17 16:35:37 +01:00
olivier bouillet
845f34fefd test: add fullscreen prop in sample 2022-11-03 08:26:31 +01:00
olivier bouillet
64e024d149 Merge branch 'master' of https://github.com/react-native-video/react-native-video into feat/add_new_events_on_tracks_changed
# Conflicts:
#	CHANGELOG.md
#	android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java
#	examples/basic/src/VideoPlayer.android.tsx
2022-10-29 15:20:36 +02:00
olivier bouillet
c197271889 chore: revert strange url in sample 2022-10-02 21:33:24 +02:00