Hi...i im trying to develope library for B4A that i will use...
I have found ExoPlayer that suits my needs...so i installed Eclipse...see tutorial how to create B4A libraries, compile from sources ExoPlayer...got library.jar and now i need help how to write public functions to initialize player, add to view, add url file, and play file.
i im this way:
Here is wrapper:
https://github.com/googleads/google...ork/exoplayerextensions/ExoplayerWrapper.java
So the question is how can i add exoplayer so that i can call from B4A:
If someone can give me how can i add ExoPlayer to get thease functions it will be great...
I have found ExoPlayer that suits my needs...so i installed Eclipse...see tutorial how to create B4A libraries, compile from sources ExoPlayer...got library.jar and now i need help how to write public functions to initialize player, add to view, add url file, and play file.
i im this way:
B4X:
package com.google.exoplayerb4a;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.objects.ViewWrapper;
import com.google.android.exoplayer.*;
@ShortName("ExoPlayerB4A")
@BA.Version(1.5F)
public class ExoPlayerB4A
extends ViewWrapper<ExoPlayer>
{
}
Here is wrapper:
https://github.com/googleads/google...ork/exoplayerextensions/ExoplayerWrapper.java
So the question is how can i add exoplayer so that i can call from B4A:
B4X:
Dim ExoPlayer1 As ExoPlayerB4A
ExoPlayer1.Initialize("ExoPlayer1")
Activity.AddView(ExoPlayer1, 0, 0, 100%x, 100%y)
ExoPlayer1.SetURL("Http:\\myurl.com\file.mkv")
ExoPlayer1.Prepare
ExoPlayer1.Play
If someone can give me how can i add ExoPlayer to get thease functions it will be great...