diff --git a/player/videojs.coffee b/player/videojs.coffee
index 5e99339e..8c5ac3c2 100644
--- a/player/videojs.coffee
+++ b/player/videojs.coffee
@@ -47,9 +47,16 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player
loadPlayer: (data) ->
waitUntilDefined(window, 'videojs', =>
+ attrs =
+ width: '100%'
+ height: '100%'
+
+ if @mediaType == 'cm' and data.meta.textTracks
+ attrs.crossorigin = 'anonymous'
+
video = $('')
.addClass('video-js vjs-default-skin embed-responsive-item')
- .attr(width: '100%', height: '100%')
+ .attr(attrs)
removeOld(video)
@sources = sortSources(data.meta.direct)
diff --git a/www/js/player.js b/www/js/player.js
index fc4ce1c6..1ff7d554 100644
--- a/www/js/player.js
+++ b/www/js/player.js
@@ -509,11 +509,15 @@
VideoJSPlayer.prototype.loadPlayer = function(data) {
return waitUntilDefined(window, 'videojs', (function(_this) {
return function() {
- var video;
- video = $('').addClass('video-js vjs-default-skin embed-responsive-item').attr({
+ var attrs, video;
+ attrs = {
width: '100%',
height: '100%'
- });
+ };
+ if (_this.mediaType === 'cm' && data.meta.textTracks) {
+ attrs.crossorigin = 'anonymous';
+ }
+ video = $('').addClass('video-js vjs-default-skin embed-responsive-item').attr(attrs);
removeOld(video);
_this.sources = sortSources(data.meta.direct);
if (_this.sources.length === 0) {