BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       👉 SKETCH BUILDER

Video Streaming Error on Arduino IDE

Hi,
Tried the new blynk app with video streaming widget, the following needs to be done in order to view the feed as per the blynk docs.

BLYNK_CONNECTED() {
// request the V1 value on connect
// for initial connect it will be default value 1
Blynk.sync(V1);
}

BLYNK_WRITE(V1)
{
// here you get default value 1
int bulbValue = param.asInt();
handle(bulbValue);
}

It was throwing an error as “sync”, so I checked for keywords and changed it to…

BLYNK_CONNECTED() {
// request the V1 value on connect
// for initial connect it will be default value 1
Blynk.syncVirtual(V1);
}

BLYNK_WRITE(V1)
{
// here you get default value 1
int bulbValue = param.asInt();
handle(bulbValue);
}

and there’s another error.
“exit status 1
‘handle’ was not declared in this scope”

esp32_camera_mjpeg:180:21: error: ‘handle’ was not declared in this scope
handle(bulbValue);

guys please look into this, I’m trying to stream the video on local server now but ultimately globally.

please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly. Triple backticks look like this: ```

Hello everyone,
I’m trying to get a webcam feed on blynk app, using ngrok it’s working on the Html page but when using blynk new app or legacy it’s not visible. Although the webpage widget works fine but it’s not on the same app screen.

Would like to know if there is any comprehensive tutorial than blynk docs to understand the new app.

Thanks and Regards
Dipanjan,

Does your HTML page for the video stream require you to log-in?
Does the browser URL a contain port number?
Is that HTML page visible outside of your network?

What format(s) have you tried for the url in the Blynk mobile app?

Also, I’ve merged your two topics as they appear to be about the same issue.

Pete.