mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
兼容一些不规范的rtmp流
This commit is contained in:
parent
4d82d0ffdf
commit
fdbed9e83b
@ -80,7 +80,7 @@ public:
|
||||
strong_self->onData(frame);
|
||||
}
|
||||
});
|
||||
for (auto &track : _player->getTracks()) {
|
||||
for (auto &track : _player->getTracks(false)) {
|
||||
track->addDelegate(delegate);
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ int main(int argc, char *argv[]) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto viedoTrack = strongPlayer->getTrack(TrackVideo);
|
||||
auto viedoTrack = strongPlayer->getTrack(TrackVideo, false);
|
||||
if (!viedoTrack) {
|
||||
WarnL << "没有视频!";
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user