Android-youtube-player: Some videos receive "invalid parameters".

Created on 30 Aug 2018  路  10Comments  路  Source: PierfrancescoSoffritti/android-youtube-player

Hi guys, sorry for my english...

Congratulations for the lib, is awsome. I use the lib in one project and works fine, but in some videos the player show "invalid parameters" and not display de video.

Can you help me?

question

Most helpful comment

Use the getString method. You can't use valueOf for resources.

All 10 comments

Hi, have you checked the videoId is valid?

Yes, the id is -> TmZG2y7SllU

Does it work in your browser? with so little information I can't say much unfortunately.

Yes, work. In Android Studio show this message -> E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
But i don't know if this message is about the problem.

I doubt they are related.

Many others videos works fine in the app, this video and others 7 show the message.

I'll try playing it in the app later in the evening.

works fine for me.

I encountered this error too. The Error Comes when I try to get the String Like this
videoID = String.valueOf(R.string.video_id);
but will work fine if I put the ID like videoID = "SOME ID"

Use the getString method. You can't use valueOf for resources.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Apsaliya picture Apsaliya  路  3Comments

mankidal19 picture mankidal19  路  8Comments

cnbcyln picture cnbcyln  路  8Comments

Mischmo picture Mischmo  路  3Comments

DorenBoust picture DorenBoust  路  6Comments