Control Camera Viewer

A place for developers to discuss development of OSA
Post Reply
Message
Author
User avatar
kherron
Posts: 646
Joined: Mon Dec 05, 2011 10:44 am
Location: Jacksonville, Fl.
Contact:

Control Camera Viewer

#1 Post by kherron » Wed Aug 27, 2014 10:45 am

I have been working with a new VLC library, and I have created a new user control that works with WPF that can stream video using a VLC player instead of the MJpeg processor currently used.

This will now allow not only mjpeg streams, but will also work with rtsp:// - rtp:// - dvd:// - cdds:// - vcd:// - https:// - mms:// allowing for h.264 streams.

Future upgrades could also allow for streaming video from the server to remote devices as well!!

The question is:

Do we want to create another control, or change the existing viewer to use this viewer instead?

Some cameras may have to use a different Stream URL (VLC or FFMPEG), but all IP cameras should still work fine.

Any Opinions??

User avatar
kherron
Posts: 646
Joined: Mon Dec 05, 2011 10:44 am
Location: Jacksonville, Fl.
Contact:

Re: Control Camera Viewer

#2 Post by kherron » Thu Aug 28, 2014 11:11 am

Answered my own questions.

With all the new capabilities this new VLC player is going to provide, it will also need a plugin to handle things like, snapshot, record video, volume, mute, stream and also still be able to send URL commands to PTZ or DVR's like the IPCam plugin can do.

So, I am going to create a new OSAE.UI.Control and a new plugin to go with it.

I will try to make it by the 5.0 release.

User avatar
kherron
Posts: 646
Joined: Mon Dec 05, 2011 10:44 am
Location: Jacksonville, Fl.
Contact:

Re: Control Camera Viewer

#3 Post by kherron » Thu Oct 23, 2014 7:15 am

OK, I think I need some more help!

I hope @Brian or @Vaughn may know why this is happening.

I am trying to create a new screen control that uses VLC to display video streams that are other than MJpeg.
I have created a UserControl.
I then created a WPF application that adds the control to a canvas, very similar to way OSA does.

It works just fine!

However, to use the same concept in OSA, and it wont show the video?

I even created a second usercontrol that just grabs each frame as an image, then update the image in the control.
Again, this runs fine as a stand alone, but does not show the image in OSA.

Also, I need to mention, I get NO errors when running it?

Any Ideas?

User avatar
Mat
Posts: 501
Joined: Thu Aug 09, 2012 2:35 pm
Location: UK

Re: Control Camera Viewer

#4 Post by Mat » Thu Oct 23, 2014 1:33 pm

Hi Kherron,

Can you check in your code to your fork, in GIT that way we could see the code.

What kind of control are you trying to use in OSA? if you look in MainWindows.xaml.cs method "LoadControl" you can see how controls get loaded into the form.

User avatar
kherron
Posts: 646
Joined: Mon Dec 05, 2011 10:44 am
Location: Jacksonville, Fl.
Contact:

Re: Control Camera Viewer

#5 Post by kherron » Thu Oct 23, 2014 2:08 pm

Right now it is a basic usercontrol with an image on it.

The code behind it grabs each frame as an image an it is updated as the source of the image on the user conctrol.

Like I said before, it's works just fine in the standalone application??

And, not to toot my horn, but I'm all over the OSAE.UI.Control, Screens and API right now with my work to be able to add new controls like a plugin.
And I actually thought that was what was causing my problems.

So I then created the code directly in the OSAE.UI.Controls just like any other control.
And It still behaves the same.

I will try to add my code to my GIT or Zip it up for you to look at separately.

Post Reply