Start a new topic

Use a bluetooth remote shutter on Android

Use a bluetooth remote shutter on Android


Hi

In the sample, you can capture the screen by clicking on the screen.

But I want to use a remote shutter, the remote shutter simulate a click on ENTER (keycode 66).

I want to use the remote shutter to be detected by the ARchitectWindow and then capture the screen.

Any sample ?

 

Thanks

Hi Patrick,

we don't have a sample for bluetooth interaction. But if you can react on the bluetooth command in JavaScript you can trigger the screen capture call programatically like shown in the existing sample. Handling of the bluetooth comms and the remote control is not something we can be of help.

Hi, found the solution. If someone needs :

Add this in the index.html 

 

<!DOCTYPE HTML>

<html>

 

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">

    

    <title>Test</title>

 

    <script src="architect://architect.js"></script>

    <script type="text/javascript" src="../ade.js"></script>

 

    <script type="text/javascript">  

    //This is done to make the following JavaScript code compatible to XHTML. <!>  

    </script> 

 

    <link rel="stylesheet" href="css/default.css">

</head>

 

 

Now I need to find how to interact with the Capture button on the window
Login or Signup to post a comment