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

Enable and fix PiP for Safari #118

Merged
merged 5 commits into from
Feb 4, 2019
Merged

Enable and fix PiP for Safari #118

merged 5 commits into from
Feb 4, 2019

Conversation

anthonylavado
Copy link
Member

This enables the previously commented out lines that would enable Picture in Picture support for Safari.
Also fixed IF condition to match the Apple developer reccomendation: https://developer.apple.com/documentation/webkitjs/adding_picture_in_picture_to_your_safari_media_controls

Fixes #101.

This enables the previously commented out lines that would enable Picture in Picture support for Safari.
Also fixed IF condition to match the Apple developer reccomendation: https://developer.apple.com/documentation/webkitjs/adding_picture_in_picture_to_your_safari_media_controls
@anthonylavado
Copy link
Member Author

Tested working in Safari Version 12.0.3 (14606.4.5) on macOS Mojave 10.14.3 (18D42).

Adds my name to the list, and fixes the broken links for the other users before me.
This puts the IF condition for detecting Chrome PiP support into the same line as the one that sets it up for Safari. I tested it in both browsers, as well as Firefox. In browsers where PiP is supported, they each respond to their own call and not the other (Safari only responds to the Webkit check, Chrome only responds to the document check). Firefox currently supports neither standard, so there's no issue there.
Co-Authored-By: anthonylavado <anthonylavado@users.noreply.github.com>
Copy link
Contributor

@JustAMan JustAMan left a comment

Choose a reason for hiding this comment

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

LGTM

Remove extra newline

Co-Authored-By: anthonylavado <anthonylavado@users.noreply.github.com>
@JustAMan JustAMan merged commit 884c264 into jellyfin:master Feb 4, 2019
@anthonylavado anthonylavado deleted the fix-safari-pip branch February 4, 2019 17:18
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

Successfully merging this pull request may close these issues.

Picture-in-picture support on macOS
4 participants