mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
hls播放器通过测试
This commit is contained in:
parent
a4aa34e4ae
commit
bab11b426e
@ -228,6 +228,11 @@ private:
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case H264Frame::NAL_SEI:{
|
||||||
|
//忽略SEI
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
VideoTrack::inputFrame(frame);
|
VideoTrack::inputFrame(frame);
|
||||||
break;
|
break;
|
||||||
|
@ -116,7 +116,8 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AnyStorage::Ptr storage(new AnyStorage);
|
AnyStorage::Ptr storage(new AnyStorage);
|
||||||
viedoTrack->addDelegate(std::make_shared<FrameWriterInterfaceHelper>([storage](const Frame::Ptr &frame) {
|
viedoTrack->addDelegate(std::make_shared<FrameWriterInterfaceHelper>([storage](const Frame::Ptr &frame_in) {
|
||||||
|
auto frame = Frame::getCacheAbleFrame(frame_in);
|
||||||
SDLDisplayerHelper::Instance().doTask([frame,storage]() {
|
SDLDisplayerHelper::Instance().doTask([frame,storage]() {
|
||||||
auto &decoder = (*storage)["decoder"];
|
auto &decoder = (*storage)["decoder"];
|
||||||
auto &displayer = (*storage)["displayer"];
|
auto &displayer = (*storage)["displayer"];
|
||||||
|
Loading…
Reference in New Issue
Block a user