code: function fixUpMediaElement (mediaEl) {
    // Cross-origin.
    var newMediaEl = setCrossOrigin(mediaEl);
  
    // Plays inline for mobile.
    if (newMediaEl.tagName && newMediaEl.tagName.toLowerCase() === 'video') {
      newMediaEl.setAttribute('playsinline', '');
      newMediaEl.setAttribute('webkit-playsinline', '');
    }
  
    if (newMediaEl !== mediaEl) {
      mediaEl.parentNode.appendChild(newMediaEl);
      mediaEl.parentNode.removeChild(mediaEl);
    }
    return newMediaEl;
  }
docs: Automatically add attributes to media elements where convenient.
  crossorigin, playsinline.