Is it possible to make a receiver app for chrome tab - google-cast

I'm posting here because I didn't find any satisfying answer anywhere.
The question is quiet simple. I see a lot of application implementing the cast feature on Android. The issue is that even if I have a brand new smart TV, it actually doesn't support the cast feature of the majority of my apps.
For example, my TV has a Youtube app so I can cast youtube videos from the youtube app on my phone to my TV.
Now I would like to cast my favorite streaming app to my TV but my TV is not found. So I'm thinking, okay let's try to make an app for my TV that will receive that kind of command.
I know that I can make an app for my TV. Before starting that ambitious project, I want to be sure that the google cast sdk will allow me to write such receiver app.
Do you think this is possible ? Or do we really need one receiver app for every emitter app ?

YouTube uses its own discovery protocol beyond what the Cast SDK supports. Apps need to integrate the Cast SDK in their senders and implement receivers that support their authentication and DRM.

Related

How to cast Local Video using google cast sdk on iOS Sender

searched for similar issues in this forum, and in the previous replies, someone suggested to embed a webService in iOS platform to implement it, but last year someone suggested to use MediaStore (but this does not apply to the iOS platform, and there is no following in the reply)
I checked google's relevant documents, but I didn't find any API that can implement casting local video/image, maybe I didn't read them carefully enough.
Do you have a good solution?
With the way that senders work, you are expected to implement your own local player. The requirements that your app needs to meet then is to ensure that you are able to transition from the local player to the cast device and vice versa. I would suggest you to look at the cast videos sample for reference. We use a simple AVPlayer in the sample: https://github.com/googlecast/CastVideos-ios/blob/master/CastVideos-swift/Classes/LocalPlayerView.swift

Cast on androidTV

I have an app which is perfectly working with a classic Chromecast dongle. I am using my own custom channel.
However the Chromecast's icon does not appear when using my AndroidTV as it should. AndroidTV is actually supposed to support the Cast protocol. It's working on several apps such as YouTube but it is not working on most of the app and on mine.
From the Google doc ( https://developers.google.com/cast/docs/android_tv) :
Your existing Cast application runs on Android TV with no additional effort
So I guess I should have nothing to do ...
The same doc is also talking about the specific media namespace :
urn:x-cast:com.google.cast.media
but I don't think I need to use this namespace for my app to display the icon.
If you have any idea, please help me on this.

native notification Samsung Gear 2 Watch

I want to integrate with the native Samsung Gear 2 Notifications such that when my consumer app in the Samsgung Gear 2 Watch receives a certain data from my host provider, the User will get a Notification in the Native notifications app. How can I accomplish this?
I've spent 50+ hours googling, looking up docs, etc but there doesn't seem to be an answer. The best resource I could find are the links below, but even these seem outdated and don't work at all.
Help please!
So I've been following these Guides but neither of them work for me :
https://developer.tizen.org/fr/documentation/articles/how-use-tizen-notification-api?langswitch=fr
also
https://developer.tizen.org/fr/documentation/articles/notifications?langredirect=1
The error I receive when running the sample code they provided:
TypeError:'undefined' is not a constructor (evaluating 'new tizen.StatusNotification("SIMPLE", "Simplenotification",notificationDict)')
I figured it out. The answer is there is NO SUCH THING as native notifications for the Samsung Gear 2. That library is a private library owned by samsung only and only special people can have access to that. For the lay men the closest we can get is to enable notification via Gear Manager and have our paired phone relay notifications to the watch.

How to join an existing activity playing media in chrome app

So assuming you've already launched media on the receiver from an iOS/Android/Web app, how can another web app join this activity and control the media? I noticed that the cast API has a 'JOIN_ACTIVITY' in it, but there's nothing that currently uses it. Nor do you know the activity's ID to join it..
This is similar to How to check if a ChromeCast Session is already in progress however, this answer does not help to connect to an existing application
However, using the javascript API, even if you know your app is running I can't find a way to connect to it without re-launching
I managed to get some answers from the Google engineering team:
We allow clients to reconnect to the same session if they are launched
from the same origin (i.e. http://www.somedomain.com:80/). We don't
have the support in the V1 protocol stack to implement this across
multiple browsers. We can hard code something for V1 like mapping
origins to app ids, but it will still be some eng effort to add the
API support as well.
In short, the functionality from Android and iOS is currently missing from the Chrome SDK... hope it comes out soon.
EDIT: To update this, now that the official public SDK has been released, this is now supported!

using Spotify's webAPI in an iOS app

So I'm in the process of developing an iOS app and I wanted to use the Spotify web API for searching and looking up songs in Spotify. However, I can't really tell if that is how to do it or if there would be better ways to do it and wanted to clarify before I began. Thanks in advance!
If you'd like the use the Web API, it works just the same as any other JSON REST API, so a lot of the tutorials out there for doing that on iOS will help you just fine. For converting between JSON and Objective-C data structures, newer iOS versions have NSJSONSerialization, otherwise I can recommend the open-source TouchJSON.
Also, you might want to look at CocoaLibSpotify, which is an Objective-C library for interacting with the Spotify service in a much more integrated way than the Web API — including music streaming. However, it does require a Spotify user be logged in to use.

Resources