{"action":"created","issue":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/242","labels_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/242/comments","events_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/242/events","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/242","id":113238112,"number":242,"title":"Feature request : Add support for Audio Metadata","user":{"login":"charly1811","id":6469928,"avatar_url":"https://avatars.githubusercontent.com/u/6469928?v=3","gravatar_id":"","url":"https://api.github.com/users/charly1811","html_url":"https://github.com/charly1811","followers_url":"https://api.github.com/users/charly1811/followers","following_url":"https://api.github.com/users/charly1811/following{/other_user}","gists_url":"https://api.github.com/users/charly1811/gists{/gist_id}","starred_url":"https://api.github.com/users/charly1811/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charly1811/subscriptions","organizations_url":"https://api.github.com/users/charly1811/orgs","repos_url":"https://api.github.com/users/charly1811/repos","events_url":"https://api.github.com/users/charly1811/events{/privacy}","received_events_url":"https://api.github.com/users/charly1811/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-25T17:19:37Z","updated_at":"2015-10-30T00:14:25Z","closed_at":"2015-10-30T00:14:25Z","body":"```VideoCastManager``` can be used for Video casting but also audio casting. \r\nEven though it is possible to specify the content type when passing a media to ```VideoCastManager```, some metadata could not be displayed on the Cast device because of the Media Type sent to the Cast device. \r\n\r\nFor example let's consider the following media:\r\nTiTLE=MY AUDIO\r\nURL=http://my/audio/url.mp3\r\nARTIST=ME\r\nALBUM=MY SONGS\r\n\r\neven tough the media will be played as a song (because of content type ```audio/mp3```) the metadata ARTIST and ALBUM will not be displayed on the Cast device, because the url was sent to the cast device with the MediaType MediaMetadata.MEDIA_TYPE_MOVIE\r\n\r\nThat's why It could be a good idea to extend the ```Utils.bundleToMediaInfo()``` method:\r\n\r\n* The Bundle passed to it could contain a value with the following key ```VideoCastManager.EXTRA_MEDIA_TYPE``` and the method will use it as media type. If the Bundle does not contains this key it will use the default value (```MediaMetadata.MEDIA_TYPE_MOVIE```) instead\r\n\r\n* ```Utils.bundleToMediaInfo()``` could also extract audio specific metadata from the bundle if the media type is ```MediaMetadata.MEDIA_TYPE_MUSIC_TRACK```\r\n"},"comment":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/comments/152362630","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/242#issuecomment-152362630","issue_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/242","id":152362630,"user":{"login":"naddaf","id":355366,"avatar_url":"https://avatars.githubusercontent.com/u/355366?v=3","gravatar_id":"","url":"https://api.github.com/users/naddaf","html_url":"https://github.com/naddaf","followers_url":"https://api.github.com/users/naddaf/followers","following_url":"https://api.github.com/users/naddaf/following{/other_user}","gists_url":"https://api.github.com/users/naddaf/gists{/gist_id}","starred_url":"https://api.github.com/users/naddaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naddaf/subscriptions","organizations_url":"https://api.github.com/users/naddaf/orgs","repos_url":"https://api.github.com/users/naddaf/repos","events_url":"https://api.github.com/users/naddaf/events{/privacy}","received_events_url":"https://api.github.com/users/naddaf/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T00:14:25Z","updated_at":"2015-10-30T00:14:25Z","body":"Added the following in v2.6:\r\n- MediaType\r\n- Album Title\r\n- Album Artist\r\n- Composer\r\n- Release Date\r\n"}}