Am I missing something?
Posted
#1
(In Topic #1239)
Administrator

Now I'm starting again at version 3.18.0, and there have been a few changes with Gambas since my last project. My new project is to tile all my security cameras feeds into one mosaic that I can choose which feeds to display depending on what room I have a display in making use of a few old monitors and a few AtomicPi's(i.e. at my desk - outside cameras, bedroom - inside and outside cameras).
My first question is…
I keep finding references to a MediaPlayer, but I don't find it in the toolbox. Should I have it, or is it only created in code? I have a MediaView which is what I'm using for my project.
Posted
Guru

/comp/gb.media - Gambas Documentation
MediaView is a gb.media.form component that uses MediaPlayer to make a working GUI player
/comp/gb.media.form - Gambas Documentation
Yes MediaPlayer is created by code and is kinda complicated but very configurable.
That's why MediaView does it for you.
have a look at the MediaView source code to see how it works.
comp/src/gb.media.form/.src · master · Gambas / gambas · GitLab
Posted
Administrator

Bare with me… my 62 year old brain works a little slower these days…
So, I'm not missing a MediaPlayer form in the toolbox and MediaPlayer is only created by code?
I haven't done much digging yet into the audio part of my project. Some of my security cameras have audio, but the incoming audio is choppy using the camera's encode type G711A and no sound switching to AAC. I'll work on that later.
Posted
Guru

Got2BeFree said
Thanks, for your reply, Bruce.
Bare with me… my 62 year old brain works a little slower these days…
So, I'm not missing a MediaPlayer form in the toolbox and MediaPlayer is only created by code?
I haven't done much digging yet into the audio part of my project. Some of my security cameras have audio, but the incoming audio is choppy using the camera's encode type G711A and no sound switching to AAC. I'll work on that later.
Yep that's right.
In the IDE form designer the controls you can drag-n-drop are all GUI controls.
The MediaPlayer.class does not have any GUI component.
But MediaView.class does
Posted
Administrator

1 guest and 0 members have just viewed this.


