mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 12:11:36 +08:00
优化完善代码
This commit is contained in:
parent
4dbe0a1d3e
commit
7b60f8b093
@ -309,11 +309,9 @@ API_EXPORT float API_CALL mk_player_progress(mk_player ctx) {
|
|||||||
return obj->getProgress();
|
return obj->getProgress();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
API_EXPORT int API_CALL mk_player_progress_pos(mk_player ctx) {
|
||||||
API_EXPORT int API_CALL mk_player_progress_pos(mk_player ctx)
|
|
||||||
{
|
|
||||||
assert(ctx);
|
assert(ctx);
|
||||||
MediaPlayerForC& obj = **((MediaPlayerForC::Ptr*)ctx);
|
MediaPlayerForC &obj = **((MediaPlayerForC::Ptr *) ctx);
|
||||||
return obj->getProgressPos();
|
return obj->getProgressPos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -782,7 +782,7 @@ void RtspSession::handleReq_Play(const Parser &parser) {
|
|||||||
//这是设置播放速度
|
//这是设置播放速度
|
||||||
auto speed = atof(strScale.data());
|
auto speed = atof(strScale.data());
|
||||||
play_src->speed(speed);
|
play_src->speed(speed);
|
||||||
InfoP(this) << "rtp set play speed:" << speed;
|
InfoP(this) << "rtsp set play speed:" << speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strRange.empty()) {
|
if (!strRange.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user