The application crashes every time i launch it on Android Q .
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
Logcat
--------- beginning of crash
2019-09-03 18:38:29.672 25158-25158/com.namespace.av1test E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.namespace.av1test, PID: 25158
java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar)
at com.google.android.exoplayer2.util.SlidingPercentile.
at com.google.android.exoplayer2.upstream.DefaultBandwidthMeter.
at com.google.android.exoplayer2.upstream.DefaultBandwidthMeter.
at com.namespace.av1test.videoStream.
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:43)
at android.app.Instrumentation.newActivity(Instrumentation.java:1243)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3182)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
the url contains the Dash stream.
suggestion will be appreciated
Have you enabled Java 8 in your build.gradle file? This has been a requirement since 2.9.0, as per the release notes.
enabling java 8 does the job , but only the sound is been played(no video).
I'm trying to test Av1 codec stream on android Q
as mentioned here
https://medium.com/google-exoplayer/exoplayer-2-10-whats-new-15d344eaa8b9
Please provide complete information if you want us to investigate the AV1 issue.
File:
demo.zip
What I'm trying to do?
This file contains the AV1 codec dash stream which I'm trying to play, in android Q emulator, using Exo Player library version 2.10.0.
the application is only playing the audio(no video) from the stream file url.
does the file actually contains both audio as well as video ?
Well,yes . the file plays perfectly on VLC as well as using ffplay
Screenshot

I think the emulator doesn't include an AV1 decoder yet. Please try testing on a physical device.
Most helpful comment
Have you enabled Java 8 in your
build.gradlefile? This has been a requirement since 2.9.0, as per the release notes.