Skip to content
Implementation of the Google Cast protocol (.NET Standard 2.0 library)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GoogleCast.SampleApp Fixes disconnection Oct 22, 2018
GoogleCast Fixes disconnection Oct 22, 2018
.gitattributes
.gitignore
GoogleCast.png
GoogleCast.sln Updates to new csproj (remove packages.config). Sep 4, 2017
LICENSE Create LICENSE May 28, 2017
README.md Update README.md Sep 17, 2018

README.md

GoogleCast

Implementation of the Google Cast protocol (.NET Standard 2.0 library).

This documentation was really helpful to understand the protocol.

These two others C# projects were also helpful to implement the protocol : SharpCast and SharpCaster.

Usage

// Use the DeviceLocator to find a Chromecast
var receiver = (await new DeviceLocator().FindReceiversAsync()).First();

var sender = new Sender();
// Connect to the Chromecast
await sender.ConnectAsync(receiver);
// Launch the default media receiver application
var mediaChannel = sender.GetChannel<IMediaChannel>();
await sender.LaunchAsync(mediaChannel);
// Load and play Big Buck Bunny video
var mediaStatus = await mediaChannel.LoadAsync(
    new MediaInformation() { ContentId = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" });

Download

NuGet

You can’t perform that action at this time.