Android-USB-OTG-Camera icon indicating copy to clipboard operation
Android-USB-OTG-Camera copied to clipboard

Integrating the USB Camera into an ATAK plugin

Open MattWanjia opened this issue 1 year ago • 17 comments

I am trying to get the video from the USB Camera inside an ATAK plugin. Plugins usually dont have activityies. How do i go about it

MattWanjia avatar Jul 04 '24 10:07 MattWanjia

Please post the Github of the plugin you are using.

On Thu, 4 Jul 2024 at 12:33, MattWanjia @.***> wrote:

I am trying to get the video from the USB Camera inside an ATAK plugin. Plugins usually dont have activityies. How do i go about it

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNWNFQMBFAPZLTC4C6TZKUQJLAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TANJTGE4DMMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

alias-r-cummins avatar Jul 04 '24 10:07 alias-r-cummins

I am not using a specific plugin. I am developing one from scratch using this repository as a helper and guide. The biggest issue is that to init the USB Camera, an activity is required. Plugins inately dont have activities. I have tried using a fragment but still encountering the same issue of opening up a fragment activity

MattWanjia avatar Jul 04 '24 11:07 MattWanjia

Which repository?

On Thu, 4 Jul 2024 at 13:26, MattWanjia @.***> wrote:

I am not using a specific plugin. I am developing one from scratch using this repository as a helper and guide. The biggest issue is that to init the USB Camera, an activity is required. Plugins inately dont have activities. I have tried using a fragment but still encountering the same issue of opening up a fragment activity

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2208733896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNTYDWN7KOOQO6TVN43ZKUWNFAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYG4ZTGOBZGY . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 04 '24 12:07 alias-r-cummins

https://github.com/quantum6/Android-USB-OTG-Camera.git

There you go.

MattWanjia avatar Jul 05 '24 06:07 MattWanjia

Do you need to use the specific one? I would recommend https://github.com/jiangdongguo/AndroidUSBCamera for most things.

On Fri, 5 Jul 2024 at 08:20, MattWanjia @.***> wrote:

https://github.com/quantum6/Android-USB-OTG-Camera.git

There you go.

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2210254068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNVXUI3U6FBQULUH2DLZKY3KFAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQGI2TIMBWHA . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 05 '24 06:07 alias-r-cummins

Let me give it a look and let you know how it goes. Appreciate the assistance.

MattWanjia avatar Jul 05 '24 08:07 MattWanjia

You will need to tell us a bit more about your intended app architecture

Do you have an ATAK plugin reference implementation in mind?

On Fri, 5 Jul 2024 at 08:20, MattWanjia @.***> wrote:

https://github.com/quantum6/Android-USB-OTG-Camera.git

There you go.

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2210254068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNVXUI3U6FBQULUH2DLZKY3KFAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQGI2TIMBWHA . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 05 '24 10:07 alias-r-cummins

I would like to capture the video and send it over to my rtmp server. Kindly explain more by what is meant by plugin reference. https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV.git here is the git repo the plugin is a no activity app that is loaded into the lrger atak app installed in the device

MattWanjia avatar Jul 08 '24 10:07 MattWanjia

If it has no activity then it may run as a service.

On Mon, 8 Jul 2024 at 12:34, MattWanjia @.***> wrote:

I would like to capture the video and send it over to my rtmp server. Kindly explain more by what is meant by plugin reference. https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV.git here is the git repo the plugin is a no activity app that is loaded into the lrger atak app installed in the device

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2213644999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNQJDZYOMSJG5KYDEITZLJTJTAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGY2DIOJZHE . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 08 '24 10:07 alias-r-cummins

Can you take me through how to achieve this?

MattWanjia avatar Jul 08 '24 10:07 MattWanjia

Yes, I can help you.

On Mon, 8 Jul 2024 at 12:41, MattWanjia @.***> wrote:

Can you take me through how to achieve this?

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2213658284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNUQOVHINLZMPGPQ4LDZLJUF5AVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGY2TQMRYGQ . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 08 '24 10:07 alias-r-cummins

But I am not at my desk for another 12hrs

On Mon, 8 Jul 2024 at 12:45, Alias Cummins @.***> wrote:

Yes, I can help you.

On Mon, 8 Jul 2024 at 12:41, MattWanjia @.***> wrote:

Can you take me through how to achieve this?

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2213658284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNUQOVHINLZMPGPQ4LDZLJUF5AVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGY2TQMRYGQ . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 08 '24 10:07 alias-r-cummins

How best can we do it? for faster communication?

MattWanjia avatar Jul 08 '24 10:07 MattWanjia

Email @.*** to continue this discussion offline.

On Mon, 8 Jul 2024 at 12:47, MattWanjia @.***> wrote:

How best can we do it? for faster communication?

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2213669228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNUJ72IP62G7ASYE2ALZLJU5XAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGY3DSMRSHA . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 08 '24 10:07 alias-r-cummins

I am hiking in the mountains right now but I can talk in about 6 hours

On Mon, 8 Jul 2024 at 12:47, MattWanjia @.***> wrote:

How best can we do it? for faster communication?

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34#issuecomment-2213669228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNUJ72IP62G7ASYE2ALZLJU5XAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGY3DSMRSHA . You are receiving this because you commented.Message ID: @.***>

alias-r-cummins avatar Jul 08 '24 10:07 alias-r-cummins

You will need a headless OpenGL implementation, fortunately I have one lying around.

On Thu, 4 Jul 2024 at 12:33, MattWanjia @.***> wrote:

I am trying to get the video from the USB Camera inside an ATAK plugin. Plugins usually dont have activityies. How do i go about it

— Reply to this email directly, view it on GitHub https://github.com/quantum6/Android-USB-OTG-Camera/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVTHNWNFQMBFAPZLTC4C6TZKUQJLAVCNFSM6AAAAABKLIUIZGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TANJTGE4DMMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

alias-r-cummins avatar Jul 08 '24 10:07 alias-r-cummins

Managed to get this working. I closing this issue now

MattWanjia avatar Jul 16 '24 04:07 MattWanjia