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
6f5f4a98
authored
2014-04-07 13:51:03 -0700
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
use tech.vjs_setProp versus supportsNative for tech detection
1 parent
e0fe1387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
6f5f4a9
...
...
@@ -389,12 +389,9 @@ var
// update the duration
player
.
duration
(
totalDuration
(
playlist
));
// tell the flash tech of the new duration
if
(
!
videojs
.
hls
.
supportsNativeHls
)
{
try
{
player
.
el
().
querySelector
(
'.vjs-tech'
).
vjs_setProperty
(
'duration'
,
player
.
duration
());
}
catch
(
err
)
{
}
var
tech
=
player
.
el
().
querySelector
(
'.vjs-tech'
);
if
(
tech
.
vjs_setProperty
)
{
tech
.
vjs_setProperty
(
'duration'
,
player
.
duration
());
}
// manually fire the duration change
player
.
trigger
(
'durationchange'
);
...
...
Please
register
or
sign in
to post a comment