Does youtube Android application uses "DIAL" protocol? - android

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.

Related

android to android audio live streaming

I have a plan to develop an instrument app, when we shake the android phone, it will produce "angklung" (Google it) sound.
THE PROBLEM:
How to make one android phone can share its produced sound (by shake
gesture) to the other android phones having my application?
The connection that I want to use is mobile data connection and wi-fi.
I think this person has the same problem, but I don't know how to communicate with him. Stream android to android
But there is no help..
I need solution/example/suggestion for this problem. So far I succeed to produce the "angklung" sound when it is shaken.
I have no idea how to start this application. I've searched in the internet but there is no help :(
Thanks for your help.
I would give you the suggestion of streaming the audio data to a server and beaming that to other android devices (that are registered to your app). As the question/issue you have asked are way bigger than couple of lines code, hence am pointing you to some good resources, dig those deep & good luck.
Live-stream video from one android phone to another over WiFi
Stream Live Android Audio to Server

How to listen for HDMI-CEC media controls events in receiver

Google recently announced that Chromecast now supports HDMI-CEC controls.
https://plus.google.com/+LeonNicholls/posts/FyGeJavgmX3
I would like the implement the functionality in my app. I have tested with Youtube and my TV and it works. How can I implement the same thing in the receiver portion of my Chromecast app? I have tried listening for key events, but that doesn't seem to pick anything up. Any ideas?
As long as you use the Media Manager on the receiver side (the recommended approach), you shouldn't need to do anything special.
As stated in your article, it's basically only the Google Cast media namespace namespace that supports HDMI-CEC, so basically for custom receiver apps, the answer is no. For media namespace apps, just implement the API and it should work automatically.
I know the media HDMI-CEC support includes turning on the TV, switching to the ChromeCast input, pause and play. It's possible it also includes volume (including mute) and seeking as these are also media playback messages defined in that API.
It might be cool if you could use those buttons to control a custom receiver running on the CC but I suspect that the only way to do that is to generate a video in the sender and stream that to the CC, generating new video based on remote control interaction. I.e. An expensive and rather indirect way.
On the other hand - as a proof of concept maybe that would encourage google to open the HDMI-CEC API to non-media apps.

Audio Recorder Player Rails Mobile Friendly

Updated
I may have found the solution, I can probably make a mobile app with phonegap that talks to my rails app and make a lighter version of a mobile version of the rails app
I may be getting an educational rails application to work on soon. The client is an educational consultant, she wants to build a rails application and one of the feature is that a teacher can record a feedback that belongs to a particular student for an assignment. The app needs to be able to record an audio and play an audio.
I have been researching this feature both on stackoverflow and google but I don't find the answers very complete.
I got a couple of options,
1) I have found this blog, a developer built an audio recorder/player with flash http://cykod.com/blog/archive/December2010
and basically its teaching me to grab the audio from a browser with a microphone with flash (needs user permission) and then send it to the server therefore you can escape using red5 (media server).
She wants it to be mobile friendly. I don't think the recording works on the android phone because of flash and I am sure the android phone lacks a microphone. I don't know much about ios either because I don't specialize in mobile. I got my android phone to download flash so it can play the sound.
2) using red5server but I think the player/recorder will still be flash and it doesn't work on the phone
3) http://www.sajithmr.me/jrecorder-jquery and jrecorder
I got some solutions for rails but is there a mobile friendly solution ?
I am sure the android phone lacks a microphone
A phone without a microphone would be pretty useless! :)
With Android you can use MediaRecorder to record and save an audio file. I'm sure it works, I've done it before.
Although I have never tried, I think you can do it in PhoneGap with the Capture options and on iOS with the Audio Video Foundation framework.
That's for the mobile part. You don't need flash there, there are much better options.
On your web application, you can surely use Flash to record audio from the computer's microphone.
However, if you're lucky enough your users will use recent browser that support HTML5 audio recording and playback. Check out capturing audio tutorial and libraries such as audio.js.
HTH

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.

Deliver synchronized video to multiple tablets

I have a live event where we'd like to explore the use of tablets (IOS/Android/Windows) attached to seats for the audience to access webpages and applications, but would also like the functionally to push a video stream to each tablet simultaneously and synchronized to an audio feed from the house PA.
So far, I haven't found any hardware/software combination that can pull this off yet. Obviously syncing video over IP isn't an easy task, but I'm hoping someone has a clue if it's possible or not. I'd also explore the use of tablets that have a hdmi/video input, but so far they don't seem to exist either.
Flash Media Server and use p2p.
Just realized your using IOS. IOS doesn't do Flash.

Categories

Resources