question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

At the end of the play, typeError.

See original GitHub issue

Exapmle 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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
alprtvcommented, Apr 5, 2018

try yarn add react-native-video-player@0.9.0 it’s worked for me

1reaction
MrLaibincommented, Mar 27, 2018

@cornedor yes,I was very careless。_this2.player.seek image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found