At the end of the play, typeError.
See original GitHub issueExapmle code,
<VideoPlayer
endWithThumbnail
thumbnail={{uri: this.state.thumbnailUrl}}
video={{uri: this.state.videoUrl}}
videoWidth={this.state.video.width}
videoHeight={this.state.video.height}
duration={this.state.video.duration/* I'm using a hls stream here, react-native-video
can't figure out the length, so I pass it here from the vimeo config */}
ref={r => this.player = r}
/>
at the end of the play
TypeError:null is not an object(evaluating '_this2.palyer.seek')
this error is located at:
in videoplayer(at index.js:35)
<VideoPlayer
endWithThumbnail={false}
thumbnail={{uri: this.state.thumbnailUrl}}
video={{uri: this.state.videoUrl}}
videoWidth={this.state.video.width}
videoHeight={this.state.video.height}
duration={this.state.video.duration/* I'm using a hls stream here, react-native-video
can't figure out the length, so I pass it here from the vimeo config */}
ref={r => this.player = r}
/>
If this is the case, Error will not occur. Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'play' of null at ...
Please help me understand why Im getting this error on the console, Im using google chrome. <!DOCTYPE html> <html lang="en" dir="ltr"> ...
Read more >Uncaught TypeError: Cannot read property 'play' of undefined
Unable to play any videos using videojs-youtube. Testing using the build of videojs on the master and stable branches.
Read more >Uncaught TypeError : Cannot read properties of undefined
The TypeError occurs when a variable or parameter is not of a valid type. Common Scenarios: Invoking objects that are not methods; Attempting...
Read more >DOMException - The play() request was interrupted
If playback succeeds, the Promise is fulfilled and the playing event is fired at the same time. If playback fails, the Promise is...
Read more >TypeError: JavaScript - LambdaTest
TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or function....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
try
yarn add react-native-video-player@0.9.0
it’s worked for me@cornedor yes,I was very careless。_this2.player.seek![image](https://user-images.githubusercontent.com/13825960/37963973-8724834a-31f2-11e8-9d3c-428bac568da2.png)