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
2dea3ba0
authored
2014-01-08 11:24:57 -0800
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix for try catch on Flash element
1 parent
b6773f6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
2dea3ba
...
...
@@ -109,8 +109,6 @@ var
return
1
;
// HAVE_METADATA
};
if
(
player
.
ha
===
"Flash"
)
{
player
.
currentTime
=
function
(
value
)
{
if
(
value
)
{
try
{
...
...
@@ -128,7 +126,6 @@ var
}
}
};
}
player
.
hls
.
selectSegmentByTime
=
function
(
time
)
{
var
index
,
currentSegment
;
...
...
@@ -245,14 +242,12 @@ var
// update the duration
player
.
duration
(
parser
.
manifest
.
totalDuration
);
// Notify the flash layer
if
(
player
.
ha
===
"Flash"
)
{
try
{
player
.
el
().
getElementsByClassName
(
'vjs-tech'
)[
0
].
vjs_setProperty
(
'duration'
,
parser
.
manifest
.
totalDuration
);
}
catch
(
err
)
{
}
}
}
player
.
trigger
(
'loadedmanifest'
);
player
.
trigger
(
'loadedmetadata'
);
return
;
...
...
Please
register
or
sign in
to post a comment