crazecoder / flutter_ijkplayer_beta Goto Github PK
View Code? Open in Web Editor NEWflutter videoplayer base on ijkplayer and exoplayer, migrate androidx
License: Other
flutter videoplayer base on ijkplayer and exoplayer, migrate androidx
License: Other
Hi,
I am trying to use this in an androidx project.
I used play(url: abc.mp4). I did add flatDir {dirs project(':flutter_ijkplayer').file('libs'), 'libs'} to my repositories is build.gradle. The app is compiled with no errors.
But when I run it, it closes saying the "app is stopped unfortunately".
This is the error in the logcat
04-23 05:26:46.484 9400-9400/? E/Zygote: MountEmulatedStorage()
04-23 05:26:46.484 9400-9400/? E/Zygote: v2
04-23 05:26:46.489 9400-9400/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-23 05:26:46.679 9215-9422/com.crazecoder.fluttergsyplayerexample E/IJKMEDIA: https://r3---sn-cvh76nez.googlevideo.com/videoplayback?id=63fea2322266d75a&itag=22&source=picasa&begin=0&requiressl=yes&pl=24&sc=yes&ttl=transient&ei=2iq-XJuVOYTM1gKZm7TIDw&susc=ph&app=fife&mime=video/mp4&cnr=14&dur=1475.163&lmt=1555929420020340&ipbits=0&keepalive=yes&ratebypass=yes&ip=134.19.181.231&expire=1555973882&sparams=app,cnr,dur,ei,expire,id,ip,ipbits,itag,lmt,mime,mip,mm,mn,ms,mv,pl,requiressl,sc,source,susc,ttl&signature=496BCECE113BD8BB210E99694CBE78F063CA784C.71BDEACC63FC2A2AAE7704309044E65719202872&key=cms1&title=(720P%20-%20mp4)%20Pokemon+Sun+%26+Moon+Episode+118.mp4&cms_redirect=yes&mip=123.201.249.80&mm=30&mn=sn-cvh76nez&ms=nxu&mt=1555972243&mv=u: Protocol not found
04-23 05:26:46.914 9215-9215/com.crazecoder.fluttergsyplayerexample E/tv.danmaku.ijk.media.player.IjkMediaPlayer: Error (-10000,0)
04-23 05:26:46.939 9135-9135/? E/FilterPackageIntentReceiver: This package is not a effect filter
04-23 05:26:47.134 9215-9215/com.crazecoder.fluttergsyplayerexample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.crazecoder.fluttergsyplayerexample, PID: 9215
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:466)
at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:94)
at androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
at android.app.Dialog.dispatchOnCreate(Dialog.java:553)
at android.app.Dialog.show(Dialog.java:289)
at androidx.appcompat.app.AlertDialog$Builder.show(AlertDialog.java:1007)
at com.crazecoder.media.IjkVideoView$5.onError(IjkVideoView.java:582)
at tv.danmaku.ijk.media.player.AbstractMediaPlayer.notifyOnError(AbstractMediaPlayer.java:106)
at tv.danmaku.ijk.media.player.IjkMediaPlayer$EventHandler.handleMessage(IjkMediaPlayer.java:1020)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6912)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
04-23 05:26:47.354 2740-9432/? E/android.os.Debug: ro.product_ship = true
04-23 05:26:47.354 2740-9432/? E/android.os.Debug: ro.debug_level = 0x4f4c
04-23 05:26:47.359 2740-2830/? E/libprocessgroup: failed to kill 1 processes for processgroup 4106
04-23 05:26:47.964 3841-3841/? E/SamsungIME: isHWKeyboardConnected() = false --> false
04-23 05:26:48.324 2740-2910/? E/SmartFaceService: onReceive: android.intent.action.CONFIGURATION_CHANGED
04-23 05:26:48.329 2740-2910/? E/SmartFaceService: mFolderCoverOpened: (true, true) -> true
04-23 05:26:48.329 2740-2740/? E/Tethering: No numeric data
04-23 05:26:48.424 2740-2902/? E/SatsServiceData: Failed to connect daemon - java.io.IOException: Permission denied
04-23 05:26:48.769 2740-2951/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=329, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
04-23 05:26:48.779 3770-3806/? E/AS.DefaultService: 05:26:48.782[163] onStartCommand(), DefaultService e = java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.List.contains(java.lang.Object)' on a null object reference
04-23 05:26:49.089 9446-9446/? E/Zygote: MountEmulatedStorage()
04-23 05:26:49.089 9446-9446/? E/Zygote: v2
Any suggestions is appreciated.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.