- Share Mac network such as hot spot
- Connect iphone to the network which your mac shared, such as hot spot.
- Open 'Terminal' and input 'ifconfig' to get Server IP. The inet of 'bridge100' is the server ip;
- Instead the '#define SERVER_IP @"192.168.3.1"' as the Server IP of yours;
- Use AVFoundation to capture raw video data
- Use VideoToolBox to encoder as h264 stream
- Use GCDAsyncSocket to transmit simple encapsulated packets
- Use GCDAsyncSocket to receive packets and decapsulate packet;
- Use VideoToolBox to decoder as h264 data to raw data
- Use OpenGL ES to render raw data to screen
Referenceļ¼https://github.com/AmoAmoAmo/