medooze / media-server

WebRTC Media Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MP4Recoder maybe can not work

vvspacetime opened this issue · comments

When I test mp4record, I found it can not work. When check it stack as follow
image
StreamTrackDepacketizer::onRTP should have called MP4Recorder::onMediaFrame. But it call MP4Recorder::Stop method actually. I think it is a Virtual Function Pointer error. So I change MP4Recorder inheritance order, put the public MediaFrame::Listener before public RecorderControl. Now it worked, and I record success.
Environment: I compile and run in mac.

Could you recompile and try again with latest version please?