How To Play Audio and Video With Gambas?

Post Reply
R77
Posts: 1
Joined: Sunday 04th March 2018 3:54am

How To Play Audio and Video With Gambas?

Post by R77 » Sunday 04th March 2018 4:04am

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.

User avatar
cogier
Site Admin
Posts: 165
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: How To Play Audio and Video With Gambas?

Post by cogier » Sunday 04th March 2018 9:27am

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.

User avatar
jornmo
Site Admin
Posts: 154
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: How To Play Audio and Video With Gambas?

Post by jornmo » Sunday 04th March 2018 4:44pm

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/

vuott
Posts: 11
Joined: Wednesday 05th April 2017 6:07pm

Re: How To Play Audio and Video With Gambas?

Post by vuott » Tuesday 06th March 2018 8:07am

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

Post Reply