Closed seanchas116 closed 4 years ago
Neat I like it!
Probably the way to make timing the most consistent would be to set a presentation time stamp that's perfectly 1/30th of a second after the last time stamp. But depending on how this code ends up getting used, the video source may already provide the right time stamp so probably not worrying about in this codebase.
I made
Stream.fillFrame
run in a background thread, usingdispatch_source
. It fixes CMIOMinimalSample may be laggy and not show frames in Google Chrome.(This is a backport from SimpleDALPlugin.)