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
64547ed3
authored
2014-03-14 16:13:30 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add responseType option to xhr helper
1 parent
d18e7c0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
64547ed
...
...
@@ -111,6 +111,7 @@ var
options
=
{
method
:
'GET'
},
responseType
,
request
;
if
(
typeof
callback
!==
'function'
)
{
...
...
@@ -120,9 +121,14 @@ var
if
(
typeof
url
===
'object'
)
{
options
=
videojs
.
util
.
mergeOptions
(
options
,
url
);
url
=
options
.
url
;
responseType
=
options
.
responseType
;
}
request
=
new
window
.
XMLHttpRequest
();
if
(
responseType
)
{
request
.
responseType
=
responseType
;
}
if
(
pluginOptions
.
withCredentials
)
{
request
.
withCredentials
=
true
;
}
...
...
Please
register
or
sign in
to post a comment