I implementing media player which is using media store content provider which is providing the audio files stored now i want to use the corresponding picture of that song displayed when playing audio file i came across usage of getEmbeddedPicture() .but i have been confused how to use that function.
You can try to fetch the Album Art from the media database in android and display the same.
Related
I have an App, that shows pictures and videos from the Internet.
Now I'm implementing a "save" function, that saves the picture/video to external or internal storage, without downloading them a second time.
For the pictures I just grab the drawable with imageView.getDrawable().
How would I achieve the same with the video thats currently buffered in the Exoplayer2.x / PlayerView? I'm not finding a getMediaSource() function.
You will be able to download certain type of stream. There are subclasses for DASH, HLS, SmoothStreaming and also progressive streams. One Downloader downloads only one stream
https://medium.com/google-exoplayer/downloading-streams-6d259eec7f95
I'm creating a sender/receiver Chromecast App on Android device to display movies.
I'm using a .mpd file containing already the video, the audio tracks, and subtitles.
So my question is how to add a selection button for those tracks?
I only found how to add tracks with different files (.vtt, .mp3, ..) but not with them inside the video file.
Doc I'm using: URL
Thanks for your help!
You should look at the android sender documentation. The 'Remove Tracks' sections talks about how to enable/disable tracks using setActiveMediaTracks.
If the media contains the tracks once it has finished loading you should be able to enable/disable the tracks.
I am making a video player app. Lets make myself clear in this app no video or audio files will be saved in the raw directory during making the app. I want an app that will pick a video file from device storage when clicked a button. So please help.
You have a few options for allowing the user to pick a video, including:
Use ACTION_OPEN_DOCUMENT on Android 4.4+. You will get a Uri back that you can pass to VideoView or MediaPlayer.
Use ACTION_GET_CONTENT. Again, you will get a Uri back that you can pass to VideoView or MediaPlayer.
Use a third-party file picker library. Depending on the library, I would expect you to get a File or a Uri back for use with your video player.
The first two techniques are covered in the documentation, along with good books on Android app development.
I want to prefetch/predownload some data of video which is stored on my server.
Right now I streaming the video from the server, It requires some time to buffer then it will start playing video. So I want to prefetch some data of video so that when user clicks on it video get play without taking too much time.
How to achieve this can I store it in database some data or download file while set list of videos in listview.
Please help with this problem.I didn't understand what to do?
I have used Exoplayer which as this feature and many more. Demo repositorie also available.
Is there any way to get music Image like what built in android media player do .
for example ,open a music , if music has image, media player shows it is image as background .
where can I find that image ?
This is found in the MetaData of the file itself. You should be able to find it pretty easily if you know how to navigate the database content.
http://developer.android.com/reference/android/provider/MediaStore.html
In mp3 Id3 tags. Example here.