Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kivy-garden/garden.desktopvideoplayer
https://github.com/kivy-garden/garden.desktopvideoplayer
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kivy-garden/garden.desktopvideoplayer
- Owner: kivy-garden
- License: mit
- Created: 2015-05-19T16:20:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-28T12:59:37.000Z (almost 8 years ago)
- Last Synced: 2023-03-30T18:25:50.722Z (over 1 year ago)
- Language: Python
- Size: 7.18 MB
- Stars: 10
- Watchers: 15
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DesktopVideoPlayer
Alternative video player designed to work well with desktop applications.
![Minimal implementation of DesktopVideoPlayer](https://raw.githubusercontent.com/kivy-garden/garden.desktopvideoplayer/master/doc/simple_player.png)
## Features
- Based on the default [uix.video](http://kivy.org/docs/api-kivy.uix.video.html) component
- Controls (including volume) show on mouse hover
- Togglable time label with elapsed/remaining times
- Play/pause on mouse click or space bar pressed
- Context menu on right mouse click
- (planned) `ffmpeg` integration to capture screenshots
- (planned) Detailed information about the video
- Precise jump to location set by hh:mm:ss
- (planned) Bubble showing when hovering over the progress bar
- (planned) Simple playlist functionality## Installation
Install from [Kivy garden](http://kivy-garden.github.io/) with:
garden install desktopvideoplayer
## Demo
Package contains minimal demo project. You can run it from installed kivy garden package directory:
kivy examples/simple_player.py
## UsageDesktopVideoPlayer behaves just like the default video player (work in progress).
```python
import kivy
from kivy.app import App
from kivy.lang import Builder
kivy.require('1.9.0')from kivy.garden.desktopvideoplayer import DesktopVideoPlayer
kv = """
DesktopVideoPlayer:
source: "path/to/my/video"
"""class SimplePlayerApp(App):
def build(self):
return Builder.load_string(kv)if __name__ == '__main__':
SimplePlayerApp().run()
```# Tests
Testing FFmpeg wrapper:
```kivy tests/test_ffmpeg_cli.py```
# License
DesktopVideoPlayer is licensed under MIT license.
Video used in the `simple_player.py` example app and on the screenshot is from [Construct GTC Teaser Trailer](https://www.youtube.com/watch?v=8JItUtHwKiE).
Icons used in this player are based on [http://www.freebiesgallery.com/video-player-psd/](http://www.freebiesgallery.com/video-player-psd/).