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
a6071b56
authored
2015-08-25 16:54:53 -0400
by
David LaPalomento
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Media playlist 404s are network errors
Re-enable the test for media playlist 404s.
1 parent
8fdc9a07
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
test/videojs-hls_test.js
test/videojs-hls_test.js
View file @
a6071b5
...
...
@@ -1769,11 +1769,7 @@ test('does not modify the media index for in-buffer seeking', function() {
equal
(
requests
.
length
,
1
,
'did not abort the outstanding request'
);
});
QUnit
.
skip
(
'playlist 404 should trigger MEDIA_ERR_NETWORK'
,
function
()
{
var
errorTriggered
=
false
;
player
.
on
(
'error'
,
function
()
{
errorTriggered
=
true
;
});
test
(
'playlist 404 should end stream with a network error'
,
function
()
{
player
.
src
({
src
:
'manifest/media.m3u8'
,
type
:
'application/vnd.apple.mpegurl'
...
...
@@ -1781,13 +1777,7 @@ QUnit.skip('playlist 404 should trigger MEDIA_ERR_NETWORK', function() {
openMediaSource
(
player
);
requests
.
pop
().
respond
(
404
);
equal
(
errorTriggered
,
true
,
'Missing Playlist error event should trigger'
);
equal
(
player
.
error
().
code
,
2
,
'Player error code should be set to MediaError.MEDIA_ERR_NETWORK'
);
ok
(
player
.
error
().
message
,
'included an error message'
);
equal
(
player
.
tech
.
hls
.
mediaSource
.
error_
,
'network'
,
'set a network error'
);
});
test
(
'segment 404 should trigger MEDIA_ERR_NETWORK'
,
function
()
{
...
...
Please
register
or
sign in
to post a comment