Git Product home page Git Product logo

wadsworth-for-iina's Introduction

UPDATE

This has been deprecated, as this functionality is possible natively in IINA (which offers several improvements over this approach). This repository is archived for reference and learning purposes, only.

Wadsworth for IINA

Jump around the timeline using keyboard shortcuts

Forked from Wadsworth for VLC

On YouTube, pressing 0-9 will jump you to a percentage of the timeline (e.g. pressing 3 will jump to 30% of the way through the video). In an effort to recreate this functionality, this is a set of scripts that enable jumping to a specific percentage location of the timeline in the IINA video player for macOS. You can use other tools (like System Preferences or Alfred) to assign keyboard shortcuts to each script and thereby replicate this functionality. An AppleScript is also included to create these shortcuts for you in System Preferences.

INSTALLATION STEPS:

The easiest way to install is to use the included Automator Services to bring this functionality to IINA, and then use the keyboard shortcut AppleScript to automatically add keyboard shortcuts in System Preferences. Alternatively, there are also AppleScripts available that perform the same functions as the Automator Services, should you have a use for them.

1. Install the Automator Services

INSTRUCTIONS:

  1. Copy the Automator scripts from here into the user's Library > Services folder (~/Library/Services)
  2. Double click on one of the newly copied Automator scripts (this causes the scripts to appear in the Services menu)
  3. The scripts can now be found inside the IINA > Services menu

KNOWN ISSUES:

  • In order to jump to a new point on the timeline, IINA requires that the mouse cursor moves over the playback window to make the playhead visible. This script works around this by moving the mouse cursor over the window for a split second. If a user is moving their mouse while triggering the shortcut, it's possible for the mouse to miss the window. This will cause a spike in CPU usage until the mouse cursor enters the playback window.

2. Create Keyboard Shortcuts

This is an AppleScript which creates keyboard shortcuts. This is not required—you can choose to create your own keyboard shortcuts, or none at all (?), but this creates them for you automatically.

INSTRUCTIONS:

  1. Run the Create Keyboard Shortcuts AppleScript
  2. The script will ask you to grant Script Editor permissions to Assistive Services
  3. After granting permissions in System Preferences > Security & Privacy > Privacy > Accessibility, run the script again
  4. The script will now create shortcuts for stops on the timeline from 0-90%
  5. After this, you can now jump to any point of the timeline by pressing Command+Option and a number (e.g. 3 for 30%)

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.