Skip to content

Commit

Permalink
final version
Browse files Browse the repository at this point in the history
  • Loading branch information
dickverweij committed Mar 10, 2016
1 parent 595b869 commit 714b858
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Chromecast remote display (IOS) plugin for Cordova
==========================
This plugin will cast your cordova app to a chromecast
This plugin will cast your cordova app to a chromecast in IOS

Requirements
-------------
Expand All @@ -13,28 +13,28 @@ Requirements

(assuming you installed cocoapods)

add a "Podfile" to your platforms/ios folder with following contents:

-----------------
platform :ios, '8.0'

pod 'google-cast-sdk'
pod 'google-cast-remote-display-sdk'
-----------------
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.CordovaChromeCastRemoteDisplay.startCast(publishId);
// this will show the selection screen and casting will start after selection
// you need to have a published chrome cast remote display app. See https://developers.google.com/cast/docs/registration
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.CordovaChromeCastRemoteDisplay.endCast();
// end the cast
cordova.plugins.ChromeCastRemoteDisplay.endCast().then(...);
-- ends the cast


LICENSE
Expand Down
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "nl-afas-cordova-plugin-chromecastremotedisplay",
"version": "0.1.0",
"description": "Chomecast Remote display plugin. Cast your cordova app to chrome cast on IOS",
"cordova": {
"id": "nl-afas-cordova-plugin-chromecastremotedisplay",
"platforms": [
"ios"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/dickverweij/nl-afas-cordova-plugin-chromecastremotedisplay.git"
},
"keywords": [
"ecosystem:cordova",
"cordova-ios"
],
"engines": [
{
"name": "cordova",
"version": ">=3.0.0"
}
],
"author": "Dick Verweij",
"license": "MIT",
"bugs": {
"url": "https://github.com/dickverweij/nl-afas-cordova-plugin-chromecastremotedisplay/issues"
},
"homepage": "https://github.com/dickverweij/nl-afas-cordova-plugin-chromecastremotedisplay#readme"
}

0 comments on commit 714b858

Please sign in to comment.