perchco / perchrtc

An iOS WebRTC demo using XirSys servers
MIT License
135 stars 34 forks source link

single use to capturer code #33

Open zhihanhe opened 8 years ago

zhihanhe commented 8 years ago

hi,ceaglest.Thank you so much for your code.It's help me a lot.

I have success use Renderers to our code.

But It's hard to move capturer code in our code. We want to filter the video . the reason is the head file:

include "talk/media/base/videocapturer.h"

in PerchRTC/CaptureKit/PHVideoCaptureBridge.h

videocapturer.h include other files.and the file location have changed to other folder.I've tried to move every file to project.But it's hard to find them.

so Is there a easy way to move your code in our code?

difujia commented 8 years ago

I guess you have a "header search path" problem. Try to add the project root (with recursive enabled) to header search path in the build settings.

zhihanhe commented 8 years ago

hi,difujia.thank you for your answer!It's really fix my problem. But the webrtc api is changed... some headers are deleted and api are change...so bad.

include "webrtc/media/devices/devicemanager.h" is missing... ;(

thank you any way...

ceaglest commented 8 years ago

@zhihanhe Yes, the WebRTC APIs have changed a little since chrome 45 in this area. For one, many of the basic data types (int32, etc) have been redefined. If you are trying to build directly on top of WebRTC you will need to provide the headers needed for video capture, and build the capturer without RTTI.

zhihanhe commented 8 years ago

@ceaglest thank you for your answer.I find a thing I can not fixed. Because of many api changed, I just extends RTCAVFoundationVideoSource class. But It's refer a header file: scoped_ptr.h

include

build failed due to "'algorithm' file not found". I google this issue but all the result is make .m file to .mm file. But It's just a h file... I saw your pods also include this file and build success.

Is there something wrong with my environment configuration?

looking forward to your answer, thanks again:)