How To Play Audio and Video With Gambas?

Post

Posted
Rating:
#1 (In Topic #159)
R77
Trainee
 Hi I am new to gambas and coming from visual basic.. I am trying to start a new project in VB .net and Gambas because I want to try to make my program for Window as well as Linux if possible. Can gambas make programs that can work on windows? If so how can we achieve this? Ok but my main question right now is how can I make a media player with gambas? I know with VB we just can add a windows media player control to a form and it is pretty easy to make that work for playing audio and video files but how do things work like this in gambas? I can not find any useful information or code examples to download anywhere.. I would like to be able to play wav/mp3/flac/mp4/ and maybe a few others but mostly those file types.  Hoping someone can help me figure this out.
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
Hi R77 and welcome to the forum.

You could start by looking on the Gambas Farm. You will find a link to the Farm on the first screen when opening Gambas. Have a look for 'VerySimpleVideoPlayer', written by me  :D. There are a few other examples on there you can look at.

Let us know how you get on.
Online now: Yes Back to the top

Post

Posted
Rating:
#3
Avatar
Regular
jornmo is in the usergroup ‘Regular’
The only way to run Gambas application on Windows today is with Cygwin. So technically, yes, it's possible.

There's also this app to draw inspiration from:
xt7-player-mpv - linux-apps.com

Online now: No Back to the top

Post

Posted
Rating:
#4
Regular
vuott is in the usergroup ‘Regular’
I just would like to point out the specific "MediaPlayer" Class of the Gambas gb.media Component.
Look this at:
/comp/gb.media/mediaplayer - Gambas Documentation

Other and more generally on playing audio-video:
Guide della comunità - Gambas-it.org - Wikipedia
Guide della comunità - Gambas-it.org - Wikipedia

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top
1 guest and 0 members have just viewed this.