-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support startLoad and stopLoad as required in Chimeejs/chimee#70
- Loading branch information
1 parent
cbb9a54
commit f8c577c
Showing
14 changed files
with
333 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
import base from './rollup.config.base'; | ||
import base, { banner } from './rollup.config.base'; | ||
import serve from 'rollup-plugin-serve'; | ||
import livereload from 'rollup-plugin-livereload'; | ||
import replace from 'rollup-plugin-replace'; | ||
import { camelize } from 'toxic-utils'; | ||
const { name } = require('../package.json'); | ||
|
||
const config = base('iife'); | ||
config.plugins.push( | ||
serve({ | ||
open: false, | ||
verbose: true, | ||
contentBase: '', | ||
historyApiFallback: false, | ||
host: 'localhost', | ||
}), | ||
serve(), | ||
livereload() | ||
); | ||
config.plugins.unshift(replace({ | ||
'process.env.NODE_ENV': '"development"', | ||
})); | ||
export default Object.assign(config, { | ||
output: { | ||
format: 'iife', | ||
banner, | ||
format: 'umd', | ||
file: 'lib/index.dev.js', | ||
name: camelize(name, true), | ||
}, | ||
name: camelize(name, true), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
html, body { | ||
width: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
html { | ||
background-color: #FFFBE6; | ||
font-family: "Oswald", "HelveticaNeue-CondensedBold", "Arial Narrow", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; | ||
background-repeat: no-repeat; | ||
min-height: 100%; | ||
} | ||
body { | ||
padding: 10px; | ||
box-sizing: border-box; | ||
color: #36384A; | ||
max-width: 800px; | ||
margin: auto; | ||
} | ||
#wrapper { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
container { | ||
position: relative; | ||
display: block; | ||
/* width: 100%; | ||
height: 100%; */ | ||
} | ||
video { | ||
/* width: 100%; | ||
height: 100%; */ | ||
display: block; | ||
background-color: #000; | ||
} | ||
video:focus, | ||
video:active { | ||
outline: none; | ||
} | ||
button { | ||
color: #fff; | ||
background-color: #3F4F68; | ||
padding: 6px 12px; | ||
text-decoration: none; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
border-radius: 4px; | ||
text-transform: none; | ||
outline: none; | ||
border: none; | ||
margin-bottom: 2px; | ||
} | ||
h1 { | ||
color: #9D295A; | ||
} | ||
button:active { | ||
background-color: #36384A; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Native test demo</title> | ||
<meta charset="utf-8"> | ||
<meta name="description" content="Chimee Player Demo"> | ||
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1"> | ||
<meta name="mobile-web-app-capable" content="yes"> | ||
<link rel="stylesheet" type="text/css" href="./index.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Native Demo</h1> | ||
</header> | ||
<video id="player" controls="controls" width="800" height="500" muted></video> | ||
</body> | ||
<script type="text/javascript" src="../../lib/index.min.js"></script> | ||
<script type="text/javascript" src="../base.js"></script> | ||
<script type="text/javascript"> | ||
// mp4 http://cdn.toxicjohann.com/lostStar.mp4 | ||
// hls http://yunxianchang.live.ujne7.com/vod-system-bj/44_176_20170224113626af3a75cd-3508-4bc3-b51f-366fca3c7e39.m3u8 | ||
// flv直播 http://pf.live.360vcloud.net/live_customers3/6818c55761856069a0ce | ||
// flv直播 http://flv.jia.360.cn/live_jia_public/_LC_RE_non_3605375765815007736131516144_BX.flv | ||
// flv点播 http://yunxianchang.live.ujne7.com/vod-system-bj/TL1ce1196bce348070bfeef2116efbdea6.flv | ||
// flv点播 http://yunxianchang.live.ujne7.com/vod-system-bj/TL2791e64b69ea0bea234c284c694986aa.flv | ||
window.kernelConfig = { | ||
src: 'http://cdn.toxicjohann.com/lostStar.mp4', | ||
box: 'native', | ||
isLive: false, | ||
}; | ||
window.start(); | ||
</script> | ||
</html> |
Oops, something went wrong.