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
7c12a63a
authored
2014-04-07 13:41:54 -0700
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add try/catch. fix tests
1 parent
f8399322
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
7c12a63
...
...
@@ -390,7 +390,11 @@ var
player
.
duration
(
totalDuration
(
playlist
));
// tell the flash tech of the new duration
if
(
!
videojs
.
hls
.
supportsNativeHls
)
{
player
.
el
().
querySelector
(
'.vjs-tech'
).
vjs_setProperty
(
'duration'
,
player
.
duration
());
try
{
player
.
el
().
querySelector
(
'.vjs-tech'
).
vjs_setProperty
(
'duration'
,
player
.
duration
());
}
catch
(
err
)
{
}
}
// manually fire the duration change
player
.
trigger
(
'durationchange'
);
...
...
Please
register
or
sign in
to post a comment