GithubHelp home page GithubHelp logo

PiP support about macos-netflix HOT 11 CLOSED

jellybeansoup avatar jellybeansoup commented on August 11, 2024 1
PiP support

from macos-netflix.

Comments (11)

jellybeansoup avatar jellybeansoup commented on August 11, 2024 5

@bkniffler Having only briefly looked at the link you posted: I probably could. I wasn't aware it was a thing (because I'm only barely a macOS dev at this point; my bread and butter is iOS).

I will look into it further and see if it's something I can use.

from macos-netflix.

MaxHasADHD avatar MaxHasADHD commented on August 11, 2024 1

Would that be possible? I've tried some PiP extensions but they never work with Netflix. Unsure if Netflix wants it supported, for unknown reasons.

from macos-netflix.

jellybeansoup avatar jellybeansoup commented on August 11, 2024 1

@MaxHasADHD Only that I haven't had the opportunity to look into implementing it, as I've been swamped with other work.

from macos-netflix.

jellybeansoup avatar jellybeansoup commented on August 11, 2024

PiP is technically possible, Netflix doesnโ€™t really do anything to prevent it other than not provide a button (and disable right clicking in general).

@BenRiceM If I was able to get the appโ€™s window to float between spaces, would that satisfy your PiP needs?

from macos-netflix.

ToniWonKanobi avatar ToniWonKanobi commented on August 11, 2024

@MaxHasADHD I've tried two picture-in-picture Safari extensions/apps over the past few years. After using each extension for a while, Netflix eventually stopped working correctly sometime in the Fall of 2017.

See similar issues for PiPifier and PiedPiPer.

from macos-netflix.

jellybeansoup avatar jellybeansoup commented on August 11, 2024

@ToniWonKanobi I used PiedPiPer for a while, it's still installed on my system. Doesn't work for Netflix at all any more, and only occasionally for YouTube.

That said, I've taken to more direct developer-y work arounds: for Netflix, disabling javascript, right clicking to switch to PiP, and then quickly re-enabling javascript will work. Similarly, right clicking a YouTube video, then right clicking again while the custom menu is open will allow you to switch to PiP.

There's always a way, but futzing too much with Netflix's UI is an infinite quest. They'll inevitably change something and whatever customisation you made (like injecting a PiP button) will stop working.

from macos-netflix.

ToniWonKanobi avatar ToniWonKanobi commented on August 11, 2024

That said, I've taken to more direct developer-y work arounds: for Netflix, disabling javascript, right clicking to switch to PiP, and then quickly re-enabling javascript will work.

@jellybeansoup Toggling JavaScript!? What has this world come to ๐Ÿ˜† I do the YouTube switch thing and that works reasonably well.

There's always a way, but futzing too much with Netflix's UI is an infinite quest. They'll inevitably change something and whatever customisation you made (like injecting a PiP button) will stop working.

Tell me about it. I have a custom stylesheet in Safari, and between Netflix and YouTube, it's so difficult to try and target things with class's and id's because they're dynamically generated and stuff ๐Ÿ™„

from macos-netflix.

jellybeansoup avatar jellybeansoup commented on August 11, 2024

There's still some work to do on this before I'd consider it release-worthy, but I've started adding support for a proper PiP-style floating behaviour. This commit should allow it to float above fullscreen apps, and between spaces, but the behaviour is slightly jarring (it's not a smooth transition, just an immediate jump), and it introduces other problems (can't fullscreen).

I'll work on resolving these, and in the meantime, you can build directly from the floating-behaviour branch to get it right now (or to assist with its development).

from macos-netflix.

bkniffler avatar bkniffler commented on August 11, 2024

I'm not a MacOS/swift dev, but why can't you use the native picture in picture functionality of MacOS as used in https://github.com/avaidyam/PIP-Demo/blob/master/piptest/ViewController.swift

from macos-netflix.

MaxHasADHD avatar MaxHasADHD commented on August 11, 2024

Any update on this?

from macos-netflix.

jellybeansoup avatar jellybeansoup commented on August 11, 2024

Many months later, and I've (finally) been able to investigate potentially using the private PIPViewController class (and the various other related classes that power its behaviour). Unfortunately, the overall issue is that this class is very specifically built to accomodate video, which Is somewhat redundant for this project's needs: if I wanted to pop the videos out of the interface, I could use javascript to do so in a similar way to how some Safari extensions handle it, and it's doesn't appear possible to actually render the app itself within such a window due to its presentation requirements.

Thanks again to @bkniffler for the suggestion ๐Ÿ˜Š

I'm (slowly) continuing work on achieving the desired behaviour via a custom implementation; all the progress I make on this will be reflected in the floating-behaviour branch.

from macos-netflix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.