How to enable or disable Video Streaming to avoid data consumption on my mobile?

How to enable or disable Video Streaming to avoid data consumption on my mobile? Can someone help me?
details : How to enable or disable Video Streaming to avoid data consumption on my mobile? Can someone help me?
I would like to have a button that enables or disables the Video Streaming of the IP camera to avoid the consumption of cellular data.

• Arduino MEGA with Ethernet Shield
• Smartphone OS (Android)
• Blynk server
• Blynk Library version: last

A button on the App is not necessarily the solution, perhaps just the last step. You may need to control the video stream from it’s source, whatever that is… you never said… not the from App, or even the device (Arduino), those are just the interfaces to said control.

So first figure out if & how to enable and disable the video source, then figure out if it can be done “remotely” AKA over a wire, WiFi, RF, etc. Then, once that is determined, then you can try controlling that method via the App, GPIO or Webhook/API and some code.

As an alternative, you could try changing the URL from a button and code using the setProperty() command… On = valid URL, OFF = invalid URL (or just a blank one). But I am unsure how well the re-connection will work… usually I have found a video stream only reconnects upon restarting the App… or sometimes switching tabs (if the video widget is on a different one from other used controls). Your mileage may vary :wink:

http://docs.blynk.cc/#widgets-displays-video-streaming

Thanks for your help. I am using the following type of command:
rtsp://login:password@ip address:554/cam/realmonitor?channel=1&subtype=0

Thanks for your help. I am using the following type of command:
rtsp: // login: password @ (ip address): 554 / cam / realmonitor? channel = 1 & subtype = 0

It works perfectly, however when the app is up and running it consumes all the credits on my mobile phone very quickly.

I really do not know how to use this command: Blynk.setProperty (V1, “url”, “http: // my_new_video_url”); I have no idea how to use this. The Blynk manual only comments without giving any additional information. If you can post an example use of this function I thank you. I still believe in the use of a button to enable or disable the reading of Video Streaming

I also did not understand the use or how to use the virtual pin in Video Streaming

modify the property of video streaming widget with a button and set it to Blynk.setProperty(V1, “”, “”);

Unfortunately I can not figure out how to accomplish this. You can give me an example of this?

sorry, I just tried to set property with a button, but that don’t work
maybe @Dmitriy could help us

BLYNK_WRITE(V20) {
  int buttonState = param.asInt();
  if (buttonState==1){
    
      Blynk.setProperty(V19,"CAM1", "http://xxxxxxxxxxxxxxxxx/videostream.cgi?user=xxxx&pwd=xxxxx&resolution=640*480&rate=1");
  }else{
      Blynk.setProperty(V19, "CAM1","");
  }
1 Like