sketchub icon

Google Cast Screen SDK

ApsStudio
15 Likes
5 Comments
66 Downloads

What's new

Google Cast SDK PRO — unlike Sketchub projects using WebView or native phone casting (bad and limited), this uses the official Google Cast SDK for real streaming. I built it because the others simply don’t work properly.

Screenshots

About

1 ▪ Download the Dependency Use Sketchware Pro Night, latest version v6.4.0 build 5.

  1. Open Project → Libraries → “ Local Library ” → Download a dependency (same screen as in your screenshot).

  2. In the Enter a dependency field, paste exactly: Copy: com.google.android.gms:play-services-cast-framework:22.1.0

My Dexter: D8 My Java Version: 1.8 My target version SDK: 34

  1. Do not check “Skip downloading sub-dependencies” – Cast requires Google’s auxiliary modules. If Sketchware crashes while downloading the libraries, try again — it usually works after a few attempts and completes the download.

  2. Tap Download and wait for it to finish.

Permission necessary: android:name="android.permission.INTERNET" android:name="android.permission.ACCESS_NETWORK_STATE" android:name="android.permission.ACCESS_FINE_LOCATION" android:name="android.permission.NEARBY_WIFI_DEVICES"

File Java Class: CastOptionsProvider.java Download: https://www.mediafire.com/file/ff2ltahexa1pwjp/CastOptionsProvider.java/file

Note: Don’t forget the meta-data tags in the AndroidManifest.xml — they are required for it to work!

Also: If you're using an ImageView named button_cast (like I did), make sure to convert it to androidx.mediarouter.app.MediaRouteButton. You can also use a Button, LinearLayout, or other view — as long as you convert it to androidx.mediarouter.app.MediaRouteButton. This is mandatory!

©2025 Sketchub | User Policy