修复rtmp点播移动时间轴相关bug

This commit is contained in:
xiongziliang
2019-09-03 17:20:56 +08:00
parent 226473a223
commit d864e7084b
3 changed files with 22 additions and 1 deletions

View File

@@ -464,6 +464,8 @@ void RtmpSession::onCmd_seek(AMFDecoder &dec) {
InfoP(this) << "rtmp seekTo(ms):" << milliSeconds;
auto stongSrc = _pPlayerSrc.lock();
if (stongSrc) {
_stamp[0].setPlayBack();
_stamp[1].setPlayBack();
stongSrc->seekTo(milliSeconds);
}
AMFValue status(AMF_OBJECT);