{"action":"created","issue":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/52","repository_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Cordova-Plugin","labels_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/52/comments","events_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/52/events","html_url":"https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/52","id":157348297,"number":52,"title":"Chromecast + Cordova - problem with playing movie","user":{"login":"jasmin89","id":1462770,"avatar_url":"https://avatars.githubusercontent.com/u/1462770?v=3","gravatar_id":"","url":"https://api.github.com/users/jasmin89","html_url":"https://github.com/jasmin89","followers_url":"https://api.github.com/users/jasmin89/followers","following_url":"https://api.github.com/users/jasmin89/following{/other_user}","gists_url":"https://api.github.com/users/jasmin89/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmin89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmin89/subscriptions","organizations_url":"https://api.github.com/users/jasmin89/orgs","repos_url":"https://api.github.com/users/jasmin89/repos","events_url":"https://api.github.com/users/jasmin89/events{/privacy}","received_events_url":"https://api.github.com/users/jasmin89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-28T17:16:02Z","updated_at":"2016-11-15T23:49:54Z","closed_at":null,"body":"Hi, I am trying to run ConnectSDK in Cordova. I can connect with my Chromecast device, but when I try to call device.getMediaPlayer().playMedia((\"http://media.w3.org/2010/05/sintel/trailer.mp4\", \"video/mp4\");, I get error:\n\ncom.connectsdk.cordova.JSCommandDispatcher$DispatcherException: Exception calling playMedia: java.lang.NullPointerException: Attempt to invoke interface method 'void com.connectsdk.service.capability.MediaPlayer.playMedia(com.connectsdk.core.MediaInfo, boolean, com.connectsdk.service.capability.MediaPlayer$LaunchListener)' on a null object reference\n\nDo you know how to resolve this problem?\n\nCordova: 6.1.1\nPlugins:\ncordova-plugin-compat 1.0.0 \"Compat\"\ncordova-plugin-connectsdk 1.6.0 \"Connect SDK\"\ncordova-plugin-dialogs 1.2.1 \"Notification\"\ncordova-plugin-file 4.2.0 \"File\"\ncordova-plugin-file-transfer 1.5.1 \"File Transfer\"\ncordova-plugin-whitelist 1.2.2 \"Whitelist\"\ncordova-plugin-x-toast 2.5.1 \"Toast\"\n"},"comment":{"url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/comments/260808253","html_url":"https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/52#issuecomment-260808253","issue_url":"https://api.github.com/repos/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/52","id":260808253,"user":{"login":"JRogaishio","id":3596964,"avatar_url":"https://avatars.githubusercontent.com/u/3596964?v=3","gravatar_id":"","url":"https://api.github.com/users/JRogaishio","html_url":"https://github.com/JRogaishio","followers_url":"https://api.github.com/users/JRogaishio/followers","following_url":"https://api.github.com/users/JRogaishio/following{/other_user}","gists_url":"https://api.github.com/users/JRogaishio/gists{/gist_id}","starred_url":"https://api.github.com/users/JRogaishio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JRogaishio/subscriptions","organizations_url":"https://api.github.com/users/JRogaishio/orgs","repos_url":"https://api.github.com/users/JRogaishio/repos","events_url":"https://api.github.com/users/JRogaishio/events{/privacy}","received_events_url":"https://api.github.com/users/JRogaishio/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T23:49:54Z","updated_at":"2016-11-15T23:49:54Z","body":"@jasmin89 Thank you so much for your solution. I've been pulling my hair out for the last hour wondering why the service would only work *sometimes*."}}
{"actor":{"display_login":"JRogaishio"}}