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/
Related
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.
I have seen many questions related to this. Nevertheless there is not an answer for mine I think.
I would like to use an already coded RTSP Client on Android to use with MediaCodec in order to capture a RTSP stream in H264 to then decode and display it. I have used VideoView and MediaPlayer which are well-known to support RTSP streaming in the .setDataSource method (file or rtsp/http path) (unlike MediaExtractor which only supports file or http), but the latency is to high for my purposes.
I would like to use MediaExtractor, but because of that limitation on the setDataSource method it seems to be not an option. Given this, I am searching for some help or examples (tutorial?) that I could use as RTSP Client on Android, or if someone has used MediaExtractor in some way to capture the RTSP stream its help is more than welcome as well.
Thank you so much guys!
rojiark
You can try https://github.com/fyhertz/libstreaming
You should know though that is LGPL, which means the rest of your project will become LGPL and if you distribute the application you must also distribute the source code if requested.
I have a small application that stream pictures from a device using android. I'm able to take pictures and save into sdcard and now I have been willing to do some video recording with that. I have done it using IOS: I save the pictures into an array and for each pictures, I create a mjpeg video with these combined pictures.
I have thought of using pure java to do so, but most of the import libraries cannot be supported in Android.
I have tried to use this: https://github.com/lessthanoptimal/BoofCV/blob/master/main/io/src/boofcv/io/video/CreateMJpeg.java
But it cannot be played for some unknown reason.
I'm out of ideas. Please help me.
Thank you
You can use MJPEGGenerator.java to create an AVI from a set of jpg images
This is example of using MJPEGGenerator in russian language. Use translate.google.com to understand.
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
I would like to build a live streaming and viewer.
The streaming is H264/MEPG4 raw data.
How to decode these raw data on Android?
I can not find usable API in Android SDK to do it.
And suggestion is welcome.
Thanks in advance.
Caxton
I use ffmpeg to decode live streaming.
Use MediaCodec API (since 4.1). Sample code here on David Marques's blog.