I want to make layout like the attached image but the problem is when I create media controller it doesn't appear below the video player instead it shows on the centre bottom of activity. I've tried to make mediacontroller in xml file but It doesn't work either and also tried this https://stackoverflow.com/a/10315093/1065357 but it also doesn't work.
I am using android 4 tablet version.
Thankyou
Play video with media controller on specific area of an activity
1k Views Asked by ZeeShaN AbbAs At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in MEDIA
- Re media query in code
- Media content tag missing from rss feed generated by Rome 1.0
- Different sound on each button
- dynamic video source change issue in azure media player
- How to specifically display certain columns in nth-child?
- Saving a sound bite as a ringtone
- Media files end up in in a pycharm subdirectory when uploading
- phonegap media plugin cant handle multiple sounds?
- Changing main image source on product page in magento
- Retrieve user friends media in instgram API
- Video stream keeps browser busy/stuck
- CSS selector not working with children
- Closed Captions/Subtitles not working for AVPlayer but are in Safari: HLS
- Div Text's Color Changes when Printed
- How to play songs from the Cursor in android?
Related Questions in TABLET
- How to Remove class or activate class for specific view port only
- How to detect whether touch slide is taking me out of browser window on tablets?
- Change background color of tabBar in v4 viewPager
- Questions on how to Get Started with Developing for Windows 8.1 Tablet
- The application showing slowly and sometimes is stuck
- Drivers for LG G pad F 8.0 to develop on Android Studio
- Can Windows 8.1 (Not RT) Tablets Run ADO.net Applications using SQL
- How can I implement this UI?
- Android, different layout for 10.1 and 9.7 inch displays
- Picture changes size rapidly on tablet
- Unique device web fingerprinting amongst 10-20 company tablets
- Multiple instances of app in recent app list of tablet(android)
- Tablets missing in supported device of the Google Play developer console
- Bootstrap 3 - media queries Tablet Breakpoints
- Any way of accessing an Android device through ADB without debug mode enabled?
Related Questions in ANDROID-4.0-ICE-CREAM-SANDWICH
- How to highlight a pressed cardView on IceCreamSandwich (Android 4.0.4)
- JS ReferenceError on Android WebView for api level 15
- How to use Gallery with ice cream sandwich
- How to remove the border for Share button in Action Bar?
- Android 4.1.1 not playing mp4 Video
- Data transfer performance between ICS and Jelly Bean
- AVD for API 14 (Android 4.0) simply doesn't work
- Background not blur activity in ICS api level 14 when open dialog in android
- Android App with SQLite runs in ICS but not Jelly Bean - IllegalStateException
- How to use a function only if the version is 11+
- Different behavior between ICS and Jelly Bean when using Window's FLAG_FULLSCREEN
- OpenGL ES 1.0 GL_TRIANGLES working on Android 2.3 but not on 3.x/4.x
- Is it possible to use Android 4 features on older versions?
- Handling the missing MENU button in new versions of Android (3.x and up)
- ellipse ice cream sandwich adds [
Related Questions in MEDIACONTROLLER
- How to play video in video view from url based on buffer %age in android?
- Exoplayer hide PlaybackControlView onClick (not onTouch)
- FragmentActivity.getSupportMediaController() is deprecated
- Music Play Next and Play Previous are not working in Android studio
- Add backbutton to MediaController
- Using MediaController on Android 5
- MediaController not working
- playing videoview in tab controls not working and cause force close
- How to set Media Controller over the video?
- Audio file not playing with mediaController?
- Android VideoView GStreamer Streaming(MediaController doesn't work )
- Android Upnp MediaController
- Android: How to use mediaController in service class?
- Android - Media controller doesn't show up
- How to update progressbar of media controller android?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can make your custom media control panel, use a bottom panel, add buttons of play,pause,stop etc. add that bottom panel layout where you you want by using
layout gravity. On the click on your custom play,pause, stop, forward etc buttons you can callmediaPlayer.play(),mediaPlayer.pause()etc.for this purpose, you will be needing to implement
SurfaceHolder.callbackinterface as follow:}
implementation of this interface will give you access to the media controlling functions(play,pause,seek etc).
Surface holder can be get as
SurfaceHolder holder= surfaceView.getHolder();and thenmediaPlayer.setDisplay(holder)you would be declaring your surfaceView tag in your videoViewActivity's layout. surface holder is the component that would be display the video stream of your video.
i hope this will help.