asynctaskcoffee / videolayout Goto Github PK
View Code? Open in Web Editor NEWTo play video on layout background (textureview videoview for layout designs)
License: Apache License 2.0
To play video on layout background (textureview videoview for layout designs)
License: Apache License 2.0
Video is not getting played on Android 11. I have tried in multiple phone with Android 11 but video is not getting played.
Its working on android 10,12 and on other version of the operating system.
What could be the solution for it, any alternate solution ?
I added your library to gradle
implementation 'com.github.AsynctaskCoffee:VideoLayout:1.0'
and in build gradle
buildscript {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
and got this error
ERROR: Failed to resolve: com.github.AsynctaskCoffee:VideoLayout:1.0
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.adhub.media.status.saver/com.adhub.media.status.saver.ui.activity.VideoViewerActivity}: android.view.InflateException: Binary XML file line #10 in com.adhub.media.status.saver:layout/activity_video_viewer: Binary XML file line #10 in com.adhub.media.status.saver:layout/activity_video_viewer: Error inflating class egolabsapps.basicodemine.videolayout.VideoLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3488)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3635)
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:2175)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7857)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)
Caused by: android.view.InflateException: Binary XML file line #10 in com.adhub.media.status.saver:layout/activity_video_viewer: Binary XML file line #10 in com.adhub.media.status.saver:layout/activity_video_viewer: Error inflating class egolabsapps.basicodemine.videolayout.VideoLayout
Caused by: android.view.InflateException: Binary XML file line #10 in com.adhub.media.status.saver:layout/activity_video_viewer: Error inflating class egolabsapps.basicodemine.videolayout.VideoLayout
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:854)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1006)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:961)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1123)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1084)
at android.view.LayoutInflater.inflate(LayoutInflater.java:682)
at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
at android.view.LayoutInflater.inflate(LayoutInflater.java:481)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:303)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:284)
at com.adhub.media.status.saver.ui.activity.VideoViewerActivity.onCreate(VideoViewerActivity.kt:16)
at android.app.Activity.performCreate(Activity.java:7955)
at android.app.Activity.performCreate(Activity.java:7944)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3463)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3635)
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:2175)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7857)
at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
at egolabsapps.basicodemine.videolayout.VideoLayout.(VideoLayout.java:87)
... 30 more
hi, i tried successfully to use your Layout with the file in assets... but when i try with URL, i obtain only a blank screen... in which format i have to provide the url?
thank you
Does it support the mode of adapting to the screen width and centering the video up and down?
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.