B4A Library YouTube library

kozbot

Member
Licensed User
Longtime User
Sure!!!

Thanks Erel... I really appreciate this...
 

Attachments

  • Kozbot.zip
    424.4 KB · Views: 328

kozbot

Member
Licensed User
Longtime User
No problem... This has the same issue... But like I said, I really don't know what I'm doing wrong...

Thanks!
 

Attachments

  • Kozbot.zip
    48.5 KB · Views: 387

kozbot

Member
Licensed User
Longtime User
OMG! Are you serious??? I am SOOOOO sorry for wasting your time!!!

But, thank you for the compliment, and for your help! You're a legend!!!
 

kozbot

Member
Licensed User
Longtime User
hmmm... I changed the variable... and still nothing... It doesn't load anything at all. Doesn't even crash now lol... I just get a blank screen.
 

kozbot

Member
Licensed User
Longtime User
Yeah, I did all that... I got the API key thing... Maybe I should try the other way... Hmmm... Will try again. Thanks again for your help.
 

kozbot

Member
Licensed User
Longtime User
ok... I've set up 3 different API keys... 1 with the SHA1 and 2 without... the SHA1 was an Android key, and then I did an Android 1 and a browser one (just to try) and I'm still just getting a blank screen...

Erel, did you say that it worked for you? the video came up when you compiled? Cos I'm now very lost as to why it's not working for me...
 

kozbot

Member
Licensed User
Longtime User
As I am such a gigantic moron, I didn't realise that you needed to have the title attribute as True for this, but I've made it so that, the title is not necessary and plays on a button click as a lightbox...

Works perfectly!!! Thanks for the help Erel!!!!
 

andyr00d

Member
Licensed User
Longtime User
any idea on how to share a video (link) FROM the native youtube app, to my app so it will instead play within my app instead? maybe using an intent?
 

mhartwig

Member
Licensed User
Longtime User
I dont think this lib works any longer. It works on my old 2.3 phone, it does not work on my lollipop phone or bluestacks running lollipop. No errors just nothing ever happens. They both have latest youtube app.
 

Henry Baars

Member
Licensed User
Longtime User
When I try the attached code on my my tablet (acer with android 4.1) "the program has unfortunately stopped"...
YouTube.Initialize("YouTube") seems to work. But when I enable YouTube.CheckPlayerSupported
The app crashes.

-------------------------

(debug dump)
java.lang.NoClassDefFoundError: com.google.android.youtube.player.YouTubeApiServiceUtil
at anywheresoftware.b4a.objects.YouTubeStandalonePlayerWrapper.CheckPlayerSupported(YouTubeStandalonePlayerWrapper.java:36)
at b4a.Scrub.main._activity_create(main.java:302)

---------------------

Acer tablet (512MB) Android 4.1
Youtube app version 11.23.56

Any tips, tricks on how to overcome this problem?
What could cause the crash?

Regards,
Henry
 

Attachments

  • b4avraag.txt
    820 bytes · Views: 278
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…