2016-12-02 6 views
1

で終了し、私は非常に基本的な、概念実証のキャストアプリケーションを構築しようとしていますし、私のキャストセッションは、エラーコード2005 APPLICATION_NOT_RUNNINGのために終了し続けます。デフォルトのメディアレシーバーのアプリケーションIDの作品を使用してキャストセッションは、エラーコード2005

。セッションはうまく接続してコンテンツを再生します。

12-02 11:51:12.458 19515-8203/? I/CastService: [instance-65] onApplicationConnected: com.company.app applicationId: 80F9586X, name: Company, images.count: 0, namespaces.count: 4, senderAppIdentifier: null, senderAppLaunchUrl: null Flipgrid 8c487445-82cc-4801-8c5d-8084cfacb4dd true 
12-02 11:51:12.489 19068-19068/com.company.app W/CastActivity: onSessionStarted 
12-02 11:51:12.563 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] calling Listener.onConnected(true) 
12-02 11:51:12.608 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE) 
12-02 11:51:12.620 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE) 
12-02 11:51:12.627 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] finishDisconnecting; socketError="0 No error", mDisconnectStatusCode=SUCCESS 
12-02 11:51:12.627 19515-8203/? I/CastDeviceController: [controller-0291 RCNController] listener.onDisconnected(SUCCESS) 
12-02 11:51:13.159 946-1701/? D/ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [WIFI() - 142] 
12-02 11:51:13.588 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] calling Listener.onConnected(true) 
12-02 11:51:13.629 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE) 
12-02 11:51:13.643 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] joinApplicationInternal: appId:80F9586X sessionId: joinOptions:joinOptions(connectionType=INVISIBLE) 
12-02 11:51:13.652 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] finishDisconnecting; socketError="0 No error", mDisconnectStatusCode=SUCCESS 
12-02 11:51:13.652 19515-8203/? I/CastDeviceController: [controller-0292 RCNController] listener.onDisconnected(SUCCESS) 
12-02 11:51:15.068 377-1305/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback speaker 
12-02 11:51:15.072 377-1305/? D/audio_hw_primary: disable_snd_device: snd_device(2: speaker) 
12-02 11:51:17.590 19515-8203/? I/CastDeviceController: [controller-0289 API] listener.onApplicationDisconnected(APPLICATION_NOT_RUNNING) 
12-02 11:51:17.593 19515-8203/? I/CastService: [instance-65] onApplicationDisconnected: com.company.app 8c487445-82cc-4801-8c5d-8084cfacb4dd APPLICATION_NOT_RUNNING 
12-02 11:51:17.596 19068-19068/com.company.app E/AudioAttributes: Invalid stream type -1 for AudioAttributes` 
12-02 11:51:17.696 19068-19068/com.company.app W/CastActivity: onSessionEnded error=2005 APPLICATION_NOT_RUNNING 

任意のアイデアをあるかもしれないものによう:

しかし、GoogleのキャストSDKデベロッパーコンソールを介したリモートディスプレイレシーバとして登録アプリのIDと、キャストセッションがログに示すように、起動後に突然終了しますエラー?

答えて

2

あなたはメディアを再生し、(ケースのようです)RemoteDisplayを行っていない場合は、あなたはスタイル付きレシーバ、デフォルトの受信機や独自のカスタム受信機を使用する必要がありますどちらか。リモートディスプレイ受信機は、リモートディスプレイAPI用です(これは、テレビ上で送信側のアプリからの表示を可能にします)。通常のキャストアプリケーションでは表示されません。