seekTo method is undefined
See original GitHub issueI 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:
And making a reference to it in code via this.refs.youtubePlayer.seekTo()
(I do null check). I get the following error:
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:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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 whenonReady
is called. Instead, I usedonChangeState
when the state equalsstarted
. Just thought I should leave this here in case anyone else gets stuck trying to do something similarThis method is implemented on both platforms on the v1 branch