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
f8399322
authored
2014-04-07 13:36:57 -0700
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update to use supportsNative versus flash api id
1 parent
f9d2e1e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
f839932
...
...
@@ -389,7 +389,7 @@ var
// update the duration
player
.
duration
(
totalDuration
(
playlist
));
// tell the flash tech of the new duration
if
(
player
.
el
().
querySelector
(
'.vjs-tech'
).
id
===
'video_flash_api'
)
{
if
(
!
videojs
.
hls
.
supportsNativeHls
)
{
player
.
el
().
querySelector
(
'.vjs-tech'
).
vjs_setProperty
(
'duration'
,
player
.
duration
());
}
// manually fire the duration change
...
...
Please
register
or
sign in
to post a comment