How to get real time video stream from iphone camera and send it to server?

后端 未结 3 1725
情歌与酒
情歌与酒 2020-12-12 21:11

I am using AVCaptureSession to capture video and get real time frame from iPhone camera but how can I send it to server with multiplexing of frame and sound and

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 21:27

    There is a long and a short story to it.

    This is the short one: go look at https://github.com/OpenWatch/H264-RTSP-Server-iOS

    this is a starting point.

    you can get it and see how he extracts the frame. This is a small and simple project.

    Then you can look at kickflip which has a specific function "encodedFrame" its called back onces and encoded frame arrives from this point u can do what you want with it, send via websocket. There is a bunch of very hard code avalible to read mpeg atoms

提交回复
热议问题