Android-youtube-player: Player UI is borken

Created on 14 Nov 2017  ·  14Comments  ·  Source: PierfrancescoSoffritti/android-youtube-player

chromium: [INFO:CONSOLE(85)] "Uncaught TypeError: player.getVideoData is not a function", source: https://www.youtube.com/ (85)

Most helpful comment

Now the library is using only documented methods from the YouTube API, therefore overnight breaking chances like this won't happen anymore.

All 14 comments

Have you tried the sample app? Does the video starts?

Are you connected to the internet?

On Tue, Nov 14, 2017, 4:03 AM hiddow notifications@github.com wrote:

chromium: [INFO:CONSOLE(85)] "Uncaught TypeError: player.getVideoData is
not a function", source: https://www.youtube.com/ (85)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PierfrancescoSoffritti/Android-YouTube-Player/issues/54,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHHI8wqf6h62tXEugAkeKGuzXW1vdPjeks5s2QMJgaJpZM4QcvFN
.

the sample app is also same, can't move the progressbar, not duration show, not video title show, but also can play.

You CAN play? Confirm?
What version of Android are you using?

On Tue, Nov 14, 2017, 7:19 AM hiddow notifications@github.com wrote:

the sample app is also same, can't move the progressbar, not duration
show, not video title show, but also can play.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/PierfrancescoSoffritti/Android-YouTube-Player/issues/54#issuecomment-344157716,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHHI8w71UmYp_TmfkvRSYNzMxtaxUrpJks5s2TDjgaJpZM4QcvFN
.

samsung s7 edge :Android 7.0.1
Nexus5 : Android 6.0.1
yestoday both work fine, but today is not working normal. video can play, can't control the playback progress .

ScreenShot no duration show.

2017年11月14日 14:21,"Pierfrancesco Soffritti" notifications@github.com写道:

You CAN play? Confirm?
What version of Android are you using?

On Tue, Nov 14, 2017, 7:19 AM hiddow notifications@github.com wrote:

the sample app is also same, can't move the progressbar, not duration
show, not video title show, but also can play.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
Android-YouTube-Player/issues/54#issuecomment-344157716>,
or mute the thread
TmfkvRSYNzMxtaxUrpJks5s2TDjgaJpZM4QcvFN>
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PierfrancescoSoffritti/Android-YouTube-Player/issues/54#issuecomment-344158034,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIh69lknlWVO4kGmZZRyWpCawHbbmyCQks5s2TFegaJpZM4QcvFN
.

I have made no changes to the library release, nor yesterday nor today. Therefore, if yesterday it was working fine you must have changed something in your code, is that possible?

Nope, I also check your app https://play.google.com/store/apps/details?id=com.pierfrancescosoffritti.shuffly the same situation: not duration, can't change the seek progress , and the sample app I didn't change any code ,as you can see the screenshot https://imgur.com/gallery/NuqJx , maybe the youtube API changed?

Oh wow, I have the same problem on Shuffly. Yeah, YouTube must have changed something T_T
bug fix coming soon, I hope.

Thanks

I can confirm that the YouTube API has changed, the method getVideoData() is not available anymore. Now we need to find an alternative way to know the video title.
YouTubeData API could solve this problem, but I'm not very keen to add that to the player.

@hiddow @mdtuyen I have solve the problem. Version 2.0.0 of the library will work fine. I had to make a few breaking changes, so you will have to change a couple of lines in your code.
The video title is not automatically updated anymore. If you want to show it, you have to fetch it manually. See method getVideoTitle() in the sample app for an example.

What about the video duration?

That's working fine as before.

Now the library is using only documented methods from the YouTube API, therefore overnight breaking chances like this won't happen anymore.

Was this page helpful?
0 / 5 - 0 ratings