Page 1 of 1

How To Play Audio and Video With Gambas?

Posted: Sunday 04th March 2018 4:04am
by R77
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.

Re: How To Play Audio and Video With Gambas?

Posted: Sunday 04th March 2018 9:27am
by cogier
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.

Re: How To Play Audio and Video With Gambas?

Posted: Sunday 04th March 2018 4:44pm
by jornmo
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:
https://www.linux-apps.com/p/1131036/

Re: How To Play Audio and Video With Gambas?

Posted: Tuesday 06th March 2018 8:07am
by vuott
I just would like to point out the specific "MediaPlayer" Class of the Gambas gb.media Component.
Look this at:
http://gambaswiki.org/wiki/comp/gb.media/mediaplayer

Other and more generally on playing audio-video:
http://www.gambas-it.org/wiki/index.php ... file_audio
http://www.gambas-it.org/wiki/index.php ... 3%A0#Video