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
e95cfe5a
authored
2013-10-24 14:27:04 -0700
by
David LaPalomento
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix whitespace
All files should use 2-space indenting.
1 parent
eda08662
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
4 deletions
example.html
src/hls-playback-controller.js
src/m3u8/m3u8-parser.js
src/m3u8/m3u8-tag-types.js
src/m3u8/m3u8.js
src/manifest-controller.js
src/segment-controller.js
test/manifest/playlistM3U8data.js
test/video-js-hls_test.js
example.html
View file @
e95cfe5
...
...
@@ -52,7 +52,7 @@
videojs
.
options
.
flash
.
swf
=
'node_modules/videojs-media-sources/video-js-with-mse.swf'
;
video
=
videojs
(
'video'
,{},
function
(){
this
.
playbackController
=
new
window
.
videojs
.
hls
.
HLSPlaybackController
(
this
);
this
.
playbackController
.
loadManifest
(
"http://localhost:7070/test/basic-playback/zencoder/gogo/manifest.m3u8"
,
function
(
data
){
console
.
log
(
data
)});
this
.
playbackController
.
loadManifest
(
'http://localhost:7070/test/basic-playback/zencoder/gogo/manifest.m3u8'
,
function
(
data
){
console
.
log
(
data
)});
});
</script>
...
...
src/hls-playback-controller.js
View file @
e95cfe5
src/m3u8/m3u8-parser.js
View file @
e95cfe5
src/m3u8/m3u8-tag-types.js
View file @
e95cfe5
window
.
videojs
.
hls
.
m3u8TagType
=
{
(
function
(
window
)
{
window
.
videojs
.
hls
.
m3u8TagType
=
{
/*
* Derived from V8: http://tools.ietf.org/html/draft-pantos-http-live-streaming-08
*/
...
...
@@ -108,4 +109,5 @@ window.videojs.hls.m3u8TagType = {
*/
ZEN_TOTAL_DURATION
:
"#ZEN-TOTAL-DURATION:"
};
\ No newline at end of file
};
})(
this
);
...
...
src/m3u8/m3u8.js
View file @
e95cfe5
src/manifest-controller.js
View file @
e95cfe5
src/segment-controller.js
View file @
e95cfe5
test/manifest/playlistM3U8data.js
View file @
e95cfe5
test/video-js-hls_test.js
View file @
e95cfe5
...
...
@@ -144,7 +144,8 @@
};
testScriptString
=
function
(
tag
,
offset
,
expected
)
{
var
type
=
tag
.
bytes
[
offset
],
var
type
=
tag
.
bytes
[
offset
],
stringLength
=
tag
.
view
.
getUint16
(
offset
+
1
),
string
,
i
=
expected
.
length
;
...
...
Please
register
or
sign in
to post a comment