Google Glass and RTSP - rtsp

I am not to sure how to format this question. Here it is:
How exactly does RTSP work? More specifically, how does Google Glass and the MirrorAPI implement it? Does Mirror provide as the "middle ground" between both clients? Or does the protocol connect both clients without the middle ground? I ask this because I know that the timeline is associated with a Gmail account thus requiring access to a Google server. Also, since Glass is card based, does the protocol render a card on the users timeline because if so that would require Mirror to act as a middle ground.
Any leads would be great, Thank you
Update
Has anyone tried to implement RTSP and Glass?

The Mirror API does indeed stand between Glassware that use it and Glass hardware. You can learn more about the place of the Mirror API on the stories page in the docs, but RTSP is not part of the Mirror API.

Related

Stream music from streaming platform (Deezer, Spotify, Soundcloud) to Web Audio API

Do any of you, know a way to get the audio stream of a music platform and plug it to the Web Audio API ?
I am doing a music visualizer based on the Web Audio API. It currently reads sounds from the mic of my computer and process a real-time visualization. If I play music loud enough, my viz works !
But now I'd like to move on and only read the sound coming from my computer, so that the visualization render only to the music and no other sound such as people chatting.
I know I can buffer MP3 file in that API and it would work perfectly. But in 2020, streaming music is very common, via Deezer, Spotify, Souncloud etc.
I know they all have an API but they often offer an SDK where you cannot really do more than "play" music. There is no easy access to the stream of audio data. Maybe I am wrong and that is why I ask your help.
Thanks
The way to stream music to WebAudio is to use a MediaElementAudioSourceNode or MediaStreamAudioSourceNode. However, these nodes will output zero unless you're allowed to access the data. This means you have to set the CORS property correctly on your end and also requires the server to allow the access through CORS.
A google search will help with setting up CORS. But many sites won't allow access unless you have the right permissions. Then you are out of luck.
I find a "no-code" work around. At least on Ubuntu 18.04, I am able to tell Firefox to take my speakers as the "microphone input".
You just have to select the good "mic" in the list when your browser asks for mic permission.
That solution is very convenient since I do not need to write platform-specific binding-code to access to the audio stream

Chromecast user agent

Is it possible to change the user agent the chromecast sends to servers?
I am trying to load a mobile video and the server requires that the user agent be from a mobile device.
Thanks.
No, you cannot change the user agent
It's a good question, but I'm afraid you won't be able.
Anyway, you can play with the host method to change/send custom headers, so maybe you can figure out how to send the request to simulate a mobile device into your servers.
Also, be careful with the media you want to play in Chromecast, there's a list of supported formats and the recommendation is to follow that "rule".

NFC handover to Bluetooth or WiFi for data transfer

I'm currently working on a project for an interactive visitor centre in Laguna Beach, CA.
There are many touchscreen devices around the space, which we are developing some cool software for, however one of the client requests is to allow visitors to transfer image, pdf and video files from an interactive coffee table touchscreen onto their phone.
The client has seen this on YouTube/CES etc.. You know, where someone puts a phone on a the interactive surface and then magically swipes images onto the phone from the screen.
Of course, if the visitor had a custom app on their phone, and was already on the same WiFi this would not be so much of a problem. I suspect this is what happens on these magic demos that we see.
In our situation, we don't want the visitor to download an app really, we just want the easiest solution and experience for the visitor. We have a public WiFi available to us, and we can install an NFC device on the touchscreen and the touchscreen also has bluetooth.
My ideal scenario would be for the user to pop their NFC enabled phone on the table, the table recognises it, pairs with BT or WiFi and away we go! I'm not sure how practical this is though having researched around. Clearly thats not going to work on an iPhone. I don't mind a couple of mechanisms i.e. one for Android/other NFC phones and one for iPhone.
Does anyone have any experience of this kind of thing and suggestions of how to handle it?!
Here's a mock up of our 32" Coffee Table touchscreen just for some context
Thanks for reading through and having a think :-)
I know that there is standardized way to pair Bluetooth device using NFC tag. I think this is the best solution for you. The authority that is standardizing this format is called NFC Forum. You can find more info about the topic in this document: Bluetooth Secure Simple Pairing Using NFC

I've an app with AdMobs in Google Play but I have doubts

I've an app with AdMobs in Google Play but I have doubts.
PX DP converter is a simple tool for developers and designers.
Basically this application is for my learning.
PX DP Converter | Google Play
I have understood that if I use AdMobs I can't see or click on the advertising or google will ban my account.
I specified in "TestDevice" the emulator and id of my terminal, so I see a banner instead of advertising and the advertising appears in others smartphones, it works correctly. (sorry for my bad English)
My questions are ...
I have a couple of smartphones with different accounts.
Can I click on advertising using local wi-fi (home) without getting banned?
can i use the app with advertising without register my ID on "TestDevice" while I don't click?
I doubt that Admob is likely to ban you for a few test clicks on your development device. But they do have algorithms that track and detect aberrant clicks so if you abuse this they will catch and ban you.
Yes

VoIP client in a browser?

Google just announced that they will add support for VoIP calls in its Gmail application.
Does someone know how this will work? Did they manage to write a web-based VoIP client, or will they require the user to have Google Talk installed and somehow (how?) call this app from the browser?
I'd also like to provide customers with a way to make/receive calls through their browser, so that they wouldn't have to install an SIP client.
Thank you.
Google don't use a VoIP client in a browser. Instead the browser is used to initiate a callback to a phone number you must have previously registered. Once you answer that call Google Voice will then ring the destination number you specified and then bridge the calls together.
I've just noticed that in my inbox. They ask you to accept their EULA to start installing Google Voice. So it's not really a browser solution.
There are several companies that have built VoIP clients as e.g. Java applets.
It is totally doable, although depending on the exact requirements it may be expensive and time consuming: for instance, echo cancellation is not exactly trivial when you need to deal with arbitrary audio drivers across any and all laptops, netbooks etc out there.
There are also consulting firms that can help with that.
Full disclaimer: I own one such company ;)

Resources