Use default media receiver application id.
This commit is contained in:
parent
bc6c733a33
commit
707875f880
3 changed files with 5 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ import android.content.Context
|
|||
import com.google.android.gms.cast.framework.CastOptions
|
||||
import com.google.android.gms.cast.framework.OptionsProvider
|
||||
import com.google.android.gms.cast.framework.SessionProvider
|
||||
|
||||
import com.google.android.gms.cast.CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
|
||||
|
||||
/**
|
||||
* This is here to be used as an example
|
||||
|
|
@ -14,7 +14,7 @@ class DefaultCastOptionsProvider : OptionsProvider {
|
|||
|
||||
override fun getCastOptions(context: Context): CastOptions {
|
||||
return CastOptions.Builder()
|
||||
.setReceiverApplicationId("4F8B3483")
|
||||
.setReceiverApplicationId(DEFAULT_MEDIA_RECEIVER_APPLICATION_ID)
|
||||
.build()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ import android.content.Context
|
|||
import com.google.android.gms.cast.framework.CastOptions
|
||||
import com.google.android.gms.cast.framework.OptionsProvider
|
||||
import com.google.android.gms.cast.framework.SessionProvider
|
||||
|
||||
import com.google.android.gms.cast.CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
|
||||
|
||||
class CastOptionsProvider : OptionsProvider {
|
||||
override fun getCastOptions(context: Context): CastOptions {
|
||||
return CastOptions.Builder()
|
||||
.setReceiverApplicationId("D6760CCD")
|
||||
.setReceiverApplicationId(DEFAULT_MEDIA_RECEIVER_APPLICATION_ID)
|
||||
.build()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import GoogleCast
|
|||
|
||||
@UIApplicationMain
|
||||
@objc class AppDelegate: FlutterAppDelegate, GCKLoggerDelegate {
|
||||
let kReceiverAppID = "D6760CCD"
|
||||
let kReceiverAppID = kGCKDefaultMediaReceiverApplicationID
|
||||
let kDebugLoggingEnabled = true
|
||||
|
||||
override func application(
|
||||
|
|
|
|||
Loading…
Reference in a new issue