B4A Library ExoPlayer - MediaPlayer / VideoView Alternative

Status
Not open for further replies.

victormedranop

Well-Known Member
Licensed User
Longtime 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
Longtime 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
Longtime 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
Longtime 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
Longtime 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
Longtime 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
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Can you post a screenshot of your Android SDK Manager?
 

sule

Member
Licensed User
Longtime User
1. Are you sure that the IDE is configured to use this SDK (under Tools - Configure Paths)?
2. Try to delete build tools 23.0.1 and 23.0.3.
yes it is configured corectly and i have one more error with http, okhttp ,httputils2 and okhttputils
 

sule

Member
Licensed User
Longtime User
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…