How To Play Audio and Video With Gambas?
How To Play Audio and Video With Gambas?
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.
- cogier
- Site Admin
- Posts: 1125
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: How To Play Audio and Video With Gambas?
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
. There are a few other examples on there you can look at.
Let us know how you get on.
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
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Let us know how you get on.
Re: How To Play Audio and Video With Gambas?
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/
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?
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
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
Europaeus sum !
Amare memorentes atque deflentes ad mortem silenter labimur.
Amare memorentes atque deflentes ad mortem silenter labimur.