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
b8087029
authored
2014-06-23 15:13:53 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Don't die if we seek past highest PTS value we have tags for
1 parent
ebeb9647
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
src/h264-stream.js
src/videojs-hls.js
src/h264-stream.js
View file @
b808702
...
...
@@ -302,6 +302,7 @@
h264Frame
.
endNalUnit
();
this
.
tags
.
push
(
h264Frame
);
}
h264Frame
=
null
;
...
...
@@ -427,7 +428,9 @@
// We did not find any start codes. Try again next packet
state
=
1
;
h264Frame
.
writeBytes
(
data
,
start
,
length
);
if
(
h264Frame
)
{
h264Frame
.
writeBytes
(
data
,
start
,
length
);
}
return
;
case
3
:
// The next byte is the first byte of a NAL Unit
...
...
src/videojs-hls.js
View file @
b808702
...
...
@@ -406,12 +406,15 @@ var
(
function
()
{
var
tag
=
segmentParser
.
getTags
()[
0
];
for
(;
tag
.
pts
<
offset
;
tag
=
segmentParser
.
getTags
()[
0
])
{
for
(;
tag
&&
tag
.
pts
<
offset
;
tag
=
segmentParser
.
getTags
()[
0
])
{
segmentParser
.
getNextTag
();
}
// tell the SWF where we will be seeking to
player
.
hls
.
el
().
vjs_setProperty
(
'currentTime'
,
tag
.
pts
*
0.001
);
if
(
tag
)
{
player
.
hls
.
el
().
vjs_setProperty
(
'currentTime'
,
tag
.
pts
*
0.001
);
}
lastSeekedTime
=
null
;
})();
}
...
...
Please
register
or
sign in
to post a comment