haiyangwu / mediasoup-client-android

mediasoup android client side library https://mediasoup.org
MIT License
179 stars 107 forks source link

Android USB camera #28

Closed fengkouxiaozhu closed 4 years ago

fengkouxiaozhu commented 4 years ago

Thank you for your android version app! recently, i met a problem. in a robot scenraio , i wish to use an android-based machine with a usb-camera to connect the mediasoup server. However, the app can not recognise the USB_camera. I know I NEED add LIBUVC . BUT i am not clear that how can i GET the push the video to mediasoup after i attain the usb_Camera picture.
Could you give me a hint where the push stream interface is?
Sorry to bother you ! Thank you again!

haiyangwu commented 4 years ago

You can implement your own VideoCapturer which based on LIBUVC.

fengkouxiaozhu commented 4 years ago

I am very happy to receive your reply! Thanks! now I have the byte[] data of the USB camera video frame? is it possible to use the UVC byte to media stream track directly? or I have to write my own videoca pture based the lib UVC similar to camera API ? sorry to bother u !------------------ 原始邮件 ------------------ 发件人: "haiyangwu"<notifications@github.com> 发送时间: 2020年6月6日(星期六) 晚上10:25 收件人: "haiyangwu/mediasoup-client-android"<mediasoup-client-android@noreply.github.com>; 抄送: "fengkouxiaozhu"<1641952271@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [haiyangwu/mediasoup-client-android] Android USB camera (#28)

haiyangwu commented 4 years ago

Have to implement a VideoCapturer class and wrapper data array into VideoFrame.

On Sat, Jun 6, 2020 at 10:39 PM fengkouxiaozhu notifications@github.com wrote:

I am very happy to receive your reply! Thanks! now I have the byte[] data of the USB camera video frame? is it possible to use the UVC byte to media stream track directly? or I have to write my own videoca pture based the lib UVC similar to camera API ? sorry to bother u !------------------ 原始邮件 ------------------ 发件人: "haiyangwu"<notifications@github.com> 发送时间: 2020年6月6日(星期六) 晚上10:25 收件人: "haiyangwu/mediasoup-client-android"< mediasoup-client-android@noreply.github.com>; 抄送: "fengkouxiaozhu"<1641952271@qq.com >;"Author"<author@noreply.github.com>; 主题: Re: [haiyangwu/mediasoup-client-android] Android USB camera (#28)

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/haiyangwu/mediasoup-client-android/issues/28#issuecomment-640071408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOBOGXQVDW6X5XTWXQE7BDRVJILNANCNFSM4NVSBSFQ .

-- Haiyang Wu wuhaiyang1213@gmail.com

fengkouxiaozhu commented 4 years ago

Thank u for your reply! the last question whether the android client app is able to support to receive the text message from the server. two chrome client can exchange the text message in mediasoup-demo or not? if not, how can I expand the function? ------------------ 原始邮件 ------------------ 发件人: "haiyangwu"<notifications@github.com> 发送时间: 2020年6月6日(星期六) 晚上11:51 收件人: "haiyangwu/mediasoup-client-android"<mediasoup-client-android@noreply.github.com>; 抄送: "fengkouxiaozhu"<1641952271@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [haiyangwu/mediasoup-client-android] Android USB camera (#28)

fengkouxiaozhu commented 4 years ago

I found a bug,  sometimes I run the app on android 9 HUawei mate 20 cellphone,

I found i can join the room , but I cant enable my camera it happen not  often ,  a little chance

the log is as follows:

enableCam() | cannot produce video

could u give me some help?

Best Regardes!

fengkouxiaozhu commented 4 years ago

Sorry to bother u,again.

Maybe not a bug ,just my cellphone or network did not work well.\

My question is :    the log is as follows enableCam() | cannot produce video

what that mean?  my camera don't open ?  it happen not  often ,  very little chance

I found a bug,  sometimes I run the app on android 9 HUawei mate 20 cellphone,

I found i can join the room , but I cant enable my camera it happen not  often ,  a little chance

the log is as follows:

enableCam() | cannot produce video

could u give me some help?

Best Regardes!