react-native-agora icon indicating copy to clipboard operation
react-native-agora copied to clipboard

How can i customize stream video source?

Open lamlengend98 opened this issue 4 years ago • 6 comments

My case:

I have started a stream channel Agora recorded and save to S3 I got this video's source

=> How can i use this video to start a livestream?

lamlengend98 avatar Oct 25 '21 04:10 lamlengend98

refer to our native demo to implement custom video source.

LichKing-2234 avatar Oct 30 '21 13:10 LichKing-2234

refer to our native demo to implement custom video source.

what folder and file? i don't have much experience about native

lamlengend98 avatar Nov 01 '21 04:11 lamlengend98

https://github.com/AgoraIO/API-Examples/blob/master/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideo.java

LichKing-2234 avatar Nov 01 '21 06:11 LichKing-2234

https://github.com/AgoraIO/API-Examples/blob/master/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideo.java

why is native :D ? is this impossible on react native, right?

lamlengend98 avatar Nov 03 '21 03:11 lamlengend98

https://github.com/AgoraIO/API-Examples/blob/master/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideo.java

is it possible when i combined this native code with react native code??

lamlengend98 avatar Nov 08 '21 03:11 lamlengend98

ReactNative not support byte array, so you should implement it on the native layer.

LichKing-2234 avatar Nov 08 '21 09:11 LichKing-2234