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
fdd6c7b8
authored
2014-01-08 09:56:26 -0800
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
formatting fixes
1 parent
edfc0e02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
fdd6c7b
...
...
@@ -120,19 +120,14 @@ var
};
player
.
hls
.
selectSegmentByTime
=
function
(
time
)
{
if
(
player
.
hls
.
media
&&
player
.
hls
.
media
.
segments
)
{
var
index
,
currentSegment
;
for
(
index
=
0
;
index
<
player
.
hls
.
media
.
segments
.
length
;
index
++
)
{
if
(
player
.
hls
.
media
&&
player
.
hls
.
media
.
segments
)
{
for
(
index
=
0
;
index
<
player
.
hls
.
media
.
segments
.
length
;
index
++
)
{
currentSegment
=
player
.
hls
.
media
.
segments
[
index
];
if
(
time
>
currentSegment
.
timeRange
.
start
&&
time
<=
currentSegment
.
timeRange
.
end
)
{
if
(
time
>
currentSegment
.
timeRange
.
start
&&
time
<=
currentSegment
.
timeRange
.
end
)
{
return
index
;
}
}
}
};
...
...
Please
register
or
sign in
to post a comment