Sharpcaster 2.0.1
See the version list below for details.
dotnet add package Sharpcaster --version 2.0.1
NuGet\Install-Package Sharpcaster -Version 2.0.1
<PackageReference Include="Sharpcaster" Version="2.0.1" />
<PackageVersion Include="Sharpcaster" Version="2.0.1" />
<PackageReference Include="Sharpcaster" />
paket add Sharpcaster --version 2.0.1
#r "nuget: Sharpcaster, 2.0.1"
#:package Sharpcaster@2.0.1
#addin nuget:?package=Sharpcaster&version=2.0.1
#tool nuget:?package=Sharpcaster&version=2.0.1
SharpCaster
SharpCaster is a cross-platform C# SDK for communicating with Google Chromecast devices. It enables .NET applications to discover, connect, launch apps, and control media playback on Chromecast devices.
Features
- Discover Chromecast devices on your local network
- Connect and launch applications on Chromecast
- Load and control media playback (play, pause, stop, etc.)
- Support for custom Chromecast channels
- Compatible with .NET Standard 2.0 and .NET 9
Supported Platforms
Getting Started
1. Discover Chromecasts
DevicesIChromecastLocator locator = new MdnsChromecastLocator();
var source = new CancellationTokenSource(TimeSpan.FromMilliseconds(1500));
var chromecasts = await locator.FindReceiversAsync(source.Token);
2. Connect, Launch App, and Load Media
var chromecast = chromecasts.First();
var client = new ChromecastClient();
await client.ConnectChromecast(chromecast);
await client.LaunchApplicationAsync("B3419EF5"); // Replace with your app ID
var media = new Media
{
ContentUrl = "https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/mp4/DesigningForGoogleCast.mp4"
};
await client.MediaChannel.LoadAsync(media);
Demo
Custom Chromecast Channels
You can add support for custom Chromecast channels by reverse engineering the communication:
- In Chrome, go to
chrome://net-export/
- Select 'Include raw bytes (will include cookies and credentials)'
- Click 'Start Logging to Disk'
- Cast from your favorite web app
- Stop logging and open the log in netlog-viewer
- Search for
type:SOCKET
and find familiar JSON data - Collect the exchanged JSON
- Create a new class inheriting from
ChromecastChannel
and implement your logic
Contributing
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Google.Protobuf (>= 3.31.1)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.DependencyInjection (>= 9.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.7)
- System.Text.Json (>= 9.0.7)
- Tmds.MDns (>= 0.8.0)
-
net9.0
- Google.Protobuf (>= 3.31.1)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.DependencyInjection (>= 9.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.7)
- System.Text.Json (>= 9.0.7)
- Tmds.MDns (>= 0.8.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sharpcaster:
Package | Downloads |
---|---|
SharpCaster.Console
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated | |
---|---|---|---|
3.0.0 | 138 | 8/29/2025 | |
2.0.3 | 297 | 7/19/2025 | |
2.0.2 | 199 | 7/19/2025 | |
2.0.1 | 134 | 7/17/2025 | |
2.0.0 | 155 | 7/9/2025 | |
2.0.0-beta1 | 1,382 | 12/27/2024 | |
1.2.4 | 160 | 7/9/2025 | |
1.2.3 | 481 | 12/3/2024 | |
1.2.2 | 306 | 8/30/2024 | |
1.2.1 | 203 | 8/12/2024 | |
1.2.1-alpha | 136 | 8/12/2024 | |
1.2.0 | 193 | 7/21/2024 | |
1.1.18 | 170 | 7/20/2024 | |
1.1.17 | 146 | 7/18/2024 | |
1.1.16 | 140 | 7/18/2024 | |
1.1.15 | 140 | 7/18/2024 | |
1.1.14 | 145 | 7/16/2024 | |
1.1.3 | 174 | 7/15/2024 | |
1.1.2 | 154 | 7/8/2024 | |
1.1.1 | 155 | 7/3/2024 | |
1.1.0 | 134 | 7/3/2024 | |
1.0.8 | 1,865 | 2/27/2023 | |
1.0.7 | 846 | 2/27/2023 | |
1.0.6 | 894 | 2/8/2023 | |
1.0.5 | 1,548 | 5/2/2022 | |
1.0.4 | 1,276 | 3/29/2022 | |
1.0.3 | 1,304 | 2/18/2022 | |
1.0.0 | 1,218 | 2/12/2022 | |
0.4.0 | 7,660 | 5/21/2017 | |
0.4.0-pre | 1,607 | 5/21/2017 | |
0.3.5 | 1,944 | 4/1/2017 | |
0.3.5-pre | 1,577 | 1/23/2017 | |
0.3.4 | 1,936 | 1/11/2017 | |
0.3.4-pre | 1,641 | 1/11/2017 | |
0.3.3-pre | 1,621 | 1/1/2017 | |
0.3.2 | 1,970 | 11/25/2016 | |
0.3.1 | 1,934 | 9/30/2016 | |
0.3.1-pre | 1,586 | 9/30/2016 | |
0.3.0 | 1,856 | 9/8/2016 | |
0.3.0-pre | 1,574 | 9/8/2016 | |
0.2.0-pre | 1,650 | 8/31/2016 | |
0.1.7-pre2 | 1,607 | 8/18/2016 | |
0.1.7-pre | 1,624 | 8/14/2016 | |
0.1.6 | 1,874 | 8/2/2016 | |
0.1.5 | 1,904 | 6/2/2016 | |
0.1.4 | 1,891 | 3/22/2016 | |
0.1.3 | 1,863 | 3/9/2016 | |
0.1.2 | 1,817 | 3/4/2016 | |
0.1.1 | 2,155 | 2/13/2016 | |
0.0.0 | 171 | 8/12/2024 |