Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Galpittel committed Dec 31, 2024
1 parent cd65555 commit 3348964
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gallery/src/components/item/videos/videoItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ class VideoItem extends React.Component {
isHLSVideo() {
return (
this.props.videoUrl &&
(this.props.videoUrl.includes('/hls') ||
this.props.videoUrl.includes('.m3u8'))
(this.props.videoUrl.toLowerCase().includes('/hls') ||
this.props.videoUrl.toLowerCase().includes('.m3u8'))
);
}

Expand Down Expand Up @@ -179,7 +179,7 @@ class VideoItem extends React.Component {
muted: !this.props.options.videoSound,
preload: 'metadata',
style: getStyle(isCrop, isWiderThenContainer),
type: 'video/mp4',
type: utils.isiOS() ? 'application/x-mpegURL' : 'video/mp4', // Specify correct MIME type for iOS
};

if (shouldCreateVideoPlaceholder(this.props.options)) {
Expand Down

0 comments on commit 3348964

Please sign in to comment.