chromecast - What do I put as cast.receiver.RemoteMedia.NAMESPACE? -


on receiver examples see cast.receiver.remotemedia.namespace used. supposed replaced own name? tried using 'ramp' tried 'myownnamespace' , 'ramp','myown' , of brackets around them. time change cast.receiver.remotemedia.namespace code stops working. below code talking about:

    var receiver = new cast.receiver.receiver(         'your_app_id_here',          [cast.receiver.remotemedia.namespace],         "",         5);     var remotemedia = new cast.receiver.remotemedia();     remotemedia.addchannelfactory(         receiver.createchannelfactory(cast.receiver.remotemedia.namespace)); 

i tried found on document, didn't work either.

var receiver = new cast.receiver.receiver('myappid', ['ramp', 'other']);  var ramphandler = new cast.receiver.remotemedia(); ramphandler.addchannelfactory(receiver.createchannelfactory('ramp'));  var channelhandler = new cast.receiver.channelhandler('other'); channelhandler.addchannelfactory(receiver.createchannelfactory('other')); 

so values should putting there? should android app reference values somewhere?

thanks.

the "cast.receiver.remotemedia.namespace" media playback using html5 video tag. channel use ramp protocol media controls. cast sdk provides utility classes manage media channel (see mediaprotocolmessagestream, mediaprotocolcommand).

if don't want play media can create own channel own namespace. @ tic-tac-toe sample app. channel prototype should declare namespace in javascript , used initialize receiver , add custom channel handler.

if app plays media should have change 'your_app_id_here' in receiver , use same app id in android code start session.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -