TBH, you don’t need any Blynk code in the sketch running on the ESP32 CAM, as its only purpose is to provide a video stream.
Once you have this working it’s just the beginning of your problem, as you need to make the video stream publicly resolvable. Which most likely requires a DDNS service and DDNS updater client, and port-forwarding set-up in your router.
The solution will depend on a number of factors including your ISP and router, so there isn’t a simple set of instructions that you can follow.
Ok, I already understand the complexity of the whole thing. What I don’t understand is how some people make it look easy. Even with the old Blynk I never got video images following examples still available today on YouTube. It never worked for me, it always gave an error.
It’s not that easy, but it’s straightforward when you understand what needs to be done.
I display video from CCTV camera on my home network in the Blynk video streaming widget, but as I said I use DDNS, an update client and have port forwarding set-up to allow this to work.
I would like to see this video stream working, even if it is in the simplest way possible. So from what I saw in Blynk documentation, the URL must be of the M3U8 format type. So I simply tried putting a video with this format on the web dasboard, choosing a virtual pin for stream and then repeating the same thing on the iPhone. It seems like I did everything right but the device remains offline.
My ultimate goal is to transmit video from the Esp32 Cam. However, I want to do something simpler first. For example, transmitting a simple video to be watched on the iPhone. This should be very simple and easy, right?
If the video is coming from within your home network then it’s just as complex as the ESP32 CAM stream.
If you’re hosting the video somewhere in the cloud then a lot depends on whether the URL to that video is useable by the widget. I know some file sharing sites aren’t useable by the widget.
I understand the situation perfectly. I’m not using home video. I am using a video available on the Internet in M3U8 format. When I put it on the Blynk web dashboard it works perfectly. But I can’t make it work on the iPhone. The Blynk device simply remains offline.
I don’t understand why it’s not working. This should be the simplest procedure for using video streaming. You don’t need any physical device. I just want to start selling a video available on the internet.
The device will never appear online in either the web dashboard or the mobile dashboard simply by pointing a widget to a video stream. The on/offline status comes from having a board running Blynk code with the auth token and template ID used to negotiate a connection with the server.
The web dashboard widget works differently from the app widget.
I don’t see how any of this is going to help you with your ESP32 CAM project.
ok, now I’m going to learn something: Are you telling me that without a board directed to an autotoken there isn’t one online?
In this case, how about just transmitting a simple video available on the internet? Shouldn’t this be possible without any physical device?
In fact, this doesn’t help much with the Esp32 Cam. It has become more of an adjacent curiosity.
The device is simply a way to broadcast a video stream…
Obviously these cameras don’t run any Blynk code and don’t have a Blynk auth token or template ID.
Getting the ESP32 CAM to output a video stream that you can view in a web browser is easy - just find some example (non Blynk) code and get ot working.
Getting that video to display in the mobile widget requires much more work with DDNS and port forwarding, as I’ve already said.
Ok, I think I’m clear on a lot of things now. I can already get the Esp cam video via the local server. I’m ready to move on to the second part. Do you suggest any tutorials or posts?
Thanks for your patience…
None of this is Blynk related, so there are plenty of guides out there.
I have posted several explanations of what needs to be done (in general terms) so searching for post by me with the keywords ESP32 CAM or video streaming widget will point you in the right direction.
I use DuckDNS which is a free DDNS service, but NoIP.com is also okay.
Your router may be able to do DDNS updates, but personally I prefer to run an update client on a device within my network.
This website attempts to provide an overview of port forwarding, along with details of many popular routers and how to configure them…