Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

Media popup fixes #53

Merged
merged 2 commits into from
Oct 30, 2016
Merged

Media popup fixes #53

merged 2 commits into from
Oct 30, 2016

Conversation

MrStevns
Copy link
Contributor

Twitters in addition to mp4 and hls m3u8, had a third video container I didn't know about, mpd, so that's been added now. I also noticed that the video.autoplay would never be played if the container was hls, so that's been fixed too.

Also fixed hls media not playing because the play function would only
be called from the else statement, which it never enters when the media
is hls.
@@ -55,14 +55,23 @@ function resizeMedia(media) {
}

ipcRenderer.once('load-media', (event, mediaUrl, mediaType) => {
if (mediaType !== "video/mp4" && mediaType !== "application/x-mpegURL"){
if (mediaType !== "video/mp4" && mediaType !== "application/x-mpegURL" && mediaType !== "application/dash+xml"){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put a space before { like other places.

Copy link
Contributor Author

@MrStevns MrStevns Oct 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arhh damn it.. I totally missed that one >_>

@k0kubun k0kubun merged commit c770381 into k0kubun:master Oct 30, 2016
@k0kubun
Copy link
Owner

k0kubun commented Oct 30, 2016

Working fine. Released as v1.5.1.

@MrStevns MrStevns deleted the media-popup-fixes branch November 3, 2016 22:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants