From 2125ebf893717bd101003594a249118fcdd458b8 Mon Sep 17 00:00:00 2001 From: gianlucaparadise Date: Wed, 17 Nov 2021 08:28:18 +0100 Subject: [PATCH] RemoteMediaClient created demo receiver --- Makefile | 5 +- .../CastOptionsProvider.kt | 2 +- example/ios/Runner/AppDelegate.swift | 2 +- receiver/CNAME | 1 + receiver/index.html | 59 +++++++++++++++++++ 5 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 receiver/CNAME create mode 100644 receiver/index.html diff --git a/Makefile b/Makefile index 622a72c..67844f9 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,7 @@ pigeon: # Generates the typesafe bridge between host and flutter --objc_header_out ios/Classes/PlatformBridgeApis.h \ --objc_source_out ios/Classes/PlatformBridgeApis.m \ --java_out ./android/src/main/java/com/gianlucaparadise/flutter_cast_framework/PlatformBridgeApis.java \ - --java_package "com.gianlucaparadise.flutter_cast_framework" \ No newline at end of file + --java_package "com.gianlucaparadise.flutter_cast_framework" + +deploy-receiver: + surge receiver \ No newline at end of file diff --git a/example/android/app/src/main/kotlin/com/gianlucaparadise/flutter_cast_framework_example/CastOptionsProvider.kt b/example/android/app/src/main/kotlin/com/gianlucaparadise/flutter_cast_framework_example/CastOptionsProvider.kt index 6b9170e..11ec2a1 100644 --- a/example/android/app/src/main/kotlin/com/gianlucaparadise/flutter_cast_framework_example/CastOptionsProvider.kt +++ b/example/android/app/src/main/kotlin/com/gianlucaparadise/flutter_cast_framework_example/CastOptionsProvider.kt @@ -9,7 +9,7 @@ import com.google.android.gms.cast.framework.SessionProvider class CastOptionsProvider : OptionsProvider { override fun getCastOptions(context: Context): CastOptions { return CastOptions.Builder() - .setReceiverApplicationId("4F8B3483") + .setReceiverApplicationId("D6760CCD") .build() } diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 21d592c..260bd5b 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -4,7 +4,7 @@ import GoogleCast @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate, GCKLoggerDelegate { - let kReceiverAppID = "4F8B3483" + let kReceiverAppID = "D6760CCD" let kDebugLoggingEnabled = true override func application( diff --git a/receiver/CNAME b/receiver/CNAME new file mode 100644 index 0000000..532b491 --- /dev/null +++ b/receiver/CNAME @@ -0,0 +1 @@ +flutter-cast-framework-demo.surge.sh diff --git a/receiver/index.html b/receiver/index.html new file mode 100644 index 0000000..68bd2a5 --- /dev/null +++ b/receiver/index.html @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + \ No newline at end of file