Agora-Flutter-SDK
Agora-Flutter-SDK copied to clipboard
[Question] Could we Live Streaming as Broadcaster from video/audio source files?
Hello, i have a feature live streaming from camera or other source from files. Could you please help how can i get this? Thanks so much.
Sorry for the late reply, You can refer to https://github.com/AgoraIO/Agora-Flutter-SDK/blob/master/example/android/app/src/main/kotlin/io/agora/agora_rtc_engine_example/custom_capture_audio/CustomCaptureAudioPlugin.kt and implement it on the native layer.
I believe this is now possible with agora_rtc_engine 6.0.0-rc.2, is that right?
Check this out: https://docs.agora.io/en/interactive-live-streaming/develop/play-media/
@babihutan yes play source media files is now possible directly with sdk apis.
Thanks @plutoless, I've been eagerly watching and waiting for this feature for more than a year, going to hook up the new v6 api later this week.
These features are available on agora_rtc_engine: ^6.0.0
.
Push a camera stream, you can use MediaEngine. pushVideoFrame
, check https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/blob/main/example/lib/examples/advanced/push_video_frame/push_video_frame.dart for reference.
Push a video stream, you can use the MediaPlayer to handle this, check https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/blob/main/example/lib/examples/advanced/media_player/media_player.dart for reference.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.