Sharpcaster 1.2.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Sharpcaster --version 1.2.4
NuGet\Install-Package Sharpcaster -Version 1.2.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sharpcaster" Version="1.2.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sharpcaster" Version="1.2.4" />
<PackageReference Include="Sharpcaster" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sharpcaster --version 1.2.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sharpcaster, 1.2.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sharpcaster@1.2.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sharpcaster&version=1.2.4
#tool nuget:?package=Sharpcaster&version=1.2.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SharpCaster
Currently Supported Platforms
SharpCaster is Chromecast C# SDK any platform support .net standard 2.0.
The nuget package 
https://nuget.org/packages/SharpCaster/
PM> Install-Package SharpCaster
Getting started
Finding chromecast devices from network
IChromecastLocator locator = new MdnsChromecastLocator();
var source = new CancellationTokenSource(TimeSpan.FromMilliseconds(1500));
var chromecasts = await locator.FindReceiversAsync(source.Token);
Connecting to chromecast device, launch application and load media
var chromecast = chromecasts.First();
var client = new ChromecastClient();
await client.ConnectChromecast(chromecast);
_ = await client.LaunchApplicationAsync("B3419EF5");
var media = new Media
{
ContentUrl = "https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/mp4/DesigningForGoogleCast.mp4"
};
_ = await client.MediaChannel.LoadAsync(media);
SharpCaster Demo
Adding support for custom chromecast channels
- In Chrome, go to
chrome://net-export/
- Select 'Include raw bytes (will include cookies and credentials)'
- Click 'Start Logging to Disk'
- Open a new tab, browse to your favorite application on the web that has Chromecast support and start casting.
- Go back to the tab that is capturing events and click on stop.
- Open https://netlog-viewer.appspot.com/ and select your event log file.
- Browse to https://netlog-viewer.appspot.com/#events&q=type:SOCKET, and find the socket that has familiar JSON data.
- Go through the results and collect the JSON that is exchanged.
- Now you can create a new class that inherits from ChromecastChannel and implement the logic to send and receive messages.
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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Google.Protobuf (>= 3.29.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Newtonsoft.Json (>= 13.0.3)
- 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 | 183 | 8/29/2025 | |
2.0.3 | 363 | 7/19/2025 | |
2.0.2 | 240 | 7/19/2025 | |
2.0.1 | 160 | 7/17/2025 | |
2.0.0 | 162 | 7/9/2025 | |
2.0.0-beta1 | 1,437 | 12/27/2024 | |
1.2.4 | 167 | 7/9/2025 | |
1.2.3 | 490 | 12/3/2024 | |
1.2.2 | 312 | 8/30/2024 | |
1.2.1 | 209 | 8/12/2024 | |
1.2.1-alpha | 137 | 8/12/2024 | |
1.2.0 | 199 | 7/21/2024 | |
1.1.18 | 176 | 7/20/2024 | |
1.1.17 | 152 | 7/18/2024 | |
1.1.16 | 147 | 7/18/2024 | |
1.1.15 | 147 | 7/18/2024 | |
1.1.14 | 151 | 7/16/2024 | |
1.1.3 | 181 | 7/15/2024 | |
1.1.2 | 160 | 7/8/2024 | |
1.1.1 | 162 | 7/3/2024 | |
1.1.0 | 140 | 7/3/2024 | |
1.0.8 | 1,869 | 2/27/2023 | |
1.0.7 | 850 | 2/27/2023 | |
1.0.6 | 900 | 2/8/2023 | |
1.0.5 | 1,553 | 5/2/2022 | |
1.0.4 | 1,280 | 3/29/2022 | |
1.0.3 | 1,309 | 2/18/2022 | |
1.0.0 | 1,229 | 2/12/2022 | |
0.4.0 | 7,686 | 5/21/2017 | |
0.4.0-pre | 1,618 | 5/21/2017 | |
0.3.5 | 1,956 | 4/1/2017 | |
0.3.5-pre | 1,588 | 1/23/2017 | |
0.3.4 | 1,950 | 1/11/2017 | |
0.3.4-pre | 1,652 | 1/11/2017 | |
0.3.3-pre | 1,631 | 1/1/2017 | |
0.3.2 | 1,981 | 11/25/2016 | |
0.3.1 | 1,947 | 9/30/2016 | |
0.3.1-pre | 1,598 | 9/30/2016 | |
0.3.0 | 1,866 | 9/8/2016 | |
0.3.0-pre | 1,584 | 9/8/2016 | |
0.2.0-pre | 1,660 | 8/31/2016 | |
0.1.7-pre2 | 1,618 | 8/18/2016 | |
0.1.7-pre | 1,634 | 8/14/2016 | |
0.1.6 | 1,884 | 8/2/2016 | |
0.1.5 | 1,914 | 6/2/2016 | |
0.1.4 | 1,901 | 3/22/2016 | |
0.1.3 | 1,874 | 3/9/2016 | |
0.1.2 | 1,827 | 3/4/2016 | |
0.1.1 | 2,171 | 2/13/2016 | |
0.0.0 | 179 | 8/12/2024 |