android - Add title and subtitle to Chromecast loading screen with cwac-mediarouter? -
i working android chromecast app , since want have default actionbar rather using android support v7 actionbar used cwac-mediarouter.
the problem i'm facing right unable add title , subtitle chromecast default loading screen. when trying mediarouter-v7 able add title using mediametadata , mediainfo classes.
mediametadata mediametadata = new mediametadata(mediametadata.media_type_movie); mediametadata.putstring(mediametadata.key_title, getstring(r.string.loading)); mediametadata.putstring(mediametadata.key_album_title, getstring(r.string.app_name)); mediainfo mediainfo = new mediainfo.builder(getstring(r.string.video_url)) .setcontenttype(getstring(r.string.content_type_mp4)) .setstreamtype(mediainfo.stream_type_buffered) .setmetadata(mediametadata) .build(); try { mremotemediaplayer.load(mapiclient, mediainfo, true) .setresultcallback(new resultcallback<remotemediaplayer.mediachannelresult>() { @override public void onresult(remotemediaplayer.mediachannelresult mediachannelresult) { if (mediachannelresult.getstatus().issuccess()) { mvideoisloaded = true; //todo pause video on device } } }); } catch (exception e) { e.printstacktrace(); log.e(getpackagename(), "startvideo ex : " + e.getmessage()); }
i have tried add bundle data remoteplaybackclient play method in both bundle type params failed. can me on adding title chromecast loading screen?
Comments
Post a Comment