Skip to content

Commit 5a14ca4

Browse files
committed
Merge branch 'release/0.2.40'
2 parents bc140ea + 97e9bfa commit 5a14ca4

28 files changed

+3919
-116
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Example/android/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "30.0.2"
5+
buildToolsVersion = "33.0.0"
66
minSdkVersion = 24
7-
compileSdkVersion = 31
8-
targetSdkVersion = 31
7+
compileSdkVersion = 33
8+
targetSdkVersion = 33
99
ndkVersion = "20.1.5948944"
1010
kotlinVersion = "1.6.21"
1111
}

Example/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
"lint": "eslint ."
1111
},
1212
"dependencies": {
13-
"@react-navigation/native": "6.0.10",
14-
"@react-navigation/native-stack": "6.6.2",
13+
"@react-navigation/native": "6.1.7",
14+
"@react-navigation/native-stack": "6.9.13",
1515
"react": "17.0.1",
1616
"react-native": "0.68.1",
1717
"react-native-bootsplash": "4.1.5",
1818
"react-native-device-info": "9.0.2",
1919
"react-native-fs": "2.16.6",
20-
"react-native-gesture-handler": "2.4.2",
20+
"react-native-gesture-handler": "2.12.1",
2121
"rn-iphone-helper": "2.0.0",
22-
"react-native-jw-media-player": "0.2.36",
23-
"react-native-orientation-locker": "1.4.0",
24-
"react-native-safe-area-context": "4.2.5",
25-
"react-native-screens": "3.13.1",
26-
"react-native-vector-icons": "8.1.0"
22+
"react-native-jw-media-player": "0.2.39",
23+
"react-native-orientation-locker": "1.5.0",
24+
"react-native-safe-area-context": "4.7.2",
25+
"react-native-screens": "3.25.0",
26+
"react-native-vector-icons": "10.0.0"
2727
},
2828
"devDependencies": {
2929
"@babel/core": "^7.14.8",

Example/yarn.lock

+48-99
Original file line numberDiff line numberDiff line change
@@ -1596,45 +1596,45 @@
15961596
resolved "https://registry.npmjs.org/@react-native/polyfills/-/polyfills-2.0.0.tgz"
15971597
integrity sha512-K0aGNn1TjalKj+65D7ycc1//H9roAQ51GJVk5ZJQFb2teECGmzd86bYDC0aYdbRf7gtovescq4Zt6FR0tgXiHQ==
15981598

1599-
"@react-navigation/core@^6.2.1":
1600-
version "6.4.6"
1601-
resolved "https://registry.npmjs.org/@react-navigation/core/-/core-6.4.6.tgz"
1602-
integrity sha512-6zaAgUT5k4vhJlddUk2l52RZyMkMelHdrRv1cL57ALi2RZzERdgmbiMKhJerxFLn9S8E3PUe8vwxHzjHOZKG4w==
1599+
"@react-navigation/core@^6.4.9":
1600+
version "6.4.9"
1601+
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-6.4.9.tgz#aa09ce534f5393427cb993cf242abdbd848fb2c7"
1602+
integrity sha512-G9GH7bP9x0qqupxZnkSftnkn4JoXancElTvFc8FVGfEvxnxP+gBo3wqcknyBi7M5Vad4qecsYjCOa9wqsftv9g==
16031603
dependencies:
1604-
"@react-navigation/routers" "^6.1.6"
1604+
"@react-navigation/routers" "^6.1.9"
16051605
escape-string-regexp "^4.0.0"
16061606
nanoid "^3.1.23"
16071607
query-string "^7.1.3"
16081608
react-is "^16.13.0"
16091609
use-latest-callback "^0.1.5"
16101610

1611-
"@react-navigation/elements@^1.3.3":
1612-
version "1.3.13"
1613-
resolved "https://registry.npmjs.org/@react-navigation/elements/-/elements-1.3.13.tgz"
1614-
integrity sha512-LqqK5s2ZfYHn2cQ376jC5V9dQztLH5ixkkJj9WR7JY2g4SghDd39WJhL3Jillw1Mu3F3b9sZwvAK+QkXhnDeAA==
1611+
"@react-navigation/elements@^1.3.18":
1612+
version "1.3.18"
1613+
resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.18.tgz#d8364b40276f3efb9c229c39da3b8b465f18f0a2"
1614+
integrity sha512-/0hwnJkrr415yP0Hf4PjUKgGyfshrvNUKFXN85Mrt1gY49hy9IwxZgrrxlh0THXkPeq8q4VWw44eHDfAcQf20Q==
16151615

1616-
"@react-navigation/native-stack@6.6.2":
1617-
version "6.6.2"
1618-
resolved "https://registry.npmjs.org/@react-navigation/native-stack/-/native-stack-6.6.2.tgz"
1619-
integrity sha512-pFMuzhxbPml5MBvJVAzHWoaUkQaefAOKpuUnAs/AxNQuHQwwnxRmDit1PQLuIPo7g7DlfwFXagDHE1R0tbnS8Q==
1616+
"@react-navigation/native-stack@6.9.13":
1617+
version "6.9.13"
1618+
resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.9.13.tgz#f308c398ee18fcd45de8ec7c04fe0641735feb31"
1619+
integrity sha512-ejlepMrvFneewL+XlXHHhn+6y3lwvavM4/R7XwBV0XJxCymujexK+7Vkg7UcvJ1lx4CRhOcyBSNfGmdNIHREyQ==
16201620
dependencies:
1621-
"@react-navigation/elements" "^1.3.3"
1621+
"@react-navigation/elements" "^1.3.18"
16221622
warn-once "^0.1.0"
16231623

1624-
"@react-navigation/native@6.0.10":
1625-
version "6.0.10"
1626-
resolved "https://registry.npmjs.org/@react-navigation/native/-/native-6.0.10.tgz"
1627-
integrity sha512-H6QhLeiieGxNcAJismIDXIPZgf1myr7Og8v116tezIGmincJTOcWavTd7lPHGnMMXaZg94LlVtbaBRIx9cexqw==
1624+
"@react-navigation/native@6.1.7":
1625+
version "6.1.7"
1626+
resolved "https://registry.yarnpkg.com/@react-navigation/native/-/native-6.1.7.tgz#968ef85b76d35f63111890668836fe2f125bbf90"
1627+
integrity sha512-W6E3+AtTombMucCRo6q7vPmluq8hSjS+IxfazJ/SokOe7ChJX7eLvvralIsJkjFj3iWV1KgOSnHxa6hdiFasBw==
16281628
dependencies:
1629-
"@react-navigation/core" "^6.2.1"
1629+
"@react-navigation/core" "^6.4.9"
16301630
escape-string-regexp "^4.0.0"
16311631
fast-deep-equal "^3.1.3"
16321632
nanoid "^3.1.23"
16331633

1634-
"@react-navigation/routers@^6.1.6":
1635-
version "6.1.6"
1636-
resolved "https://registry.npmjs.org/@react-navigation/routers/-/routers-6.1.6.tgz"
1637-
integrity sha512-Z5DeCW3pUvMafbU9Cjy1qJYC2Bvl8iy3+PfsB0DsAwQ6zZ3WAXW5FTMX4Gb9H+Jg6qHWGbMFFwlYpS3UJ3tlVQ==
1634+
"@react-navigation/routers@^6.1.9":
1635+
version "6.1.9"
1636+
resolved "https://registry.yarnpkg.com/@react-navigation/routers/-/routers-6.1.9.tgz#73f5481a15a38e36592a0afa13c3c064b9f90bed"
1637+
integrity sha512-lTM8gSFHSfkJvQkxacGM6VJtBt61ip2XO54aNfswD+KMw6eeZ4oehl7m0me3CR9hnDE4+60iAZR8sAhvCiI3NA==
16381638
dependencies:
16391639
nanoid "^3.1.23"
16401640

@@ -5035,61 +5035,16 @@ locate-path@^5.0.0:
50355035
dependencies:
50365036
p-locate "^4.1.0"
50375037

5038-
lodash._reinterpolate@^3.0.0:
5039-
version "3.0.0"
5040-
resolved "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz"
5041-
integrity sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==
5042-
50435038
lodash.debounce@^4.0.8:
50445039
version "4.0.8"
50455040
resolved "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz"
50465041
integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==
50475042

5048-
lodash.frompairs@^4.0.1:
5049-
version "4.0.1"
5050-
resolved "https://registry.npmjs.org/lodash.frompairs/-/lodash.frompairs-4.0.1.tgz"
5051-
integrity sha512-dvqe2I+cO5MzXCMhUnfYFa9MD+/760yx2aTAN1lqEcEkf896TxgrX373igVdqSJj6tQd0jnSLE1UMuKufqqxFw==
5052-
5053-
lodash.isequal@^4.5.0:
5054-
version "4.5.0"
5055-
resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz"
5056-
integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==
5057-
5058-
lodash.isstring@^4.0.1:
5059-
version "4.0.1"
5060-
resolved "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz"
5061-
integrity sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==
5062-
50635043
lodash.merge@^4.6.2:
50645044
version "4.6.2"
50655045
resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz"
50665046
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
50675047

5068-
lodash.omit@^4.5.0:
5069-
version "4.5.0"
5070-
resolved "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz"
5071-
integrity sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==
5072-
5073-
lodash.pick@^4.4.0:
5074-
version "4.4.0"
5075-
resolved "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz"
5076-
integrity sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==
5077-
5078-
lodash.template@^4.5.0:
5079-
version "4.5.0"
5080-
resolved "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz"
5081-
integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==
5082-
dependencies:
5083-
lodash._reinterpolate "^3.0.0"
5084-
lodash.templatesettings "^4.0.0"
5085-
5086-
lodash.templatesettings@^4.0.0:
5087-
version "4.2.0"
5088-
resolved "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz"
5089-
integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==
5090-
dependencies:
5091-
lodash._reinterpolate "^3.0.0"
5092-
50935048
lodash.throttle@^4.1.1:
50945049
version "4.1.1"
50955050
resolved "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz"
@@ -6288,10 +6243,10 @@ [email protected]:
62886243
base-64 "^0.1.0"
62896244
utf8 "^3.0.0"
62906245

6291-
react-native-gesture-handler@2.4.2:
6292-
version "2.4.2"
6293-
resolved "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.4.2.tgz"
6294-
integrity sha512-K3oMiQV7NOVB5RvNlxkyJxU1Gn6m1cYu53MoFA542FVDSTR491d1eQkWDdqy4lW52rfF7IK7eE1LCi+kTJx7jw==
6246+
react-native-gesture-handler@2.12.1:
6247+
version "2.12.1"
6248+
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-2.12.1.tgz#f11a99fb95169810c6886fad5efa01a17fd81660"
6249+
integrity sha512-deqh36bw82CFUV9EC4tTo2PP1i9HfCOORGS3Zmv71UYhEZEHkzZv18IZNPB+2Awzj45vLIidZxGYGFxHlDSQ5A==
62956250
dependencies:
62966251
"@egjs/hammerjs" "^2.0.17"
62976252
hoist-non-react-statics "^3.3.0"
@@ -6304,40 +6259,34 @@ react-native-gradle-plugin@^0.0.6:
63046259
resolved "https://registry.npmjs.org/react-native-gradle-plugin/-/react-native-gradle-plugin-0.0.6.tgz"
63056260
integrity sha512-eIlgtsmDp1jLC24dRn43hB3kEcZVqx6DUQbR0N1ABXGnMEafm9I3V3dUUeD1vh+Dy5WqijSoEwLNUPLgu5zDMg==
63066261

6307-
6308-
version "0.2.36"
6309-
resolved "https://registry.yarnpkg.com/react-native-jw-media-player/-/react-native-jw-media-player-0.2.36.tgz#14ef5777d7b11cb98c22e74c922c35f90a63be9e"
6310-
integrity sha512-RUTaoM9kLeUjeC4//wOOUR4YcNegp8Tsqy5xJoSTa/94zNVjtxlWYcDsnTziHtt+pUpuip8JzhvUHudvOs4pRQ==
6262+
6263+
version "0.2.39"
6264+
resolved "https://registry.yarnpkg.com/react-native-jw-media-player/-/react-native-jw-media-player-0.2.39.tgz#f78d898bff3252d36876b0f20103aa34a25cb714"
6265+
integrity sha512-WF8dTxV6oIdUhD/9j3nFUprMLY2eTJ7j2D/dQtS4RSJZeA9wOjO0F3D97LacCPeGN21v5YwwdmulGNZGDtWABQ==
63116266

6312-
react-native-orientation-locker@1.4.0:
6313-
version "1.4.0"
6314-
resolved "https://registry.npmjs.org/react-native-orientation-locker/-/react-native-orientation-locker-1.4.0.tgz"
6315-
integrity sha512-O/Ki7uw1lltKiTZLcTuLcSh4EzLFqXKKo2J4cLKvyG52YiEawbn/ipsZriZlWzK0mhX4dSe79CoRS4IsyUs1fw==
6267+
react-native-orientation-locker@1.5.0:
6268+
version "1.5.0"
6269+
resolved "https://registry.yarnpkg.com/react-native-orientation-locker/-/react-native-orientation-locker-1.5.0.tgz#324853937eed4835ecd1c8613ab2206135d908ac"
6270+
integrity sha512-4XOCGmNN4BXg5JUFjUuXpsfhPJmbA3LkQilJO1ed+6vL97teTdG2w5IEevKiqL9/hPjeWE8YYtX/YW+yp53hkg==
63166271

6317-
react-native-safe-area-context@4.2.5:
6318-
version "4.2.5"
6319-
resolved "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-4.2.5.tgz"
6320-
integrity sha512-nUil2de1gk/8ZB9IzIxFyGCiKeAYcHzJb/Tks2NzSkev1qH4MNR05DWYDSmW6vLT+y4mospLVyG/H5dyUd+KQQ==
6272+
react-native-safe-area-context@4.7.2:
6273+
version "4.7.2"
6274+
resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.7.2.tgz#1673aa99b6a9235e7faaf5a248e69795d6e54e07"
6275+
integrity sha512-5fy/hRNJ7bI/U2SliOeKf0D80J4lXPc1NsRiNS7Xaz8YTnqlzWib1ViItkwKPfufe54YKzVBMmM32RpdzvO2gg==
63216276

6322-
react-native-screens@3.13.1:
6323-
version "3.13.1"
6324-
resolved "https://registry.npmjs.org/react-native-screens/-/react-native-screens-3.13.1.tgz"
6325-
integrity sha512-xcrnuUs0qUrGpc2gOTDY4VgHHADQwp80mwR1prU/Q0JqbZN5W3koLhuOsT6FkSRKjR5t40l+4LcjhHdpqRB2HA==
6277+
react-native-screens@3.25.0:
6278+
version "3.25.0"
6279+
resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-3.25.0.tgz#cf45e271ce733c9cf782fef8c9b3eb9e53faf01d"
6280+
integrity sha512-TSC2Ad0hh763I8QT6XxMsPXAagQ+RawDSdFtKRvIz9fCYr96AjRwwaqmYivbqlDywOgcRBkIVynkFtp0ThmlYw==
63266281
dependencies:
63276282
react-freeze "^1.0.0"
63286283
warn-once "^0.1.0"
63296284

6330-
6331-
version "8.1.0"
6332-
resolved "https://registry.npmjs.org/react-native-vector-icons/-/react-native-vector-icons-8.1.0.tgz"
6333-
integrity sha512-sHIdBB6Y0dHaot2fMXgy5J/hhCn5YuyN7SKDNFgPzL8KA1oF2/v7mgYMavnK7LIIs2dJoGnDANKf61dsU+TZlg==
6334-
dependencies:
6335-
lodash.frompairs "^4.0.1"
6336-
lodash.isequal "^4.5.0"
6337-
lodash.isstring "^4.0.1"
6338-
lodash.omit "^4.5.0"
6339-
lodash.pick "^4.4.0"
6340-
lodash.template "^4.5.0"
6285+
6286+
version "10.0.0"
6287+
resolved "https://registry.yarnpkg.com/react-native-vector-icons/-/react-native-vector-icons-10.0.0.tgz#0f031f7717f76f0a397f725de9b5a47ec87862e9"
6288+
integrity sha512-efMOVbZIebY8RszZPzPBoXi9pvD/NFYmjIDYxRoc9LYSzV8rMJtT8FfcO2hPu85Rn2x9xktha0+qn0B7EqMAcQ==
6289+
dependencies:
63416290
prop-types "^15.7.2"
63426291
yargs "^16.1.1"
63436292

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ Running the example project:
210210
| **`viewOnly`** | When true the player will not have any controls it will show only the video. | `Boolean` | `iOS` | `false` |
211211
| **`pipEnabled`** | When true the player will be able to go into Picture in Picture mode. **Note: This is true by default for iOS PlayerViewController**. **For Android you will also need to follow the instruction mentioned [here](https://developer.jwplayer.com/jwplayer/docs/android-invoke-picture-in-picture-playback) && below [Picture in picture](Picture-in-picture) section.** | `Boolean` | `iOS when viewOnly prop is true && Android` | `false` |
212212
| **`interfaceBehavior`** | The behavior of the player interface. | `'normal', 'hidden', 'onscreen'` | `iOS` | `normal` |
213+
| **`interfaceFadeDelay`** | The number of seconds to wait when fading the interface. The default value is 3 seconds. | `number` | `iOS` | `3` |
213214
| **`preload`** | The behavior of the preload. | `'auto', 'none'` | `iOS` | `auto` |
214215
| **`related`** | The related videos behaviors. Check out the [Related](#Related) section. | `Object` | `iOS` | `none` |
215216
| **`hideUIGroups`** | A way to hide certain UI groups in the player. | Array of `'overlay', 'control_bar', 'center_controls', 'next_up', 'error', 'playlist', 'controls_container', 'settings_menu', 'quality_submenu', 'captions_submenu', 'playback_submenu', 'audiotracks_submenu', 'casting_menu'` | `Android` | `none` |

RNJWPlayer.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Pod::Spec.new do |s|
99
s.license = package['license']
1010
s.authors = package['author']
1111
s.homepage = package['homepage']
12-
s.platform = :ios, "12.0"
12+
s.platform = :ios, "14.0"
1313
s.source = { :git => "https://github.com/chaimPaneth/react-native-jw-media-player.git", :tag => "v#{s.version}" }
1414
s.source_files = "ios/RNJWPlayer/*.{h,m}"
15-
s.dependency 'JWPlayerKit', '~> 4.14.0'
16-
s.dependency 'google-cast-sdk', '~> 4.7.0'
15+
s.dependency 'JWPlayerKit', '~> 4.17.0'
16+
s.dependency 'google-cast-sdk', '~> 4.8'
1717
s.dependency 'React'
1818
# s.static_framework = true
1919
s.info_plist = {

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ allprojects {
4848
}
4949
}
5050

51-
def jwPlayerVersion = "4.13.0"
51+
def jwPlayerVersion = "4.15.1"
5252
def exoplayerVersion = "2.18.7"
5353

5454
dependencies {

android/src/main/java/com/appgoalz/rnjwplayer/RNJWPlayerView.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,12 @@ public void run() {
465465

466466
@Override
467467
public void onAllowRotationChanged(boolean b) {
468-
Log.e(TAG, "onAllowRotationChanged: "+b );
468+
Log.e(TAG, "onAllowRotationChanged: " + b );
469+
}
470+
471+
@Override
472+
public void onAllowFullscreenPortraitChanged(boolean allowFullscreenPortrait) {
473+
Log.e(TAG, "onAllowFullscreenPortraitChanged: " + allowFullscreenPortrait );
469474
}
470475

471476
@Override

android/src/main/java/com/appgoalz/rnjwplayer/Util.java

+5
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ public static PlaylistItem getPlaylistItem (ReadableMap playlistItem) {
133133
itemBuilder.startTime(startTime);
134134
}
135135

136+
if (playlistItem.hasKey("duration")) {
137+
int duration = playlistItem.getInt("duration");
138+
itemBuilder.duration(duration);
139+
}
140+
136141
if (playlistItem.hasKey("tracks")) {
137142
ArrayList<Caption> tracks = new ArrayList<>();
138143
ReadableArray track = playlistItem.getArray("tracks");

index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ declare module "react-native-jw-media-player" {
171171
related?: Related;
172172
preload?: Preloads;
173173
interfaceBehavior?: InterfaceBehaviors;
174+
interfaceFadeDelay?: number;
174175
hideUIGroups?: UIGroups[];
175176
processSpcUrl?: string;
176177
fairplayCertUrl?: string;

ios/RNJWPlayer/RNJWPlayerView.m

+5
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,11 @@ -(void)setupPlayerViewController:config :(JWPlayerConfiguration*)playerConfig
715715
_interfaceBehavior = [RCTConvert JWInterfaceBehavior:interfaceBehavior];
716716
}
717717

718+
id interfaceFadeDelay = config[@"interfaceFadeDelay"];
719+
if ((interfaceFadeDelay != nil) && (interfaceFadeDelay != (id)[NSNull null])) {
720+
_playerViewController.interfaceFadeDelay = [interfaceFadeDelay doubleValue];
721+
}
722+
718723
id forceFullScreenOnLandscape = config[@"fullScreenOnLandscape"];
719724
if (forceFullScreenOnLandscape != nil && forceFullScreenOnLandscape != (id)[NSNull null]) {
720725
_playerViewController.forceFullScreenOnLandscape = forceFullScreenOnLandscape;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-jw-media-player",
3-
"version": "0.2.39",
3+
"version": "0.2.40",
44
"description": "React-native Android/iOS plugin for JWPlayer SDK (https://www.jwplayer.com/)",
55
"main": "index.js",
66
"types": "./index.d.ts",

0 commit comments

Comments
 (0)