mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
add addDelegate with std::function, remove FrameWriterInterfaceHelper
This commit is contained in:
@@ -213,9 +213,9 @@ git submodule update --init
|
||||
WarnL << "none video Track!";
|
||||
return;
|
||||
}
|
||||
viedoTrack->addDelegate(std::make_shared<FrameWriterInterfaceHelper>([](const Frame::Ptr &frame) {
|
||||
viedoTrack->addDelegate([](const Frame::Ptr &frame) {
|
||||
//please decode video here
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
player->setOnShutdown([](const SockException &ex) {
|
||||
|
||||
Reference in New Issue
Block a user