Skip to content

Commit b40823d

Browse files
committed
Merge branch 'release/0.2.5'
2 parents e7be473 + 63d75d5 commit b40823d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

ios/RNJWPlayer/RNJWPlayerView.m

+11
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,17 @@ - (void)jwplayerContentIsBuffering:(id<JWPlayer>)player
912912
}
913913
}
914914

915+
- (void)jwplayer:(id<JWPlayer>)player isBufferingWithReason:(enum JWBufferReason)reason
916+
{
917+
if (_playerViewController) {
918+
[_playerViewController jwplayer:player isBufferingWithReason:reason];
919+
}
920+
921+
if (self.onBuffer) {
922+
self.onBuffer(@{});
923+
}
924+
}
925+
915926
- (void)jwplayer:(id<JWPlayer>)player updatedBuffer:(double)percent position:(JWTimeData *)time
916927
{
917928
if (_playerViewController) {

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.4",
3+
"version": "0.2.5",
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)