Replies: 1 comment
-
Raw video data can be obtained using the following method. I believe it would be better to create a UIImage or similar from this class YourStreamOutput: HKStreamOutput {
func stream(_ stream: some HKStream, didOutput audio: AVAudioBuffer, when: AVAudioTime) {
}
func stream(_ stream: some HKStream, didOutput video: CMSampleBuffer) {
print(video)
}
}
var output = YouStreamOutput()
rtmpStream.addOutput(output) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
New to swift here, any idea for displaying video on 3d model entity.
I am able do to it by converting the piphkView into an image, in update loop and apply this image into a plane but I lost lot of frames and its really heavy in memory and CPU. (An I need to display it in a window too first, for being able to getting the video frame)
(edit : and its not smooth at all too)
Any experienced Swift dev for help, please?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions