File tree Expand file tree Collapse file tree
Examples/Advanced/FusionCDN Expand file tree Collapse file tree Original file line number Diff line number Diff line change 19321932 "-framework",
19331933 "\"AgoraRtcKit\"",
19341934 "-framework",
1935- "\"AgoraVideoProcessExtension\"",
1936- "-framework",
19371935 "\"Agoraffmpeg\"",
19381936 "-framework",
19391937 "\"AssetsLibrary\"",
20052003 "-framework",
20062004 "\"AgoraRtcKit\"",
20072005 "-framework",
2008- "\"AgoraVideoProcessExtension\"",
2009- "-framework",
20102006 "\"Agoraffmpeg\"",
20112007 "-framework",
20122008 "\"AssetsLibrary\"",
Original file line number Diff line number Diff line change @@ -294,7 +294,8 @@ - (void)audioController:(AudioController *)controller didCaptureData:(unsigned c
294294 }
295295 }
296296 else {
297- [self .agoraKit pushExternalAudioFrameNSData: [NSData dataWithBytes: data length: bytesLength] sourceId: 1 timestamp: 0 ];
297+ // [self.agoraKit pushExternalAudioFrameNSData:[NSData dataWithBytes:data length:bytesLength] sourceId:1 timestamp:0];
298+ [self .agoraKit pushExternalAudioFrameRawData: data samples: 441 * 10 sourceId: 1 timestamp: 0 ];
298299 }
299300
300301}
Original file line number Diff line number Diff line change @@ -475,7 +475,6 @@ extension FusionCDNHost: AgoraDirectCdnStreamingEventDelegate {
475475 // cn: https://docs.agora.io/cn/Voice/API%20Reference/oc/Constants/AgoraErrorCode.html
476476 self . showAlert ( title: " Error " , message: " joinChannel call failed: \( result) , please check your params " )
477477 }
478- agoraKit. startRtmpStream ( withTranscoding: streamingUrl, transcoding: transcoding)
479478 }
480479 else {
481480 self . streamingButton. setTitle ( " Start Live Streaming " , for: . normal)
@@ -513,6 +512,9 @@ extension FusionCDNHost: AgoraRtcEngineDelegate {
513512 agoraKit. startPreview ( )
514513 transcoding. add ( user)
515514 agoraKit. updateRtmpTranscoding ( transcoding)
515+ if !streamingUrl. isEmpty { // join Channel success后发流
516+ agoraKit. startRtmpStream ( withTranscoding: streamingUrl, transcoding: transcoding)
517+ }
516518 }
517519
518520 /// callback when a remote user is joinning the channel, note audience in live broadcast mode will NOT trigger this event
You can’t perform that action at this time.
0 commit comments