Support chromecast in native iOS app - ios

I have an iOS app which can play to apple TV using AirPlay. As I have heard that chrome cast extended the support to iOS how would I be abs to cast from my native iOS app to chrome cast so that video will be played in Google TV/Smart TV.
I have tried researching this in google however did not find any topic.

There is a Cast SDK that you would use to discover Cast devices on your local network and then cast to them from your sender device (iOS, Android or Chrome device). You may or may not need to have your own receiver, which runs on the Chromecast; in most cases you don't need to have your own and can use the one that Google provides. Details are more than what can be summarized here but can be found here. In addition, there is a number of sample projects that you can also look at to see how the documentation works in a real application.

Related

Can't detect Chromecast if it is built-in a TV

I am working on a project which needs to have casting capability. I have implemented the Cast SDK several times and am relatively experienced with it, however I do have this strange issue. The cast SDK can't detect a Chromecast device, when the Chromecast is built in a TV. If the device is a standard dongle everything works as expected.
Just to clarify I am having problems only with the discovery. If the device is discovered everything works.
My coworkers (for Android and Web ) are reporting the same behaviour.
Has anyone experienced such a problem?

webRTC-enabled browser for iOS?

Preface: there are questions (some good, some bad) already in existance on StackOverflow about webRTC support on various browsers and platforms, including iOS. However I couldn't find anything definitive that was more recent than ~2012, and this is a rapidly-changing field.
I'm working on a browser-based webapp that uses webRTC for minimal-latency peer-to-peer data transfer (not for audio/video, unlike most applications it would seem - all I need is DataChannel).
I hit a snag when I started testing the data-transfer part of the project and discovered that iOS devices still don't natively support this in their built-in browsers (despite some recent rumors).
Bowser is a free open-source browser App for iOS that purports to support webRTC on iOS. The problem is that when I try to open the app, it simply crashes and closes. I've tested this on an iPhone 5 and 5s. Googling has failed to turn up alternatives - even Chrome for iOS doesn't currently support webRTC it seems.
My questions:
1) Are there alternative browsers (even iOS-version restricted) that are currently supporting webRTC, or is there anything promising coming down the pipeline?
2) Does Bowser actually work (webRTC) on iOS devices where it doesn't crash immediately upon launch?
3) What strategies have other people used to work around this limitation?
As of iOS 11, WebRTC is now supported in Safari: https://developer.apple.com/library/archive/releasenotes/General/WhatsNewInSafari/Articles/Safari_11_0.html#//apple_ref/doc/uid/TP40014305-CH13-SW1
Check out crosswalk project ( https://crosswalk-project.org )
This Provides runtime of Chromium engine for native support in older devices.
1) Are there alternative browsers (even iOS-version restricted) that are currently supporting webRTC, or is there anything promising coming down the pipeline?
Answer:
There is a Browser called Bowser that supports webRTC.
2) Does Bowser actually work (webRTC) on iOS devices where it doesn't crash immediately upon launch?
Answer:
It's not crashing as of now.But I couldn't successfully test with anything so far.I have raised an issue about it
3) What strategies have other people used to work around this limitation?
Answer:
Apple is yet to support WebRTC in Webkit so as of now the only way would be develop a native or Hybrid app that would support the unsupported WebRTC APIs.
You can develop a hybrid app powered by OpenWebRTC or cordova-plugin-iosrtc

Scanning for Google Cast devices

I have no Chromecast so I'm trying to use these apps as Google cast devices (receivers):
https://github.com/dz0ny/leapcast
https://itunes.apple.com/sk/app/rplay/id692511073?mt=8
https://chrome.google.com/webstore/detail/cr-cast/acmfmindblghbicdipoakcolegkcddbk
All of these apps worked fine (at least was found) with iOS YouTube application.
When I'm trying to find these "devices" (receivers) in my app with
self.deviceScanner = [GCKDeviceScanner new];
[self.deviceScanner addListener:self];
[self.deviceScanner startScan];
none device is found. No GCKDeviceFilter is used, I just want to see all cast devices on network. I'm using GoogleCastFramework-2.2.1-Release.
None of these app will be discovered, nor will work with the official Cast SDK since these are fake (i.e. unofficial) devices. The official Cast SDK checks to make sure the Cast device is a genuine one.

Video Streaming in iOS through WebRTC

I am trying to build a audio/video streaming app that works cross platform on iOS and Android mobile devices.
No matter how deep I Google, I'm ending up with suggestions that point me towards OpenTok/TokBox API. But this is what I wish to avoid.
I've checked a few demo, but WebRTC/HTML5 do not seem to work with streaming video/audio in iOS browser. For example, the https://apprtc.appspot.com demo does not work in Safari or Opera Mini in iOS.
When I try http://dev.opera.com/articles/media-capture-in-mobile-browsers/demo/ ... I can capture image using the default iOS camera picker from my browser but streaming video fails.
It seems like the getUserMedia() stuff is not supported by any browser in iOS.
Moreover, I am planning to put this on a WebView in a native iOS app. This sounds like a really far cry.
I wish someone could point me towards something that helps me build a video streaming app (hopefully using HTML5), that works uniformly for iOS and android (without TokBox).
You might want to look into Ericsson's Bowser App http://www.ericsson.com/research-blog/context-aware-communication/bowser-openwebrtc-released-open-source. It claims to provide WebRTC on Android and IOS. Apparently the App is currently under review in the App Store so if you wait it may just be a case of downloading the App. However it's also open source so if you can't wait then you can build it yourself https://github.com/ericssonresearch/bowser.
getUserMedia and WebRTC Peer-to-peer connections APIs are not supported in iOS.
One of the reason is that at the moment efforts around WebRTC focus on VP8 video codec which Apple and Microsoft do not support natively. Support in the near future is unlikely with Microsoft pushing for its own standard.
Doing what you want on iOS requires you use a native iOS compatible solution like OpenCV which supports video capture. You can find on Google tutorials on how to implement a solution based on OpenCV.
good news, will be supported at Safari 11.0
https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Safari_11_0/Safari_11_0.html

How to integrate Chromecast APIs in iOS?

I am going to integrate chromecast SDK into iOS, but here I am bit a confuse with receiver.html and whitelist email that exactly how to go with them.
So anyone please explain me regarding same.
Also tell me if it is compatible with any iOS Simulator instead of device.
Many developers successfully use the iOS simulator. https://developers.google.com/cast/cast_2nd-screen_app_tutorial for iOS and Android.
The Receiver is the HTML5 application that you create that runs on the Chromecast device. Your iOS application talks to the Receiver, the Receiver will fetch your content from the internet based on the information that comes from your iOS application.

Resources