Play one multimedia content on multiple devices at the same time? - android

Can I send and show my multimedia content on two or more devices via DLNA
at the same time?
If yes how can I do it ? For example I want my tvs, tablets to play the same multimedia content of my smartphone( LG Nexus 4) at the same time.
If not, are there any other protocols(like wifi) to do this. Any approaches will be appreciated.

Best implementation for android devices as i think streaming your multimedia content from media server, then multiple devices can play at same time
DLNA didn't have android api yet How to make a DLNA android mobile application?
for streaming
Android video streaming example
http://developer.samsung.com/android/technical-docs/Android-Media-Streaming-Tutorial
for android to android streming via wifi
Live-stream video from one android phone to another over WiFi

I'm not sure about DLNA players etc, but I have tried streaming my content via Youtube. It's very easy to set up and use.
The only thing is make sure your battery is plugged in, or as long as it does not die. Youtube live stream takes up a lot of battery.
Some Useful Links
Youtube Guide / Link1
Youtube Guide / Link 2 support.google.com/youtube/answer/2853700?hl=en
Youtube Guide / Link 3 support.google.com/youtube/answer/6273849?hl=en
Good Luck!

AFAIK, DLNA doesn't support viewing synchronized content across multiple devices. The best solution I've found is VLC as a server streaming a video via RTSP. Multiple devices can view the stream via any video client that supports RTSP, like VLC. For Android devices VLC for Android Beta works well.
All clients viewing the stream will be synchronized.

Related

Stream video android-android

I would like to stream a video between two android devices (android-android). There wouldn't be any server, so the streaming has to be direct between devices. Devices would be in the same network so they could communicate via WiFi.
I've tried using MediaRecorder - MediaPlayer via sockets, but I've received many exceptions.
I also looked for library, but I just want to stream a video between two devices directly.
Any solutions?
If your video if for real time communication, e.g. a web chat or sharing some CCTV in real time with minimal delay then a real time video communication approach like WebRTC would be one additional possibility - this type of approach prioritises low latency over quality to ensure minimum delay. See here for Android WebRTC documentation:
https://webrtc.org/native-code/android/
If the requirement is just to allow one device act as a server for non-real time videos then the easiest approach may be to use one of the available HTTP server libraries or apps to allow one device act as a server that the other one can simply connect to via a browser or player. An example Android HTTP server that seems to get good reviews is:
https://play.google.com/store/apps/details?id=jp.ubi.common.http.server&hl=en

How to buffer and play video in a Android and iOS like Netflix and Iflix

I have a requirement to develop a Android and iOS mobile apps that allow subscribers to view movies like the way Netflix and Iflix does it.
I would like to know if this can be achieved by inbuilt Video playing classes or widgets on the Android and iOS platforms, or if we will need a library or SDK for this.
I came across this URL on how to stream video in Android apps. Would this approach suffice for this requirement?
https://code.tutsplus.com/tutorials/streaming-video-in-android-apps--cms-19888
Netflix and similar systems use ABR to deliver video to mobile devices - ABR allows the client device or player download the video in chunks, e.g 10 second chunks, and select the next chunk from the bit rate most appropriate to the current network conditions. See here for an example:
https://stackoverflow.com/a/42365034/334402
There are several ABR protocols but the two most common at this time are HLS and DASH. HLS must be used to deliver video streams to iOS devices due to the apple guidelines (at this time and for video over 10 mins which may be accessed on a mobile network - the guidelines can change over time) and DASH is probably more common on Android devices, although HLS can be supported on Android also.
Most Android players now can handle ABR - the Android Exoplayer is a good example, is very well used and supports this natively:
https://github.com/google/ExoPlayer
Take a look at the Developers Guide (included in the link above at the time of writing) which shows how to include ExoPlayer in your app.
On iOS the native player supports ABR using HLS.

asynchronous video playing/live streaming from mobile to desktop via usb

I searched a lot over the web for the below requirement but didn't get any sample code or correct solution.
Basically I want to connect my android mobile to a linux desktop via USB and want to live stream a video that i play in my mobile(i m gonna use video view that loads a video from a weblink/assets folder).
if I play a video from my mobile that should be get played on desktop at the same time.
I would be grateful if u provide an API or source code with example/reference links.

Internet Streaming Radio on an android application

I have an Internet Radio and to be honest I went through almost everything to get how can I actually make a Streaming android application and what i should use for that .. no use .. not a single useful information ..
can anyone help me ?
This is most commonly done with Shoutcast/Icecast HTTP streaming to a MediaPlayer component contained in a Service.
NPR has open-sourced their app, and it's a great reference application for radio.
http://code.google.com/p/npr-android-app/
Note: Shoutcast streaming is currently broken in Google TV, so your app will not work on those devices unless you choose another protocol.
If you wish to only support android 3+ (including Google TV) you can also try streaming over HLS HTTP. This protocol is much less commonly used for radio, though.

Mandatory to use Darwin or wowza or VLC to stream live video in android?

I want to know is it mandatory to use any of the streaming servers like Darwin,Wowza or VLC to stream an RTSP live stream video? I am receiving an RTSP link from my client and it tends to change everytime. I can successfully play it in the VLC player but on phone I cant see anything. I tried playing a sample link having .3gp extension and it worked fine. But my links dont have an extension. They look like this rtsp://122.166.229.151:1950/1346a0cf0ef7c2. Please help me.If its compulsory to use an extension or a server, I will continue working in that direction.
A streaming server (as you describe) isn't strictly necessary - as long as you can pull RTSP from whatever your source is, you should be able to see it. Most IP cameras have onboard RTSP servers (although I wouldn't put too many connections on it). If you can see it in VLC, the phone should be able to consume it as well, given that the codec used to encode is one supported by the android device (in most cases, if you're doing H.264 Baseline 3.0 with AAC, you should be good to go).
A streaming server like Wowza can make that stream available to a wider audience than pulling directly from the source device, but if you're not intending to broadcast to a wide audience, it's not required for streaming to Android devices.
Newer versions of Android (Gingerbread and later) are also able to consume Apple HTTP Live Streaming.

Categories

Resources