Open nhCoder opened 4 years ago
@naveedhassan913
Thanks for the fix. After I edit the code, it plays well. p.s Can you know what kind of problem it wasn't?
@naveedhassan913 Thank you so much ~ !
@yyms3275
I saw his commit for this update,
Previously, in the asset object of this library, we had to use the value of the js column. YouTube has changed the structure so that there are no assets.
But in his commit this time, I could see the regular expression that changed the js value to another name, It seems that parsing it solved the problem.
// ps) 1) Analyze the library yourself and see his commit history. 2) Debugging is easy if you use a regular expression conversion site and a web code alignment site. 3) Due to the large amount of html being responded, I tried debugging this by saving it in the Android internal storage file. 4) There may be a way to copy the response source of the url by pressing f12 in the Chrome browser.
@naveedhassan913 Thank you for the fix , but when i checked more videos i was getting error in some videos i am giving you video url could you please help me
Error: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 98894 path $.args.player_response
Video Urls: https://m.youtube.com/watch?v=hoNb6HuNmU0 https://m.youtube.com/watch?v=u2A6znC7LIg
@naveedhassan913 Thank you for the fix , but when i checked more videos i was getting error in some videos i am giving you video url could you please help me
Error: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 98894 path $.args.player_response
Video Urls: https://m.youtube.com/watch?v=hoNb6HuNmU0 https://m.youtube.com/watch?v=u2A6znC7LIg
I tested your urls and they are just working fine properly. please double check the code you copied. i will suggest u to redownload the latest source
Hey coders the lib is updated and working properly,look into your issues and close them... if u face any problem just send the video url and description .... Happy Coding ♥