{"action":"created","issue":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/247","labels_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/247/comments","events_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/247/events","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/247","id":117848470,"number":247,"title":"Metadata of RemoteMediaPlayer's MediaInfo is null","user":{"login":"velvetk","id":2879871,"avatar_url":"https://avatars.githubusercontent.com/u/2879871?v=3","gravatar_id":"","url":"https://api.github.com/users/velvetk","html_url":"https://github.com/velvetk","followers_url":"https://api.github.com/users/velvetk/followers","following_url":"https://api.github.com/users/velvetk/following{/other_user}","gists_url":"https://api.github.com/users/velvetk/gists{/gist_id}","starred_url":"https://api.github.com/users/velvetk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velvetk/subscriptions","organizations_url":"https://api.github.com/users/velvetk/orgs","repos_url":"https://api.github.com/users/velvetk/repos","events_url":"https://api.github.com/users/velvetk/events{/privacy}","received_events_url":"https://api.github.com/users/velvetk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-19T16:17:06Z","updated_at":"2015-11-23T10:58:48Z","closed_at":"2015-11-20T20:49:51Z","body":"I am trying to integrate CCL v-2.6 with my existing app and following closely the LocalPlayerActivity.java in CastVideos-android sample. The only difference is my video screen is a fragment instead of an activity. The MediaInfo and its metadata is setup before passing to CastManager's startVideoCastControllerActivity. Somehow the metadata of RemoteMediaPlayer's mediainfo is null. I registered both my phone and Chromecast with Cast SDK Developer Console. Here is the error log I am getting. Any help would be appreciated. Thanks for your time.\r\n\r\n11-19 11:40:28.609 25258-25258/com.sample.app D/ccl_BaseCastManager: [v2.6] launchApp() is called\r\n11-19 11:40:28.609 25258-25258/com.sample.app D/ccl_BaseCastManager: [v2.6] Launching app\r\n11-19 11:40:28.688 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] onVolumeChanged() reached\r\n11-19 11:40:28.689 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] onApplicationStatusChanged() reached: \r\n11-19 11:40:28.882 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] onApplicationStatusChanged() reached: null\r\n11-19 11:40:29.386 25258-25258/com.sample.app D/ccl_BaseCastManager: [v2.6] launchApplication() -> success result\r\n11-19 11:40:29.386 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] onApplicationConnected() reached with sessionId: 0FDFAB24-764D-4605-A80F-DA3D1D3BAFD4, and mReconnectionStatus=4\r\n11-19 11:40:29.393 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] startNotificationService()\r\n11-19 11:40:29.401 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] attachMediaChannel()\r\n11-19 11:40:29.416 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] Registering MediaChannel namespace\r\n11-19 11:40:29.419 25258-25258/com.sample.app D/MediaFragment: onApplicationLaunched() is reached\r\n11-19 11:40:29.430 25258-25258/com.sample.app D/MediaFragment: onApplicationLaunched() is reached\r\n11-19 11:40:29.456 25258-25258/com.sample.app D/ccl_BaseCastManager: [v2.6] Successfully added the new BaseCastConsumer listener com.google.android.libraries.cast.companionlibrary.notification.VideoCastNotificationService$1@950f311\r\n11-19 11:40:29.456 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] Successfully added the new CastConsumer listener com.google.android.libraries.cast.companionlibrary.notification.VideoCastNotificationService$1@950f311\r\n11-19 11:40:29.456 25258-25258/com.sample.app D/ccl_VideoCastNotificat: [v2.6] onStartCommand\r\n11-19 11:40:29.456 25258-25258/com.sample.app D/ccl_VideoCastNotificat: [v2.6] onStartCommand(): Action: ACTION_VISIBILITY false\r\n11-19 11:40:29.456 25258-25258/com.sample.app D/ccl_VideoCastNotificat: [v2.6] onRemoteMediaPlayerStatusUpdated() reached with status: 1\r\n11-19 11:40:29.466 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] RemoteMediaPlayer::onStatusUpdated() is reached\r\n11-19 11:40:29.466 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] onRemoteMediaPlayerStatusUpdated() reached\r\n11-19 11:40:29.466 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] onQueueUpdated() reached\r\n11-19 11:40:29.466 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] Queue Items size: 0, Item: null, Repeat Mode: 0, Shuffle: false\r\n11-19 11:40:29.467 25258-25258/com.sample.app D/ccl_VideoCastManager: [v2.6] onRemoteMediaPlayerStatusUpdated(): Player status = playing\r\n11-19 11:40:29.563 25258-25258/com.sample.app D/AndroidRuntime: Shutting down VM\r\n\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime: Process: com.sample.app, PID: 25258\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.google.android.gms.cast.MediaMetadata.getImages()' on a null object reference\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.setBitmapForLockScreen(VideoCastManager.java:2267)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.updateLockScreenImage(VideoCastManager.java:2253)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.setUpMediaSession(VideoCastManager.java:2238)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.updateMediaSession(VideoCastManager.java:2329)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.onRemoteMediaPlayerStatusUpdated(VideoCastManager.java:2054)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.access$200(VideoCastManager.java:136)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager$22.onStatusUpdated(VideoCastManager.java:1791)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.gms.cast.RemoteMediaPlayer.onStatusUpdated(Unknown Source)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.gms.cast.RemoteMediaPlayer.zza(Unknown Source)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.gms.cast.RemoteMediaPlayer$1.onStatusUpdated(Unknown Source)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.gms.cast.internal.zzm.zza(Unknown Source)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.gms.cast.internal.zzm.zzbK(Unknown Source)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.gms.cast.RemoteMediaPlayer.onMessageReceived(Unknown Source)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.google.android.gms.cast.internal.zze$zzb$4.run(Unknown Source)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:148)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n11-19 11:40:29.700 25258-25258/com.sample.app E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)"},"comment":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/comments/158904527","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/247#issuecomment-158904527","issue_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/247","id":158904527,"user":{"login":"r8tin-admin","id":8995956,"avatar_url":"https://avatars.githubusercontent.com/u/8995956?v=3","gravatar_id":"","url":"https://api.github.com/users/r8tin-admin","html_url":"https://github.com/r8tin-admin","followers_url":"https://api.github.com/users/r8tin-admin/followers","following_url":"https://api.github.com/users/r8tin-admin/following{/other_user}","gists_url":"https://api.github.com/users/r8tin-admin/gists{/gist_id}","starred_url":"https://api.github.com/users/r8tin-admin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r8tin-admin/subscriptions","organizations_url":"https://api.github.com/users/r8tin-admin/orgs","repos_url":"https://api.github.com/users/r8tin-admin/repos","events_url":"https://api.github.com/users/r8tin-admin/events{/privacy}","received_events_url":"https://api.github.com/users/r8tin-admin/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T10:58:48Z","updated_at":"2015-11-23T10:58:48Z","body":"@velvetk, which app type should be registered to avoid this issue?"}}