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.

seekTo method is undefined

See original GitHub issue

I want to be able to set the time but for some reason I do not get access to the seekTo method. Printing the reference shows the following: image

And making a reference to it in code via this.refs.youtubePlayer.seekTo() (I do null check). I get the following error:

image

My youtube.android.js file is up to date and has the same 3 references to the seekTo method as does the github so I’m not sure what I’m doing wrong here. Anyone else have any input? I am new to react-native so maybe I’m making a reference to the seekTo method wrong here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DannyAzizcommented, Apr 17, 2017

@iDams Perfect, that helped a lot thanks. I was attempting to get the video to start at a particular time and was using the onReady event to seek forward but it wasn’t actually playing when onReady is called. Instead, I used onChangeState when the state equals started. Just thought I should leave this here in case anyone else gets stuck trying to do something similar

1reaction
davidohayon669commented, Apr 17, 2017

This method is implemented on both platforms on the v1 branch

Read more comments on GitHub >

github_iconTop Results From Across the Web

seekTo method is undefined · Issue #135 - GitHub
I want to be able to set the time but for some reason I do not get access to the seekTo method. Printing...
Read more >
Youtube API - SeekTo sometimes doesn't work - Stack Overflow
I'm trying to let the users seek to specific times at a youtube video using the following function: function setCurrentTime(slideNum) { var ...
Read more >
MediaSession.setActionHandler() - Web APIs | MDN
The setActionHandler() method of the MediaSession interface sets a handler for a media session action. These actions let a web app receive ...
Read more >
EphemeralMediaSessionCoordinatorSuspension ... - Microsoft Learn
Method Details. end(undefined | number). Ends the suspension and optionally proposes a time to seek to. TypeScript. Copiar. function end(seekTo?: undefined ...
Read more >
RxPlayer API - RxPlayer Documentation
Only variables and methods defined here are considered as part of the API. ... is no audio tracks API in the browser, this...
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