Copy link to clipboard
Copied
Hi. I'm trying to make a simple player test but the app crash when I call createPlayerView using Animate.
i use ANE media player from distriqt
This is the code, in 1st and only frame:
import com.distriqt.extension.mediaplayer.MediaPlayer;
import com.distriqt.extension.mediaplayer.MediaPlayerOptions;
import com.distriqt.extension.mediaplayer.MediaPlayerView;
import com.distriqt.extension.mediaplayer.events.MediaErrorEvent;
import com.distriqt.extension.mediaplayer.events.MediaPlayerEvent;
import com.distriqt.extension.mediaplayer.events.MediaProgressEvent;
import com.distriqt.extension.mediaplayer.events.MediaThumbnailEvent;
import com.distriqt.utils.FileUtils; MediaPlayer.init("XXXXXXXXXXXX");
var options:MediaPlayerOptions = new MediaPlayerOptions(); options.viewport = new Rectangle( 0, 0, 100, 100 );
options.backgroundColour = 0xFFFFFFFF;
options.controlsEnabled = true; var player:MediaPlayerView = MediaPlayer.service.createPlayerView( options );
stop();
this the logI/com.distriqt.MediaPlayer(27291): MediaPlayerController::createPlayer( [null, false, true, controls:embedded, 0, 0, 100, 100, false] )
I/com.distriqt.MediaPlayer(27291): MediaPlayer::createPlayer( [null, false, true, controls:embedded, 0, 0, 100, 100, false]
I/com.distriqt.MediaPlayer(27291): ExoPlayerFragment::onCreateView()
D/AndroidRuntime(27291): Shutting down VM
E/AndroidRuntime(27291): FATAL EXCEPTION: main
E/AndroidRuntime(27291): Process: air.com.tecnologiacreativa.tcplayer, PID: 27291
E/AndroidRuntime(27291): android.view.InflateException: Binary XML file line #7: Error inflating class com.google.android.exoplayer2.ui.SimpleExoPlayerView
E/AndroidRuntime(27291): at android.view.LayoutInflater.createView(LayoutInflater.java:633)
E/AndroidRuntime(27291): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
E/AndroidRuntime(27291): at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
E/AndroidRuntime(27291): at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
E/AndroidRuntime(27291): at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
E/AndroidRuntime(27291): at com.distriqt.extension.mediaplayer.player.exoplayer.ExoPlayerFragment.onCreateView(ExoPlayerFragment.java:160)
E/AndroidRuntime(27291): at android.app.Fragment.performCreateView(Fragment.java:2112)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:904)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1083)
E/AndroidRuntime(27291): at android.app.BackStackRecord.run(BackStackRecord.java:834)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1468)
E/AndroidRuntime(27291): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:451)
E/AndroidRuntime(27291): at android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime(27291): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(27291): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(27291): at android.app.ActivityThread.main(ActivityThread.java:5910)
E/AndroidRuntime(27291): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(27291): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(27291): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
E/AndroidRuntime(27291): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
E/AndroidRuntime(27291): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime(27291): at java.lang.reflect.Constructor.newInstance(Native Method)
E/AndroidRuntime(27291): at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
E/AndroidRuntime(27291): at android.view.LayoutInflater.createView(LayoutInflater.java:607)
E/AndroidRuntime(27291): ... 19 more
E/AndroidRuntime(27291): Caused by: java.lang.NoSuchFieldError: No static field PlayerView of type [I in class Lcom/google/android/exoplayer2/ui/R$styleable; or its superclasses (declaration of 'com.google.android.exoplayer2.ui.R$styleable' appears in /data/app/air.com.tecnologiacreativa.tcplayer-1/base.apk)
E/AndroidRuntime(27291): at com.google.android.exoplayer2.ui.PlayerView.<init>(PlayerView.java:306)
E/AndroidRuntime(27291): at com.google.android.exoplayer2.ui.PlayerView.<init>(PlayerView.java:265)
E/AndroidRuntime(27291): at com.google.android.exoplayer2.ui.SimpleExoPlayerView.<init>(SimpleExoPlayerView.java:35)
E/AndroidRuntime(27291): ... 22 more
i showed the log to the manager of distriqt and he saidAnimate uses a built in compiler, not the one in the AIR SDK, as such it is out-dated and does not support modern Android versions.
We are pestering Adobe about this issue but please feel free to voice your issue as well.
so please can you fix the AIR SDK
these are user-to-user forums. post your issue here, Feature Request/Bug Report Form
Copy link to clipboard
Copied
these are user-to-user forums. post your issue here, Feature Request/Bug Report Form
Copy link to clipboard
Copied
Hi there,
Thanks for pointing this out.
I am checking with our development team regarding this and will get back to you with gathered information.
Regards!
Ankush
Copy link to clipboard
Copied
i post it but he tell me limit of Letters @kglad i cant post my question to them
Find more inspiration, events, and resources on the new Adobe Community
Explore Now