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
55986fa3
authored
2014-04-17 15:25:34 -0400
by
David LaPalomento
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #48 from videojs/readmecredentials
add section in README re:withCredentials
2 parents
c64d4a02
8ae48fb6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
README.md
README.md
View file @
55986fa
...
...
@@ -49,6 +49,24 @@ support for:
-
Segment codecs _other than_ H.264 with AAC audio
-
Internet Explorer < 10
### Plugin Options
You may pass in an options object to the hls plugin upon initialization. This
object may contain one of the following properties:
#### withCredentials
Type:
`boolean`
When the
`withCredentials`
property is set to
`true`
, all XHR requests for
manifests and segments would have
`withCredentials`
set to
`true`
as well. This
enables storing and passing cookies from the server that the manifests and
segments live on. This has some implications on CORS because when set, the
`Access-Control-Allow-Origin`
header cannot be set to
`*`
, also, the response
headers require the addition of
`Access-Control-Allow-Credentials`
header which
is set to
`true`
.
See
[
html5rocks's article
](
http://www.html5rocks.com/en/tutorials/cors/
)
for more info
### Runtime Properties
#### player.hls.master
Type:
`object`
...
...
Please
register
or
sign in
to post a comment