All Projects → cycjimmy → h5-video-player

cycjimmy / h5-video-player

Licence: MIT license
Browser full-screen H5 video player.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects

Projects that are alternatives of or similar to h5-video-player

Postcss Viewport Height Correction
PostCSS plugin to solve the popular problem when 100vh doesn’t fit the mobile browser screen.
Stars: ✭ 137 (+878.57%)
Mutual labels:  fullscreen
taro-tax
taro版个税小程序
Stars: ✭ 12 (-14.29%)
Mutual labels:  h5
fullscreen-card
Make your Home Assistant browser fullscreen with one tap.
Stars: ✭ 23 (+64.29%)
Mutual labels:  fullscreen
React Intense
A React component for viewing large images up close 🔍
Stars: ✭ 152 (+985.71%)
Mutual labels:  fullscreen
SwiftyBase
SwiftyBase - A Swift library for Create Project in iOS ( Base Project)
Stars: ✭ 33 (+135.71%)
Mutual labels:  fullscreen
tefact
🏭 (Beta) 轻量级无代码/低代码 H5、表单编辑器。Lightweight no-code/low-code editor for website、H5 page and Form. Build your page without code!
Stars: ✭ 244 (+1642.86%)
Mutual labels:  h5
Vue Fullpage.js
Official Vue.js wrapper for fullPage.js http://alvarotrigo.com/vue-fullpage/
Stars: ✭ 1,626 (+11514.29%)
Mutual labels:  fullscreen
LibQtScreen
Qt library for making directx and opengl screenshots.
Stars: ✭ 43 (+207.14%)
Mutual labels:  fullscreen
fullscreenizer
Source Code of Fullscreenizer
Stars: ✭ 56 (+300%)
Mutual labels:  fullscreen
chrome-extension-aspectratio219
🖥️ Fit the screen properly in fullscreen mode on monitor ultrawide with 21:9 aspect ratio (Netflix, Youtube, PrimeVideo, Crunchyroll)
Stars: ✭ 28 (+100%)
Mutual labels:  fullscreen
Glsl Godrays
This module implements a volumetric light scattering effect(godrays)
Stars: ✭ 155 (+1007.14%)
Mutual labels:  fullscreen
mobileweb
webpack 5 + postcss 8 构建移动端网站架子
Stars: ✭ 23 (+64.29%)
Mutual labels:  h5
mall4cloud
⭐️⭐️⭐️ Springcloud商城 O2O商城 小程序商城 PC商城 H5商城 APP商城 Java商城 分销商城 多用户商城 uniapp商城 微服务商城
Stars: ✭ 3,915 (+27864.29%)
Mutual labels:  h5
Yjplay
一个支持自定义UI布局,流式API, 加密,直播 ,亮度,音量,快进等手势 ,广告视频预览,多种加载模式 ,多种分辨率切换 ,多种封面图, 自定义数据源,列表播放,倍数播放,边播变缓存<font color="red">不是使用AndroidVideoCache</font>,离线播放,神奇的播放器
Stars: ✭ 1,700 (+12042.86%)
Mutual labels:  fullscreen
npy2bdv
Fast writing of numpy 3d-arrays into HDF5 Fiji/BigDataViewer files.
Stars: ✭ 25 (+78.57%)
Mutual labels:  h5
Angular Fullpage
Official Angular wrapper for fullPage.js https://alvarotrigo.com/angular-fullpage/
Stars: ✭ 131 (+835.71%)
Mutual labels:  fullscreen
ezdmb
A dead-simple digital menu board display and configuration, written in Python.
Stars: ✭ 17 (+21.43%)
Mutual labels:  fullscreen
editor-ovo
A rich text editor for mobile web. Mixed editing of photos and Emoji 一个适用于移动web的富文本编辑器。照片加emoji的混合编辑
Stars: ✭ 29 (+107.14%)
Mutual labels:  h5
nsplayer
A web player with shakaplayer & hls.js both supported
Stars: ✭ 23 (+64.29%)
Mutual labels:  fullscreen
vue-h5-template
H5 开发的 vue 项目快速启动模板
Stars: ✭ 23 (+64.29%)
Mutual labels:  h5

H5 Video Player

libraries dependency status libraries sourcerank Coverage Status Release date rollup semantic-release jest npm license

  • Browser full screen H5 video player. (Demo)
  • h5-video-player has been renamed to @cycjimmy/h5-video-player for scoped NPM package.

Install

NPM version NPM bundle size npm download

$ npm install @cycjimmy/h5-video-player --save
# or
$ yarn add @cycjimmy/h5-video-player

Use

import H5VideoPlayer from '@cycjimmy/h5-video-player';
# OR
const H5VideoPlayer = require('@cycjimmy/h5-video-player');
const videoPlayer = new H5VideoPlayer(source, [, options]);
videoPlayer.load();
  • source: Video source allows three types

    • [String]: Video url. E.g: 'video.mp4'
    • [Object]: Video url and type. E.g: {url: 'video.mp4', type:'mp4'}
    • [Array]: E.g: [{url: 'video.mp4', type:'mp4'},{},...]
  • options

    • context: [Element|String] Context Wrapper Element. Default 'body'.
    • control: [Boolean] Whether the user can control. Default false.
    • autoPlay: [Boolean] Whether to play immediately after loading. Default false.
    • autoClose: [Boolean] Whether to close immediately when the video played off. Default true.
    • preload: [Boolean] Whether to preload the video. Default true.
    • orientation: [String] landscape / portrait. Default 'portrait'.
    • aspectRatio: [Number] Set video aspect ratio. Default 9 / 16(when orientation is portrait) or 16 / 9(when orientation is landscape).
    • disableRotation: [Boolean] Whether to prohibit automatic rotation. Default false.
    • picMode: [Boolean] picture mode (no playButton). Default false.
    • fixAndroidWechatContinue: [Boolean] Whether compatible with Wechat(Android) play after Forced to pause. Default false.
    • hooks: [Object] The hook function
      • play: [Function] The hook function when the video play.
      • pause: [Function] The hook function when the video pause.
      • stop: [Function] The hook function when the video stop.
  • function

    • load(): init video
    • play(): video play
    • pause(): video pause

Use in browser

<div id="videoWrapper"></div>
<script src="h5-video-player.umd.min.js"></script>
<script>
  const source = 'media/video.mp4';
  const video = new H5VideoPlayer(source, {
    context: '#videoWrapper',
    [...options]
  }).load();
</script>

CDN

jsdelivr

To use via a CDN include this in your HTML:

<script src="https://cdn.jsdelivr.net/npm/@cycjimmy/h5-video-player@3/dist/h5-video-player.umd.min.js"></script>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].