Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Sep 21, 2018
1 parent 16161a2 commit 8b52a9e
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 26 deletions.
19 changes: 1 addition & 18 deletions src/extensions/uv-av-extension/dependencies.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
define(function () {
// https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Live_streaming_web_audio_and_video
// Dash is supported everywhere except safari
// function isSafari() {
// // https://stackoverflow.com/questions/7944460/detect-safari-browser?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
// var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
// console.log('isSafari', isSafari);
// return isSafari;
// }
function isFormatAvailable(formats, format) {
var isAvailable = formats.includes(format);
//console.log('isFormatAvailable', format, isAvailable);
return isAvailable;
}
function isHLSFormatAvailable(formats) {
Expand All @@ -19,18 +10,11 @@ define(function () {
return isFormatAvailable(formats, 'application/dash+xml');
}
function canPlayHls() {
var doc = typeof document === 'object' && document, videoelem = doc && doc.createElement('video'), isvideosupport = Boolean(videoelem && videoelem.canPlayType),
// HLS manifests can go by many mime-types
canPlay = [
// Apple santioned
var doc = typeof document === 'object' && document, videoelem = doc && doc.createElement('video'), isvideosupport = Boolean(videoelem && videoelem.canPlayType), canPlay = [
'application/vnd.apple.mpegurl',
// Apple sanctioned for backwards compatibility
'audio/mpegurl',
// Very common
'audio/x-mpegurl',
// Very common
'application/x-mpegurl',
// Included for completeness
'video/x-mpegurl',
'video/mpegurl',
'application/mpegurl'
Expand Down Expand Up @@ -61,4 +45,3 @@ define(function () {
}
};
});
//# sourceMappingURL=dependencies.js.map
1 change: 0 additions & 1 deletion src/extensions/uv-default-extension/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ define(function () {
};
};
});
//# sourceMappingURL=dependencies.js.map
1 change: 0 additions & 1 deletion src/extensions/uv-mediaelement-extension/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ define(function () {
};
};
});
//# sourceMappingURL=dependencies.js.map
1 change: 0 additions & 1 deletion src/extensions/uv-pdf-extension/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ define(function () {
};
};
});
//# sourceMappingURL=dependencies.js.map
1 change: 0 additions & 1 deletion src/extensions/uv-seadragon-extension/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ define(function () {
};
};
});
//# sourceMappingURL=dependencies.js.map
3 changes: 0 additions & 3 deletions src/extensions/uv-virtex-extension/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ define(function () {
return {
sync: ['three.min'],
async: ['VRControls', 'VREffect', 'stats.min', 'OBJLoader', 'MTLLoader', 'PLYLoader', 'GLTFLoader', 'Detector', 'WebVR', 'virtex', 'iiif-metadata-component']
// sync: ['three.min', 'draco_decoder'],
// async: ['VRControls', 'VREffect', 'stats.min', 'DRACOLoader', 'GLTFLoader', 'OBJLoader', 'MTLLoader', 'Detector', 'WebVR', 'virtex', 'iiif-metadata-component']
};
};
});
//# sourceMappingURL=dependencies.js.map

0 comments on commit 8b52a9e

Please sign in to comment.