how to create custom video player with all controls - android

is any library is there for to play you-tube video as well as mp4 files, video player should contains all controls like play,pause,stop seek-to, get-frame, and video streaming etc. or can any one tell me how to create the same.
please help me.
thanks in advance..

As Pandy said, use the MediaPlayer. Just drag it in from your eclipse UI editor and then work on it as you would anything else in android such textviews, etc.
Take a look at the dev guide for more info
MediaPlayer

Related

How to fasten my android video streaming application

Hello guys is there any way or a codes to fasten a video streaming application, like they compress the video when uploaded.
Thanks a bunch for a help.
I suggest you check the WebRTC standard and protocols for this venture.
https://webrtc.org/

what is the most efficient way to stream videos in android app

I am Building An app for on line streaming,using MediaPayer to stream videos,
player.setDataSource(this, Uri.parse(getLink()));
but his seems rather slow ,is there more efficient way to stream videos ,please guide
thanx in advance
is there more efficient way to stream videos ?
You could try using the VideoView class:
https://developer.android.com/reference/android/widget/VideoView.html
Displays a video file. The VideoView class can load images from
various sources (such as resources or content providers), takes care
of computing its measurement from the video so that it can be used in
any layout manager, and provides various display options such as
scaling and tinting.
or if you are willing to write some boiler plate code (mostly using dependency injection) you could try ExoPlayer.
https://developer.android.com/guide/topics/media/exoplayer.html
There is some excellent sample code in GitHub for ExoPlayer as well to get you started.

android -What is the best way to play video in my application

I've encounter this problem many times , the problem is that I've a videoView in my application but it couldn't play lots of different formats and video files.
for example , if I want to open a mp4 file, I should ask my users to convert the video to a H.264 format and then upload the file and it's very hard.
I'm looking for a better way to play various formats of videos .
Does any one no any way to do so ? have can I do that ?
If you're willing to use a third party library, FFmpegMediaPlayer is a is a reimplementation of Android's MediaPlayer class based on FFmpeg. It adds support for additional formats and protocols not provided by Android's MediaPlayer class. It is licensed under LGPLv2.1.
In android, .mp4 extension is the most common video format which is compatible for the default playback.
Objective:
Implemention of VideoView for the playback of Videos.
Usage of MediaController for the playback controls.
SurfaceView which will hold the playback of Videos.
Containers that are used for playing videos:
VideoView
MediaController
SurfaceView
DisplayMetrics
Read more: http://mrbool.com/how-to-play-video-formats-in-android-using-videoview/28299#ixzz3uUX2Bew0
Or for getting best answer , you need to see this link.
Best way to play a Video file?
I suggest you to try out ExoPlayer. It has really nice features and documentations. Try this codelabs tutorial. https://codelabs.developers.google.com/codelabs/exoplayer-intro/#0

Get frames of the video and perform modifications in that frame in android

I need to get the frames a video and do some modification on it like drawing something on it or write some text. Then on saving I need that video with that modifications.
Please suggest me the best way to do that. Any help is appreciated.
Please see the below app for to understand my problem
https://play.google.com/store/apps/details?id=com.techsmith.apps.coachseye.free
You can try INDE Media Pack - https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials
It has transcoding\remuxing functionality as MediaComposer class and several sample effects like Grayscale, TextOverlayEffect etc. For exampe effect to put text: https://github.com/INDExOS/media-for-mobile/blob/master/Android/samples/effects/src/com/intel/inde/mp/effects/TextOverlayEffect.java. It could be easily enhanced to other effects

videos editing in android, insert and remove frames from video

I've been working on this videos thing in android and I thought to make it more functional. I have a question that, is there any way we can insert or remove frames from some video, like edit videos the same way we edit images, give them effects and all. I think, I am clear. Any links, sample codes, hints or books would be useful to start with this.
thanks :)
Here are multiple things you can look for video editing.
The more efficient in FFMpeg android sample for processing video (so that effects on video applied and saved on device as new video with applied effects) FFmpeg android java
For run time effects, just to show the user effect on video while running in your app, can use Vitamio

Categories

Resources