Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
set use-credentials by default for video textures (fixes #1576)
  • Loading branch information
ngokevin committed Jul 1, 2016
commit a995cdde7ff50e3e72d3b02ec23e278a81539815
4 changes: 2 additions & 2 deletions src/systems/material.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function createVideoEl (src, width, height) {
videoEl.setAttribute('webkit-playsinline', ''); // Support inline videos for iOS webviews.
videoEl.autoplay = true;
videoEl.loop = true;
videoEl.crossOrigin = true;
videoEl.crossOrigin = 'use-credentials';
videoEl.addEventListener('error', function () {
warn('`$s` is not a valid video', src);
}, true);
Expand Down Expand Up @@ -304,7 +304,7 @@ function fixVideoAttributes (videoEl) {
if (videoEl.getAttribute('preload') === 'false') {
videoEl.preload = 'none';
}
videoEl.crossOrigin = true;
videoEl.crossOrigin = videoEl.crossOrigin || 'use-credentials';
// To support inline videos in iOS webviews.
videoEl.setAttribute('webkit-playsinline', '');
return videoEl;
Expand Down