Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media playlist error in Safari #199

Open
sarahjeansweeney opened this issue Apr 26, 2018 · 1 comment
Open

Media playlist error in Safari #199

sarahjeansweeney opened this issue Apr 26, 2018 · 1 comment

Comments

@sarahjeansweeney
Copy link
Collaborator

The media playlist exhibit tool appears not to be working in Safari.

If you visit the http://whatsnewpodcast.org site in Safari, you'll notice the most recent episode has an error ("Error loading playlist: No playable sources found") and the play icon is replaced with an error icon:

2018-04-26_0857

The same video works in Firefox and Chrome. There are other videos on the page that do work in Safari – these were embedded using the Single Item exhibit tool, not the playlist tool, which leads me to believe this is an issue with the playlist exhibit tool and/or Safari, not Wowza or JW Player:

2018-04-26_0859

It's possible these two issues aren't related, but I think it's worth meantioning that there is another issue with Safari not displaying captions: NEU-Libraries/cerberus#1161

@patrickmj patrickmj transferred this issue from another repository Aug 9, 2019
@amclark42
Copy link

amclark42 commented Nov 14, 2024

Archives found that the Lower Roxbury Black History Project has this problem today. Confounding the issue, the video on this page works, but the video on the landing page does not.

The problem only occurs in Safari, and appears to be due to (A) special-casing the way JW Player works in Safari, and (B) a source URL set to an empty string.

I did some poking in the Safari developer tools and found this:

jwplayer("drs-item-video-neu-m039sg68p").on("ready", function() {
         if (is_safari){
           //defaulting to m3u8 stream for safari since it functions better
           jwplayer("drs-item-video-neu-m039sg68p").load([{image: "https://repository.library.northeastern.edu/downloads/neu:m039sg70q?datastream_id=thumbnail_5", 
             sources:[{ file: ""}]}]);
// [ indentation added so the problem is visible without scrolling ]

The listed source of this video is not a URL but an empty string.

Here's the code that introduces the Safari-specific conditional.

I'm guessing the Safari-specific conditional arose because of some issue like the one reported in this issue. If so, the workaround reported in that issue might be of help.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants