I find it hard to get a mpeg-dash sample for the correct game using cast-android-sample .
It is easily reproduced by adding a dash pattern to the MediaAdapter: addVideos () method . Here are 3 well-known MPEG-DASH samples that we used to make it work:
mVideos.add(new CastMedia("Car MPEG-DASH Video", "http://yt-dash-mse-test.commondatastorage.googleapis.com/car-20120827-manifest.mpd")); mVideos.add(new CastMedia("Simple MPEG-DASH Video", "http://download.tsi.telecom-paristech.fr/gpac/DASH_CONFORMANCE/TelecomParisTech/mpeg2-simple/mpeg2-simple-mpd.mpd")); mVideos.add(new CastMedia("MPEG-DASH Sample", "http://www.digitalprimates.net/dash/streams/gpac/mp4-main-multi-mpd-AV-NBS.mpd"));
Attempting to reproduce this generates an error of this form in logcat:
18147-18147/com.example.castsample E/MediaProtocolMessageStream: error parsing message: {"type":"RESPONSE","cmd_id":24,"status":{"error":{"domain":"ramp","code":-2},"event_sequence":6499}} org.json.JSONException: No value for state
Please note that the mp4 listed in the demo really works - so I know that I have code for casting-android-sample in general. In addition, I tried to place files - and by controlling access logs, I know that mpd is being extracted and that the media referenced by mpd never accesses the device.
Is there anything else that needs to be done to play MPEG-DASH media files with Chromecast? Can someone provide a working example from this code base?
source share