Hello,
I would to ask if there is any way/API to intercept an audio stream with the Gear2 device?
Because I tried to do it with this code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <meta name="description" content="A single-page template generated by Tizen Wearable Web IDE"/> <title>Tizen Wearable Web IDE - Tizen Wearable - jQuery</title> <script type="text/javascript" src="js/jquery-1.9.1.js"></script> <script type="text/javascript" src="js/main.js"></script> <link rel="stylesheet" href="css/style.css" /> <script> function SuccessCallback(stream) { var URL = window.webkitURL; document.getElementById("videoPlay").src = URL.createObjectURL(stream); } </script> <script> function getVideoStream() { navigator.webkitGetUserMedia({audio: true}, successCallBack, errorCallBack); } </script> </head> <body> <video id="videoPlay" src="" autoplay controls></video><br/> <input type="button" value="START" onclick="getVideoStream();" id="btnStart"> </body> </html>
it always told me: "index.html (23) :ReferenceError: Can't find variable: successCallBack"
Thanks in advance.