Am I missing something?

Post

Posted
Rating:
#1 (In Topic #1239)
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 Since I've been away from Gambas for several years, I'm trying to relearn things. Some of it is coming back to me easily. Other stuff I'm struggling with, but I'm getting there. The last project I started was way back with Gambas version 3.9.x (2016) and a few minor updates through the years until version 3.12.2 (2020) where I pretty much stepped away from everything.

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.

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
MediaPlayer is a gb.media component
/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
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
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.

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘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
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
Thanks Bruce for sharing your knowledge. It is much appreciated by me.

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top
1 guest and 0 members have just viewed this.