Profile cover photo
Profile photo
Adam Miller
28 followers
28 followers
About
Adam's posts

Is there a recommended way to only include the cast api sender javascript file on the chrome browser? It seems to crash and throw an error on MS edge.

Post has attachment
With Chrome 52 when cast became an integrated plugin, there is now a requirement that the cast initiates from a click event. This is difficult for us as we have typically sent the user to a dedicated page which starts the cast and/or made an AJAX call to get some additional data to send to our receiver application. Are there any workarounds for this, or any chance it will change in the future?
Bug: https://code.google.com/p/google-cast-sdk/issues/detail?can=2&start=0&num=100&q=30703944&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=895


Post has attachment
Is it possible to detect an optional method binding in an angular 1.5 component? See the plunker below for an example. I'd like the button to hide if the method is not passed in.

http://plnkr.co/edit/gRT6Rk?p=options

Post has attachment
Doing nothing is the wrong answer
The following is not something I copied.   These are my opinions written at 4am because
the safety of my children is something that keeps me up at night. Our nation has a few large problems, mental health, school
security, and gun violence.   The
combinatio...

Post has attachment
jQuery event namespacing
jsfiddle var obj = $({});
function log(evt, obj, src){
$('#log').append(obj +':' + evt.type + '.' + evt.namespace + ' ' + src + '\n');
}

obj.on('billing.save', function(evt, obj){
log(evt, obj, 'save base');
});

obj.on('billing.cancel', function(e...

Post has attachment
Is there a code sample for updateLicenseRequestInfo?  I'm attempting to use it to avoid making a second license request when changing audio tracks, but it's not quite working.

//don't try to get a new license, just keep the one we've got
var license = mediaHost.processLicense;

mediaHost.updateLicenseRequestInfo = function(requestInfo) {
    requestInfo.skipRequest = true;
    requestInfo.setResponse(license);
};

https://developers.google.com/cast/docs/reference/player/cast.player.api.Host#updateLicenseRequestInfo

Post has attachment
Grunt-JSDoc prevent output of source code
By default JSDoc will include your source code in the resulting documentation.  To prevent this from happening when using grunt-jsdoc you'll have to create an external configuration file: gruntfile: build: {
options: {
destination: '<%= path %>/...

Post has attachment
Browserify and Grunt using jQuery from a CDN
Below is a sample configuration in which jQuery, backbone, and underscore are all referenced externally so that they are not included in the browserify bundle. Notice also that there is a transform for underscore templates in the grunt config. The resulti...

Post has attachment
When using google chrome as the sender, if the user uses the plugin to mute or unmute media, an event is not triggered for the current media session update listener (pressing play or pause from the plugin will trigger the event).  Also the volume.muted property is always false, even when the audio is in fact muted.  The volume.level property is always 1 even if the volume is set to 50%.

https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.Media

I'm developing a custom media receiver.  When my html sender calls editTracksInfo to change a track, I handle the event in my receiver and successfully change the audio track following the provided examples.  However after this occurs my sender no longer receives the updateListener events.  The last status update that the receiver gets is the IDLE event during reload.  Do I need to rebind the listener somehow?
Wait while more posts are being loaded