Skip to content

dickverweij/nl-afas-cordova-plugin-chromecastremotedisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chromecast remote display (IOS) plugin for Cordova

This plugin will cast your cordova app to a chromecast in IOS

Requirements

  • iOS 8 or higher

  • Cordova 3.0 or higher

    Installation


cordova plugin add nl-afas-cordova-plugin-chromecastremotedisplay

(assuming you installed cocoapods)

cd platforms/ios

run "pod install"

(NOTE: If you get the error "CocoaPods did not set the base configuration of your project because because your project already has a custom config set.".
follow the steps here : http://stackoverflow.com/questions/26287103/cocoapods-warning-cocoapods-did-not-set-the-base-configuration-of-your-project)

open in Xcode the generated xcworkspace. build and run..

Usage

cordova.plugins.ChromeCastRemoteDisplay.startCast(publishId).then(...); 

-- this will show the chromecast device selection screen and casting will start after selection
-- you need to have a published chrome cast remote display app (publishId).

-- See https://developers.google.com/cast/docs/registration

cordova.plugins.ChromeCastRemoteDisplay.endCast().then(...);
-- ends the cast

LICENSE

The MIT License (MIT)

Copyright (c) 2015 [email protected] Dick Verweij AFAS Software BV - [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.