GithubHelp home page GithubHelp logo

liran-funaro / remember-last-position-totem-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yauhen-l/remember-last-position-totem-plugin

0.0 3.0 1.0 26 KB

Totem video player plugin that starts a video at the playback position that it was last paused.

License: GNU General Public License v3.0

Python 100.00%

remember-last-position-totem-plugin's Introduction

Remember Last Position Totem Plugin

Remember last position (Totem Plugin) starts a video at the playback position that it was last paused. In addition, it supports automatically starting the last video, at the last playback position, once Totem starts.

Installation

Download the content of this repository to ~/.local/share/totem/plugins/remember-last-position-totem-plugin. Or clone the repository to the plugins folder:

cd ~/.local/share/totem/plugins
git clone https://github.com/fonaro/remember-last-position-totem-plugin.git

Finally, enable the plugin in the "Preferences->General->Plugins..." menu.

How it works

During video playback, the plugin stores the current video time offset, along with its file path, in remember-last-position.pydata inside the plugin folder.

Later, when this file will be opened, the playback will continue from the last playback position, even if Totem was closed.

If load-on-start feature is enabled (disabled by default), the plugin will start playing the last played video once Totem starts. The playback will start only after 5 seconds (default).

WARNING! Not tested on web-sources.

Tuning

It is possible to tune the plugin parameters via the configuration file: remember-last-position.conf.

  • load-on-start: Explained above (true or false).
  • load-on-start-delay: The time to wait for the video to start (seconds).
  • history-length: How many files will be stored (integer).
  • update-interval: Update the video playback position on interval (seconds).

Special Thanks:

Thanks to Asanka's Weblog for quick start: http://asanka-abeyweera.blogspot.com/2012/03/writing-plugins-for-totem-movie-player.html

remember-last-position-totem-plugin's People

Contributors

liran-funaro avatar yauhen-l avatar

Watchers

 avatar  avatar  avatar

Forkers

milanogc

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.