Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 3.31 KB

README.md

File metadata and controls

49 lines (40 loc) · 3.31 KB

hello-cast-video-ios

This Hello Video demo application shows how an iOS sender application can cast a Video. For simplicity this app is not fully compliant with the UX Checklist.

Dependencies

Setup Instructions (With CocoaPods)

  • Get a Chromecast device and get it set up for development: https://developers.google.com/cast/docs/developers#Get_started
  • Register an application on the Developers Console http://cast.google.com/publish. The easiest would be to use the Styled Media Receiver option there. You will get an App ID when you finish registering your application.
  • Run pod install in the CastHelloVideo-ios directory
  • Open the .xcworkspace file rather the the xcproject to ensure you have the pod dependencies.
  • In HGCViewController.m, replace @"YOUR_APP_ID_HERE" with your app identifier from the Google Cast Developer Console. When you are done, it will look something like:
    • static NSString *const kReceiverAppID = @"1234ABCD";

Setup Instructions (Without CocoaPods)

  • Get a Chromecast device and get it set up for development: https://developers.google.com/cast/docs/developers#Get_started
  • Register an application on the Developers Console http://cast.google.com/publish. The easiest would be to use the Styled Media Receiver option there. You will get an App ID when you finish registering your application.
  • Setup the project dependencies in xCode
  • For each target you want to build, under "Build Settings", add "-ObjC" to "Other Linker Flags"
  • For each target you want to build, under "Build Phases", add the following ent ries to "Link Binary With Libraries":
    • libc++.dylib
    • Accelerate.framework
    • AudioToolbox.framework
    • AVFoundation.framework
    • CoreBluetooth.framework
    • MediaPlayer.framework
  • In HGCViewController.m, replace @"YOUR_APP_ID_HERE" with your app identifier from the Google Cast Developer Console. When you are done, it will look something like:
    • static NSString *const kReceiverAppID = @"1234ABCD";

Documentation

Google Cast iOS Sender Overview: https://developers.google.com/cast/docs/ios_sender

References and How to report bugs

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md

License

See LICENSE

Google+

Google Cast Developers Community on Google+ http://goo.gl/TPLDxj