Internet Streaming Radio on an android application - android

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.

Related

Streaming media content between Android and IOS devices

I would like to implement this scenario:
- one IOS device and one Android device;
- the first simply exposes it's media library to the Android one (connected through BT);
- the second accesses the first's media library and plays with its contents.
I've been looking throught IOS/Android Official documentation and searching online for clean solutions, but it's said everywhere that a2dp (which is the standard BT protocol used for the streaming of media contents) isn't supported natively by Android OS, so that I can't hope in a clean solution.
Could you help me? Or the only possibility i've got is implementing a self-made protocol with buffering and all the other stuff?
PLEASE NOTE!! I'm not asking you to write the application for me, I would only like to know if anybody knows something more about this.

Does youtube Android application uses "DIAL" protocol?

I need to develop an application for Set top box, where in any Android mobile youtube application can connect to my youtube application and REMOTEly control STB youtube application. Such as play, pause, navigate..etc
As far as I have searched, youtube uses DIAL for Airplay kind of feature.
But, If I see youtube leanback pairing with mobile; It works on some pairing code; which does not look like DIAL specification.
Are there youtube Android applications, that works on DIAL?
Well, if you have been able to see the pairing code, you've seen the DIAL protocol in action. From there, a proprietary protocol takes over to control the device. (unfortunately, I haven't been able to figure out how it works exactly yet. It somehow proxies all commands through Google via an AJAX-based protocol).
You probably aren't even supposed to do what you want to do. If you are still trying to get YouTube on the set top box, you might want to look into https://www.youtube.com/tv and leapcast.
Oh and to clarify, unlike what almost anybody seems to think, DIAL is not like AirPlay. AirPlay streams data to another device, while DIAL just controls another device (the net effect might be the same though). DIAL is more like UPnP, and even uses a subset of UPnP.
UPDATE
I have reverse-engineered the protocol. The result is a lightweight audio-only media player acting like a YouTube TV. It can be found on GitHub.
Under the hood it uses Google's Channel API for near-real-time communication over HTTP without polling.

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

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.

Connect to NAS device from Android

I'd like to add NAS support to one of my application, and it is critical that the application is capable of streaming the content and that it not has to download it to the device. The application will be streaming video content, so once the video is over, there shouldn't be any large video files on the device.
What I've tried so far:
jCIFS - Works beautifully, but isn't capable of streaming (to my knowledge). I've successfully created video files on the device using jCIFS, but they're still there, when the video playback stops.
Temporary files - I know that Android is supposed to be able to support temporary files, but I'm not sure how it works or if it's any good in this situation. Just a thought, basically.
My application must be able to launch a video intent with a video on the NAS device, and it should be playable in any video player. I know that some applications on Market support NAS devices (and SMB / CIFS connections), but I don't know how it works.
Any suggestions or ideas would be much appreciated.
I think you have to create an in between http server as discussed in the following question: Android ServerSocket programming with jCIFS streaming files
I am trying to do the same thing, already tried VPNC, no luck.
Now I am trying to use neo router my android can connect to the server but isnt able to browse any files. It might work for you. search for VPN setup (your router name here) android. It will give you some stuff to try.

DRM on smartphones (Android, iOS, etc.)

We have to develop a DRM component for audio/video streaming for various mobile platforms. The DRM server supplier is currently unknown as well as the streaming protocol format (assumption is HLS or RTSP).
Do you have idea what has to be developed on the client side? I think even we do not have the server ready we can start doing a lot of things in advance.
BR
SteN
I think you need to lock down at least some component of the DRM implementation. There are a lot of vendors coming out now with cross platform (iOS & Android) solutions. I don't think RTSP is viable as this type of streaming hasn't been implemented with encryption as it was only used when the operator/carrier did the streaming themselves directly to the handsets. There are many vendors with HLS support and Playready (microsoft smooth streaming) appears to be getting hold on multiple devices also. Unfortunately you have to look at point solutions and may not be able to work generically across all devices on day one unless you completely build the DRM into your application and hand off to the native media player upon playback. If you do a few google searches around DRM android/ios you will find many options.

Categories

Resources