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
72b55580
authored
2014-04-03 10:40:30 -0700
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
notify flash tech of duration change for UI ramifications
1 parent
07c7021e
Hide 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 @
72b5558
...
...
@@ -408,6 +408,12 @@ var
// update the duration
player
.
duration
(
totalDuration
(
player
.
hls
.
media
));
// tell the flash tech of the new duration
if
(
player
.
el
().
querySelector
(
'.vjs-tech'
).
id
===
'video_flash_api'
)
{
player
.
el
().
querySelector
(
'.vjs-tech'
).
vjs_setProperty
(
'duration'
,
player
.
duration
());
}
// manually fire the duration change
player
.
trigger
(
'durationchange'
);
}
};
...
...
Please
register
or
sign in
to post a comment