This is an example project that goes with http://www.brightec.co.uk/blog/custom-android-media-controller
examplemediacontroller's Introduction
examplemediacontroller's People
Forkers
umesh-hyd jeffreyzh jardar huongforum tuankma ibuddy kanghyungouk malmstein ahdidou-mohamed swapnull-in moynard congbado ppbox tomurka jjlee050 spark85 lee-hyun-woo prashant31191 ljhuncle hai8108 hammami-ahmed22 zharif20 zokran zero1zero ajaypatidar20 limitcdr majdicalboussi dprogs quadflask lethea saravanan-vdg mohammad323 leelei samirshrestha sam-yr n3vr0s h4ck4life myscreen asifjavaid racroi3010 gnwell renfrid theanilpaudel orangeai odrowonz jingweihu wiemrukmihadi gayal karthikpugal86 softlover jobykorahgeorge vuthaihoa123 leonardojpr limkokholefork fhmunna ibrahimhadji mhassanist honggiangbk mmz114 xietiantian appsolzone mohamedmohamedtaha marimuthup ferydergantoro karam334 duc5225 atakancosar hoangminh234examplemediacontroller's Issues
Some bug with video displaying
FullScreen not working
when i click on full secrren button nothing happen
Some bugs for multiple videos
if I use this framework to display video from the internet again and again, it will refuse to work after 3-4 times
Program crashes when returning from another activity
When i return from another activity to my video, it crashed with IllegalStateException
on player.prepareAsync();
stack trace:
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.media.MediaPlayer.prepareAsync(Native Method)
10-12 23:23:05.072: E/AndroidRuntime(24717): at com.videomap.app.dialogs.ViewDataCustomDialog.surfaceCreated(ViewDataCustomDialog.java:497)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.SurfaceView.updateWindow(SurfaceView.java:572)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:232)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.View.dispatchWindowVisibilityChanged(View.java:8004)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1233)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.Choreographer.doFrame(Choreographer.java:544)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.os.Handler.handleCallback(Handler.java:733)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.os.Handler.dispatchMessage(Handler.java:95)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.os.Looper.loop(Looper.java:136)
10-12 23:23:05.072: E/AndroidRuntime(24717): at android.app.ActivityThread.main(ActivityThread.java:5001)
10-12 23:23:05.072: E/AndroidRuntime(24717): at java.lang.reflect.Method.invokeNative(Native Method)
10-12 23:23:05.072: E/AndroidRuntime(24717): at java.lang.reflect.Method.invoke(Method.java:515)
10-12 23:23:05.072: E/AndroidRuntime(24717): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
10-12 23:23:05.072: E/AndroidRuntime(24717): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
10-12 23:23:05.072: E/AndroidRuntime(24717): at dalvik.system.NativeStart.main(Native Method)
What I should do to fix this?
Problem using this source code
App Crash - While running video minimise app then open it.
App Crash - While running video minimise app then open it.
Attempt to invoke virtual method 'void android.media.MediaPlayer.setDisplay(android.view.SurfaceHolder)' on a null object reference
Inside scrollview the media controls not even displayed..
While put customview inside the scrollview like given below
<RelativeLayout
android:id="@+id/video_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/black"
android:gravity="center_horizontal|center_vertical"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/videoSurfaceContainer"
android:layout_width="match_parent"
android:layout_height="160dp" >
<SurfaceView
android:id="@+id/videoSurface"
android:layout_width="wrap_content"
android:layout_height="160dp" />
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_below="@+id/videoSurfaceContainer"
android:background="#FFFFFF" >
</FrameLayout>
</RelativeLayout>
No media controls are displayed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.