B4A Library Library YouTube to Mp3

Hi all.

This is simple library convert YouTube to Mp3 and you have also title, description, image, channelid, channelname
Utilize service YouTubeinMp3
Is very simple:

YouTubeMp3
Author:
Devil-App
Version: 1.5
Methods:
  • IsInitialized As Boolean
    Tests whether the object has been initialized.
  • initialize (youtubelink As String, Download As Boolean, Folder As String, Module As Object, EventName As String) As String

    B4X:
    Sub Activity_Create(FirstTime As Boolean)
    
        Dim mp3 As youtubetomp3
        mp3.Initialize("i62Zjga8JOM", "YouTube", Me, "check_link")
    
    End Sub
    
    
    Sub check_information(valore As typeLevel)
    LogColor(valore.image, Colors.Red)
    LogColor(valore.title, Colors.Blue)
    LogColor(valore.description, Colors.Red)
    LogColor(valore.channelid, Colors.Red)
    LogColor(valore.channelname, Colors.Red)
    End Sub

    B4X:
    'Do you want YouTube To Mp3:
    'You have 2 parameters:
    'Initialize(idyoutube As String, Folder As String, Me, "check_information")
    'youtubelink --> "https://www.youtube.com/watch?v=i62Zjga8JOM" Is link youtube that you want --> Mp3
    'Folder --> YouTube, name Folder where you want To save the File.
    'Example:
    'Dim mp3 As youtubetomp3
    'mp3.Initialize("i62Zjga8JOM","YouTube", Me, "check_information")
    '.....
    'Sub check_information(valore As typeLevel)
    'LogColor(valore.title, Colors.Blue)
    'LogColor(valore.image, Colors.Red)
    'LogColor(valore.description, Colors.Red)
    'LogColor(valore.channelid, Colors.Red)
    'LogColor(valore.channelname, Colors.Red)
    'End Sub
    '******
    [*]

    You have this Result:

    2015-07-28 16.26.40.png


    Screenshot 2015-07-28 18.23.45.png

    LIBRARY
    - Unzip the attached file ( YouTubeMp3-Lib1.50.zip ) and copy YouTubeMp3.jar and YouTubeMp3.xml to the libraries folder
    - YouTubeToMp3-Example.zip is simple B4A
In attachment also Class: YoutubeToMp3-Class-1.50.zip
 

Attachments

  • YouTubeMp3-Lib1.50.zip
    7.7 KB · Views: 539
  • YouTubeToMp3-Example.zip
    9.1 KB · Views: 555
  • YoutubeToMp3-Class-1.50.zip
    11.5 KB · Views: 550
Last edited:

spyd3iz

New Member
Licensed User
Longtime User
Hello,
Great lib but I have the following error:
Cannot find: C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\downloadmanager.jar

Any ideal where to fint that lib ?

best regards,
spy
 
Top