Hi,
i want to stream encrypted live video between 2 devices over the internet (without using RTMP or RTSP servers)
i used CamEx to extract camera frames bytes and encoded it to H264 using android MediaCodec
i want to playback these byte arrays or inputstream using exo player
- i couldn't find a way to get the ByteArrayDataSource as mentioned here
https://exoplayer.dev/doc/reference...d/exoplayer/upstream/ByteArrayDataSource.html
- i found another solution to build Datasource from Inputstream but i'm not able to port it using inline java
https://github.com/google/ExoPlayer/issues/4212
- i tried to save the encoded bytes and even the raw frame bytes to file and open it locally but this didn't work too , i think i have to write video header but i have no idea about it
any ideas would be appreciated
i want to stream encrypted live video between 2 devices over the internet (without using RTMP or RTSP servers)
i used CamEx to extract camera frames bytes and encoded it to H264 using android MediaCodec
i want to playback these byte arrays or inputstream using exo player
- i couldn't find a way to get the ByteArrayDataSource as mentioned here
https://exoplayer.dev/doc/reference...d/exoplayer/upstream/ByteArrayDataSource.html
- i found another solution to build Datasource from Inputstream but i'm not able to port it using inline java
https://github.com/google/ExoPlayer/issues/4212
- i tried to save the encoded bytes and even the raw frame bytes to file and open it locally but this didn't work too , i think i have to write video header but i have no idea about it
any ideas would be appreciated