quantum6 / Android-USB-OTG-Camera

Apache License 2.0
116 stars 37 forks source link

Integrating the USB Camera into an ATAK plugin #34

Open MattWanjia opened 3 months ago

MattWanjia commented 3 months ago

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

alias-r-cummins commented 3 months ago

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: @.***>

MattWanjia commented 3 months ago

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

alias-r-cummins commented 3 months ago

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: @.***>

MattWanjia commented 3 months ago

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

There you go.

alias-r-cummins commented 3 months ago

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: @.***>

MattWanjia commented 3 months ago

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

alias-r-cummins commented 3 months ago

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: @.***>

MattWanjia commented 2 months ago

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

alias-r-cummins commented 2 months ago

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: @.***>

MattWanjia commented 2 months ago

Can you take me through how to achieve this?

alias-r-cummins commented 2 months ago

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 commented 2 months ago

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: @.***>

MattWanjia commented 2 months ago

How best can we do it? for faster communication?

alias-r-cummins commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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: @.***>

MattWanjia commented 2 months ago

Managed to get this working. I closing this issue now