Skip to content

Commit

Permalink
New: Enable 360 video on desktop Safari (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiiBond authored Oct 20, 2017
1 parent 43422e4 commit 62a67f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/viewers/box3d/video360/Video360Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const VIDEO_FORMATS = [
'qt',
'wmv'
];
const BROWSERS_SUPPORTED = ['Chrome', 'Edge', 'Firefox', 'Opera'];
const BROWSERS_SUPPORTED = ['Chrome', 'Edge', 'Firefox', 'Opera', 'Safari'];

const VIEWERS = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('lib/viewers/box3d/video360/Video360Loader', () => {

it('should throw an error if browser is not supported', () => {
sandbox.stub(Browser, 'hasWebGL').returns(true);
sandbox.stub(Browser, 'getName').returns('Safari'); // Safari is not supported
sandbox.stub(Browser, 'getName').returns('IE11');
expect(() => Video360Loader.determineViewer(file)).to.throw(Error, /support preview for 360-degree videos/);
});

Expand Down

0 comments on commit 62a67f9

Please sign in to comment.