B4A Library [Class B4X ] YouTube V3

MarcoRome

Expert
Licensed User
Longtime User
i don't know what you can use this library, but the same has been developed using the official API. So the problem is not the library but the use that you will do the same
 

rafaelbr20

Member
Licensed User
Longtime User
Hi ! I´m using the Library and i have a question.

I saw in log that Youtube Api returns a json with 3 image sizes, but your library shows only the High size. I need to use the image medium size, but how can i get this ?

See attached image !

The problem is the High size has a black line on top and at bottom side, see ..
 

Attachments

  • Captura de tela 2016-07-18 09.21.45.png
    52.8 KB · Views: 194
Last edited:

MarcoRome

Expert
Licensed User
Longtime User

If you need Medium Size you write:
B4X:
RChannel.urlpicture(p1).Replace("hqdefault.jpg","mqdefault.jpg")

If you need Default Size you write:
B4X:
RChannel.urlpicture(p1).Replace("hqdefault.jpg","default.jpg")
 

rafaelbr20

Member
Licensed User
Longtime User


Perfect !! Thanks so Much ! Have a great Week !
 

MarcoRome

Expert
Licensed User
Longtime User
Thank you for your answer. One more question, if I may: Does your library play "Live" Youtube streams, like: ...www.youtube.com/watch?v=0arz-vCGQ0Y
Erel's library does this.
This is necessary a Player or more simple you can call this:
B4X:
Private i As Intent
    i.Initialize(i.ACTION_VIEW, "https://www.youtube.com/watch?v=0arz-vCGQ0Y" )
    i.putExtra("force_fullscreen",True)
    i.SetComponent("com.google.android.youtube/.UrlActivity")
    StartActivity(i)
 

MarcoRome

Expert
Licensed User
Longtime User
The whole idea of buying and using your library is not to have to use intents to start the Youtube app.
Erel's library can play "Live" Youtube streams, so isn't it possible that you also add this ability to your library?

If you want YOU CAN create a wrapper of any library you want, with all functions you want. Or if you do not have the capacity at this site we have excellent writers of libraries (@DonManfred , @Johan Schoeman , etc) that you can pay to write the libraries as you wish.
 

MarcoRome

Expert
Licensed User
Longtime User

Hi Erel, sorry what mean you comment ?
 

victormedranop

Well-Known Member
Licensed User
Longtime User
Hi, is the a hay to order descendent by date ?
last added first. i'm using yt.ReadingChannel(50,channel,"","date",Me,"scroll_reading_channel")
but got an error.
"message": "Invalid string value: 'date'. Allowed values: [any, long, medium, short]",

thanks
 

MarcoRome

Expert
Licensed User
Longtime User
Hi Vic, is wrong parameter




you write:
B4X:
yt.ReadingChannel(50,channel,"","date",Me,"scroll_reading_channel")

The correct code is:

B4X:
yt.ReadingChannel(50,channel,"date","any",Me,"scroll_reading_channel")
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…