B4A Library ExoPlayer - MediaPlayer / VideoView Alternative

Status
Not open for further replies.

victormedranop

Well-Known Member
Licensed User
Thanks DonManfred, but when a try to download the file, download a filename exoplayer.zip.
I don't know what to do with this, renamed?

thanks.

Victor
 

victormedranop

Well-Known Member
Licensed User
Downloaded with chrome, file ok no name modification.
but got error

B4X:
java.lang.NoSuchMethodError: anywheresoftware.b4a.objects.CustomViewWrapper.replaceBaseWithView2
 

victormedranop

Well-Known Member
Licensed User
Simple code "Same Error"
B4X:
Sub Process_Globals
 Private player1 As SimpleExoPlayer
End Sub
Sub Globals
 Private SimpleExoPlayerView1 As SimpleExoPlayerView
End Sub
Sub Activity_Create(FirstTime As Boolean)
 
 If FirstTime = True Then 
 
      player1.Initialize("player1")
      player1.Prepare(player1.CreateHLSSource("http://209.16.115.42:25055"))
 
 End If
 
Activity.LoadLayout("Main")
 
 SimpleExoPlayerView1.Player = player1 
 player1.Play

End Sub
 

victormedranop

Well-Known Member
Licensed User
without any code just adding in the desingner the SimpleExoPlayerView1, crash.
don't know what is happening.

waiting for help. Please
 

victormedranop

Well-Known Member
Licensed User
Full Output
B4X:
Installing file.
PackageAdded: package:net.nowyouseeme.dtv
** Activity (main) Create, isFirst = true **
java.lang.NoSuchMethodError: No static method replaceBaseWithView2(Lanywheresoftware/b4a/objects/PanelWrapper;Landroid/view/View;)V in class Lanywheresoftware/b4a/objects/CustomViewWrapper; or its super classes (declaration of 'anywheresoftware.b4a.objects.CustomViewWrapper' appears in /data/app/net.nowyouseeme.dtv-2/base.apk)
 at anywheresoftware.b4a.objects.SimpleExoPlayerViewWrapper.DesignerCreateView(SimpleExoPlayerViewWrapper.java:41)
 at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:70)
 at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
 at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
 at java.lang.reflect.Method.invoke(Native Method)
 at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:703)
 at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
 at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
 at java.lang.reflect.Method.invoke(Native Method)
 at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
 at net.nowyouseeme.dtv.main.afterFirstLayout(main.java:102)
 at net.nowyouseeme.dtv.main.access$000(main.java:17)
 at net.nowyouseeme.dtv.main$WaitForLayout.run(main.java:80)
 at android.os.Handler.handleCallback(Handler.java:739)
 at android.os.Handler.dispatchMessage(Handler.java:95)
 at android.os.Looper.loop(Looper.java:148)
 at android.app.ActivityThread.main(ActivityThread.java:5417)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
** Activity (main) Resume **
 

sule

Member
Licensed User
What ever I try i get same error
Generating R file. Error
invalid resource directory name: C:\Users\nn\Desktop\B4A Samples\Objects\bin\extra\res1\res/drawable-xxhdpi-v4
invalid resource directory name: C:\Users\nn\Desktop\B4A Samples\Objects\bin\extra\res1\res/values-b+sr+Latn

i have latest b4a and sdk build tools
 

Syd Wright

Well-Known Member
Licensed User
I have abandoned this player for the same reasons. You are probably better off by using Moster67's Vitamio library, version 5.02 (or higher). His (donationware) library also does play many streams like M3U8, RTSP and RTMP.
 

Erel

Administrator
Staff member
Licensed User
What ever I try i get same error
Generating R file. Error
invalid resource directory name: C:\Users\nn\Desktop\B4A Samples\Objects\bin\extra\res1\res/drawable-xxhdpi-v4
invalid resource directory name: C:\Users\nn\Desktop\B4A Samples\Objects\bin\extra\res1\res/values-b+sr+Latn

i have latest b4a and sdk build tools
Can you post a screenshot of your Android SDK Manager?
 
Status
Not open for further replies.
Top