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
23063508
authored
2015-12-11 18:57:55 -0500
by
jrivera
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix tests
All seek-to-live type tests require setting readyState now
1 parent
d57b213a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
test/videojs-hls_test.js
test/videojs-hls_test.js
View file @
2306350
...
...
@@ -335,6 +335,8 @@ test('autoplay seeks to the live point after playlist load', function() {
type
:
'application/vnd.apple.mpegurl'
});
openMediaSource
(
player
);
player
.
tech_
.
readyState
=
3
;
player
.
tech_
.
trigger
(
'play'
);
standardXHRResponse
(
requests
.
shift
());
clock
.
tick
(
1
);
...
...
@@ -355,6 +357,8 @@ test('autoplay seeks to the live point after media source open', function() {
clock
.
tick
(
1
);
standardXHRResponse
(
requests
.
shift
());
openMediaSource
(
player
);
player
.
tech_
.
readyState
=
3
;
player
.
tech_
.
trigger
(
'play'
);
clock
.
tick
(
1
);
notEqual
(
currentTime
,
0
,
'seeked on autoplay'
);
...
...
@@ -406,6 +410,7 @@ test('calls `remove` on sourceBuffer to when loading a live segment', function()
player
.
tech_
.
hls
.
playlists
.
trigger
(
'loadedmetadata'
);
player
.
tech_
.
trigger
(
'canplay'
);
player
.
tech_
.
paused
=
function
()
{
return
false
;
};
player
.
tech_
.
readyState
=
3
;
player
.
tech_
.
trigger
(
'play'
);
clock
.
tick
(
1
);
...
...
@@ -1683,6 +1688,7 @@ test('live playlist starts three target durations before live', function() {
equal
(
requests
.
length
,
0
,
'no outstanding segment request'
);
player
.
tech_
.
paused
=
function
()
{
return
false
;
};
player
.
tech_
.
readyState
=
3
;
player
.
tech_
.
trigger
(
'play'
);
clock
.
tick
(
1
);
mediaPlaylist
=
player
.
tech_
.
hls
.
playlists
.
media
();
...
...
@@ -1703,6 +1709,7 @@ test('live playlist starts with correct currentTime value', function() {
player
.
tech_
.
hls
.
playlists
.
trigger
(
'loadedmetadata'
);
player
.
tech_
.
paused
=
function
()
{
return
false
;
};
player
.
tech_
.
readyState
=
3
;
player
.
tech_
.
trigger
(
'play'
);
clock
.
tick
(
1
);
...
...
Please
register
or
sign in
to post a comment