Hi all.
This is simple library to grab in another format / quality youtube
I used this free service: YTGrabber
Is very simple:
YoutubeGrabber
Author: Devil-App
Version: 1
Is important that you have this library:
httputils2
json
okhttp
javaobject
stringutils
Installation instructions:
You have 2 way:
1 LIBRARY
- Unzip the attached file ( YoutubeGrabber-Library.zip) and copy YoutubeGrabber.jar and YoutubeGrabber.xml to the libraries folder
- YoutubeGrabber-B4A-Example.zip is simple B4A
2 CLASS
- Available also Class. Unzip the attachment YoutubeGrabber-Class.zip
This is simple library to grab in another format / quality youtube
I used this free service: YTGrabber
Is very simple:
YoutubeGrabber
Author: Devil-App
Version: 1
- YoutubeGrabber
Methods:- IsInitialized As Boolean
Tests whether the object has been initialized. - _initialize (idyoutube As String, Format As String, Quality As String, Module As Object, EventName As String) As String
- IsInitialized As Boolean
- typeLevel
Fields:- IsInitialized As Boolean
Tests whether the object has been initialized. - error As String
- thumbnailUrl As String
- title As String
- url As String
- Initialize
Initializes the fields to their default value.
- IsInitialized As Boolean
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
youtgrab.Initialize("YfcYPyxXVCo", "mp4","360p", Me, "url")
End Sub
Sub url(valore As typeLevel)
Log("Title: " & valore.title)
Log("Url: " & valore.url)
Log("ThumbnailUrl: " & valore.thumbnailUrl)
Log("Error: " & valore.error )
End Sub
Is important that you have this library:
httputils2
json
okhttp
javaobject
stringutils
Installation instructions:
You have 2 way:
1 LIBRARY
- Unzip the attached file ( YoutubeGrabber-Library.zip) and copy YoutubeGrabber.jar and YoutubeGrabber.xml to the libraries folder
- YoutubeGrabber-B4A-Example.zip is simple B4A
2 CLASS
- Available also Class. Unzip the attachment YoutubeGrabber-Class.zip