Webrtc-H264Capturer icon indicating copy to clipboard operation
Webrtc-H264Capturer copied to clipboard

I have a question about AudioTrackInterface.

Open hsnks100 opened this issue 6 years ago • 2 comments

First, I appreciate you reason why I got your help about my project.

I am going to implementation webrtc-h264capturer with Audio.

I additionally am going to implementation following code.

#if 0
    rtc::scoped_refptr<webrtc::AudioTrackInterface> audio_track(
            peer_connection_factory_->CreateAudioTrack(
                kAudioLabel, peer_connection_factory_->CreateAudioSource(NULL)));
#endif
...
    //stream->AddTrack(audio_track);

I searched about CreateAudioSource, but I can't found this issue. We have some audio codes such as "g711a", "g711u", "adpcm", "g726", "pcm".

How do I implementation CreateAudioSource's param? I now assume that it can implementation capturer like what I combine between h264encoder, ffmpeg. right?

I am waiting to your help. If You can't help me directly, I just want to get some links.

Thank you in advance.

hsnks100 avatar Dec 13 '17 01:12 hsnks100