Live video feed?
Posted
#1
(In Topic #1232)
Administrator

Is it possible to view live video in Gambas, such as an rtsp feed? I'm currently using VLC to live view my security cameras but I have to either open multiple instances of VLC or change URL's to view each one. I would like to bring all feeds together into one app. I don't need to record, that's already taken care of.
I've loaded both gb.media and gb.media.form but only see a mediaview and that didn't seem to allow an URL for anything other than a video file stored in a directory. Maybe I've missed how it's done?
Posted
Administrator

Posted
Guru

I not the one who can answer though i have little experience with MediaPlayer and none with live feeds.
Others may be able to help though.
Posted
Regular

Wish I could help more but I have had no more use for it since then.
b
Posted
Administrator

I have a neighbor who would "borrow" my water twice a year to top up her swimming pool. Twice a year my water usage for the month would double. I ended up putting on a faucet lock on that side of the house and the water usage spikes stopped. That resulted in her calling code enforcement on her neighbors just for harassment. Her husband is cool and didn't know she was calling code enforcement on everyone. Once he found out, it stopped. I think she's mentally unstable so I avoid her as much as possible.
Posted
Regular

Well, what's the name of this program that you found ?Got2BeFree said
I found an example in the farm that can play an RTSP stream
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Administrator

vuott said
Well, what's the name of this program that you found ?Got2BeFree said
I found an example in the farm that can play an RTSP stream
IPTV by WebOss.
Once I saw how it's done, I realized just how simple it is. Just need a MediaView and feed it an RTSP url like this:
Code
MediaView1.Stop
MediaView1.URL = "rtsp://192.168.xxx.xxx:554/h264?username=yourUserName&password=somePassword"
MediaView1.Play
My project is showing 4 feeds and is able to expand to more feeds very easily. Currently the url's are hard coded in, but I'll eventually have the rtsp url's reside in a sqlite db to make it easier to add and delete cameras. It's been about 4 years since my last project and I'm realizing just how much I've forgotten in that time.
Posted
Regular

Got2BeFree said
vuott said
Well, what's the name of this program that you found ?Got2BeFree said
I found an example in the farm that can play an RTSP stream
IPTV by WebOss.
Once I saw how it's done, I realized just how simple it is. Just need a MediaView and feed it an RTSP url like this:(The above rtsp line is for my brand of camera. May work for other brands.)Code
MediaView1.Stop
MediaView1.URL = "rtsp://192.168.xxx.xxx:554/h264?username=yourUserName&password=somePassword"
MediaView1.Play
My project is showing 4 feeds and is able to expand to more feeds very easily. Currently the url's are hard coded in, but I'll eventually have the rtsp url's reside in a sqlite db to make it easier to add and delete cameras. It's been about 4 years since my last project and I'm realizing just how much I've forgotten in that time.
This is some great info! I've been building a homemade "Netflix" app to use for my huge movie collection and that process naturally lead me to wonder if I can incorporate any live streaming just for laughs. If anyone is wondering, mediaview can also play an icecast stream. I have a Node Media server and when I get some time I'll see if mediaview can connect and play….unless anyone already knows the answer to that.
1 guest and 0 members have just viewed this.

