Giter VIP home page Giter VIP logo

Comments (7)

ungoldman avatar ungoldman commented on May 14, 2024

Hmm so we should make sure to stop powerSaverBlocker when the window closes, right?

from webtorrent-desktop.

feross avatar feross commented on May 14, 2024

No, closing the window is already causing a pause.

I meant closing the video player and returning to the torrent list view.

from webtorrent-desktop.

ungoldman avatar ungoldman commented on May 14, 2024

Oh really? I thought I was seeing the video-paused event fire in a console.log when I was testing earlier. Will take a look.

from webtorrent-desktop.

ungoldman avatar ungoldman commented on May 14, 2024

Okay I can repro, sorry I missed that one. I guess another ipcRenderer.send from closePlayer() in index.js would do the trick though it doesn't feel super clean.

from webtorrent-desktop.

ungoldman avatar ungoldman commented on May 14, 2024

I think it would make sense to store video playback position when leaving the player in the future so it makes sense to group some actions around that event. For now that's attached to the back event so I'll just add something in that context.

from webtorrent-desktop.

feross avatar feross commented on May 14, 2024

I think we should try to keep the main process unaware of the player state.
If the renderer wants to disable power saving mode, it should just send an
event that does that. That's how most of the events except for the play and
pause ones already work.

On Fri, 11 Mar 2016 at 17:16 Nate Goldman [email protected] wrote:

I think it would make sense to store video playback position when leaving
the player in the future so it makes sense to group some actions around
that event. For now that's attached to the back event so I'll just add
something in that context.


Reply to this email directly or view it on GitHub
#141 (comment)
.

from webtorrent-desktop.

ungoldman avatar ungoldman commented on May 14, 2024

#142 should fix this issue, also moves powerSaveBlocker logic into renderer.

from webtorrent-desktop.

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.