开发者社区> 镜像站> NPM> openframe-video
openframe-video
Openframe extension which adds support for videos via omxplayer
Last updated 5 years ago by jonwohl .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install openframe-video 
SYNC missed versions from official npm registry.

Openframe Video

Build Status Coverage Status

An Openframe format extension which enables display of downloadable videos via omxplayer.

For info on developing your own extensions, see the Openframe-Extension repo.

Video settings

Videos are played using omxplayer. By default, videos will fill the screen (cropping may occur) and will loop.

Artworks can pass arguments to omxplayer using the Artwork object's config property. Probably the most useful config argument is --aspect-mode, which allows an artwork to specify how it should size itself within the display.

// an example Artwork object with config
{
    "title": "Test Video",
    "is_public": false,
    "url": "http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_2mb.mp4",
    "thumb_url": "",
    "author_name": "Test",
    "plugins": {},
    "format": "openframe-video",
    "liked": false,
    "id": "571b91b8507bfb8922c89aad",
    "ownerId": "56c4802c30eda27c7a0de423",
    "created": "2016-04-23T15:16:08.870Z",
    "modified": "2016-04-23T15:16:08.870Z",
    "config": {
        // available options for --aspect-mode are:
        // fill: (default) cover entire screen, cropping video
        // fit: contain entire video within the screen, no cropping but black boxes
        // stretch: warp the video to fill the screen
        "--aspect-mode": "fit"
    }
}

Current Tags

  • 0.2.1                                ...           latest (5 years ago)

4 Versions

  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (5)
Dependents (0)
None