Skip to content

Commit

Permalink
fix: show quicktime videos using mp4
Browse files Browse the repository at this point in the history
closes #133
  • Loading branch information
juancarlosfarah committed Jul 16, 2019
1 parent 29e1b66 commit 1c59c04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/phase/Phase.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import PhaseItems from './PhaseItems';
const styles = {
containerStyle: {
flex: 1,
paddingBottom: '2rem',
},
};

Expand Down
6 changes: 6 additions & 0 deletions src/components/phase/PhaseVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const PhaseVideo = ({ url, asset, name, mimeType, folder }) => {
}
}

// assign quicktime videos to mp4
if (mimeType === 'video/quicktime') {
// eslint-disable-next-line no-param-reassign
mimeType = 'video/mp4';
}

return (
<video title={name} className="Video" controls>
<source src={uri} type={mimeType} />
Expand Down

0 comments on commit 1c59c04

Please sign in to comment.