drawing Media Player UI for Android - android

I am realizing my own media player am using ffmpeg for decoding and libjnigraphics(Bitmap,SurfaceView,...) for rendering.
I got it working now i want to get an attractive UI i want to display play/pause/stop/next buttons in the bottom of my screen with circular buttons etc like in the actual video players available in the market and in the following picture
How a similar UI is realized in android ?
I searched a lot over the net but i didn't find anything interesting
I would be thankfull if someone gives me tips about making similar UI

If I understand what you're trying to do you should take a look at this answer here:
Android: How to create video player?
by Commonsware and also to his sample application Vidtry.
Hope this helps. :)

Related

control the quality of video manually in exoplayer

is there anyone who can help me to find a neat coding style in a simple way to set a control in my android app that user can change the quality of video manually. im using exoplayer
im looking for the answer for a while and the demo app is so complicated

Is there a solution to implement an "low-speed" scrubbing on Exoplayer2?

I'm working on an application who needs some precision when scrubbing on the videoplayer, in order to get an image from the video.
The problem is, the timebar is too imprecise.
I'm looking to implement a solution like the native iOS player, when you scrub and you swipe down your finger to slow down.
-> https://lifehacker.com/how-to-control-the-audio-and-video-scrubbing-speed-on-y-5811660
If you have a solution, it would be really cool.
Thanks in advance !
Exoplayer cannot do this for streaming. A similar discussion has been seen regarding AVPlayer - to allow the described behaviour for streaming, and some have suggested making snapshots which would also not be close to your want of getting the same behaviour as on the example you have provided.
If you are looking for this kind of experience I would recommend heading over to movi.ai to get your hands on our cross platform solution with this ready out of the box.

Best way to make a video merging mobile app

I am looking to make a mobile app that will allow the users to take X number of videos and it will combine them together to make a single video. Users will also be able to choose what to put in between each video recording and background music.
I have more experience with Xamarin/C# than with native Java/Obj-C but the only method I have found online that might accomplish this would be with using native with FFMPEG. Is this the case? Is FFMPEG even going to work for this? Is there a way to use Xamarin to accomplish what I need to do?
Thanks
Have a look at the AVMutableComposition and its related classes.
There's an example here, about halfway down the page: http://www.raywenderlich.com/13418/how-to-play-record-edit-videos-in-ios
It looks like it's covered by Xamarin: http://iosapi.xamarin.com/index.aspx?link=T%3AMonoTouch.AVFoundation.AVMutableComposition

Display two videos together then output as a merged video on a single screen

This question may sound a little bit complex or ambiguous, but I'll try to make it as clear as I can. I have done lots of Googling and spent lots of time but didn't find anything relevant for windows.
I want to play two videos on a single screen. One as full screen in background and one on top of it in a small window or small width/height in the right corner. Then I want an output which consists of both videos playing together on a single screen.
So basically one video overlays another and then I want that streamed as output so the user can play that stream later.
I am not asking you to write the whole code, just tell me what to do or how to do it or which tool or third party SDK I have to use to make it happen.
update:
Tried a lots of solution.
1.Xuggler- doesn't support Android.
2.JavaCV or JJMPEG- not able to find any tutorial which suggested how to do it?
Now looking for FFMPEG- searched for a long time but not able to find any tutorial which suggest the coding way to do it. I found command line way to how to fix it.
So can anyone suggest or point the tutorial of FFMPEG or tell any other way to
I would start with JavaCV. It's quite good and flexible. It should allow you to grab frames, composite them and write them back to a file. Use FFmpegFrameGrabber and Recorder classes. The composition can be done manually.
The rest of the answer depends on few things:
do you want to read from a file/mem/url?
do you want to save to a file/mem/url?
do you need realtime processing?
do you need something more than simple picture-in-picture?
You could use OpenGL to do the trick. Please note however that you will need to have to render steps, one rendering the first video in a FBO and then the second rendering the second video, using the FBO as TEXTURE0 and the second as EXTERNAL_TEXTURE.
Blending, and all the stuff you want would be done by OpengL.
You can check the source codes here: Using SurfaceTexture in Android and some important information here: Android OpenGL combination of SurfaceTexture (external image) and ordinary texture
The only thing I'm not sure is what happens when two instances of mediaplayer are running in Parallel. I guess it should not be a problem.
ffmpeg is a very active project, lot's of changes and releases all the time.
You should look at the Xuggler project, this provides a Java API for what you want to do, and they have tight integration with ffmpeg.
http://www.xuggle.com/xuggler/
Should you choose to go down the Runtime.exec() path, this Red5 thread should be useful:
http://www.nabble.com/java-call-ffmpeg-ts15886850.html

Frame by frame animation with Audio using Services in Android

I need some help in the concept of Services in Android? Actually i want to Play some sounds with animation in Android. I'm done with frame by frame animation successfully but want to play some audio with animation. I got some ideas about Services from google but I'm unable to get their point, so that i am posting it over here. If anyone has any idea about how can i do this please give me some suggestion to do this. It would be very helpful to me.
Have a nice day ahead...
Thank you!!
You'd need to take a look at,
MediaPlayer
I think the documentation given is self-explanatory. Also you need not make use of a separate Service for playing the sounds, unless of course you have a special need.

Categories

Resources