Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a2a34318
authored
2016-02-01 11:47:34 -0500
by
brandonocasey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixing directory creation for test/data and steam inclusion typo in stub.js
1 parent
c27f999c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
scripts/manifest-data.js
src/stub.js
scripts/manifest-data.js
View file @
a2a3431
var
fs
=
require
(
'fs'
);
var
path
=
require
(
'path'
);
var
shelljs
=
require
(
'shelljs'
);
var
basePath
=
path
.
resolve
(
__dirname
+
'/
..'
);
var
testDataDir
=
basePath
+
'/test/data'
;
var
manifestDir
=
basePath
+
'/utils/manifest'
;
var
manifestFilepath
=
testDataDir
+
'/manifests.js'
;
var
expectedFilepath
=
testDataDir
+
'/expected.js'
;
var
basePath
=
path
.
resolve
(
__dirname
,
'
..'
);
var
testDataDir
=
path
.
join
(
basePath
,
'test'
,
'data'
)
;
var
manifestDir
=
path
.
join
(
basePath
,
'utils'
,
'manifest'
)
;
var
manifestFilepath
=
path
.
join
(
testDataDir
,
'manifests.js'
)
;
var
expectedFilepath
=
path
.
join
(
testDataDir
,
'expected.js'
)
;
var
build
=
function
()
{
var
manifests
=
'export default {\n'
;
var
expected
=
'export default {\n'
;
shelljs
.
mkdir
(
'-p'
,
testDataDir
);
var
files
=
fs
.
readdirSync
(
manifestDir
);
while
(
files
.
length
>
0
)
{
var
file
=
path
.
resolve
(
manifestDir
,
files
.
shift
());
...
...
src/stub.js
View file @
a2a3431
import
m3u8
from
'./m3u8'
;
import
Stream
from
'./
S
tream'
;
import
Stream
from
'./
s
tream'
;
import
videojs
from
'video.js'
;
if
(
typeof
window
.
videojs
.
Hls
===
'undefined'
)
{
...
...
Please
register
or
sign in
to post a comment