Gambas & VLC player
Posted
#1
(In Topic #1335)
Regular

Posted
Guru

you can probably use the vlc api library libVLC media player, Open Source video framework for every OS! - VideoLAN.
mpv or mplayer has a command argument that lets you provide an x11 window Id and it auto embeds into that window but that won't work on wayland.
Posted
Guru

Posted
Regular

- Medienplayer mit Live-TV-Funktion - Der Gambas Club
- Le site de la communauté de Gambas - Gambas France
- Le site de la communauté de Gambas - Gambas France
- Le site de la communauté de Gambas - Gambas France
- Le site de la communauté de Gambas - Gambas France
- La gestione del video e dei file video con le funzioni esterne del API di VLC - Gambas-it.org - Wikipedia
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

7.51.131.147/-wvhttp-01-/GetOneShot?image_size=1280x720&frame_count=1000000000
Posted
Guru

/comp/gb.media/mediaplayer/url - Gambas Documentation
then i'd guess you didn't even look?
Posted
Guru

Posted
Regular

Posted
Regular

Posted
Regular

Posted
Regular

Posted
Regular

Posted
Guru

Umbridge said
Is this a media player?
No i think that program is for making sausages.
:roll:
Posted
Regular

La gestione del video e dei file video con il componente gb.media - Gambas-it.org - Wikipedia
If you want to play video by using <COLOR color="#800000">gb.media.form</COLOR> Component, I suggest:
La gestione dei dati video con la Classe MediaView del componente gb.media.form - Gambas-it.org - Wikipedia
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Guru

Umbridge said
what am I doing wrong)?
Not reading the wiki so
/comp/gb.form/inputbox/_call - Gambas Documentation
/comp/gb.media.form/mediaview - Gambas Documentation
/comp/gb.media/mediaplayer - Gambas Documentation
Plus i think a bad URL
I could not get your link to work.
But this works
MediaView1.URL = "https://cdn.flowplayer.com/a30bd6bc-f98b-47bc-abf5-97633d4faea0/hls/de3f6ca7-2db3-4689-8160-0f574a5996ad/playlist.m3u8"
MediaView1.Play
Posted
Regular

Code
Public Sub Button1_Click()
MediaView1.URL = "http://47.51.131.147/-wvhttp-01-/GetOneShot?image_size=1280x720&frame_count=1000000000"
'MediaView1.URL = "https://cdn.flowplayer.com/a30bd6bc-f98b-47bc-abf5-97633d4faea0/hls/de3f6ca7-2db3-4689-8160-0f574a5996ad/playlist.m3u8"
MediaView1.Play
End
Posted
Regular

Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Guru

vlc player must be designed to handle that but gb.media is not (gb.media is just a GStreamer interface).
I got it to work by not using gb.media but using gb.gui.webview and the WebView component that is for loading web urls not video streams.
/comp/gb.gui.webview - Gambas Documentation
Posted
Regular

Hi, BruceSteers,BruceSteers said
vlc player must be designed to handle that but gb.media is not (gb.media is just a GStreamer interface).
as you know, Claus Dietrich ("crabman" on the German forum) has tried at both gb.media and libvlc resources for viewing web video and web-TV.
He has repeatedly told me that he has noticed that gb.media cannot handle web-video and web-TV perfectly, as libvlc can.
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

Posted
Guru

I used the HttpClient class to read the incoming data from the page.
it starts like a HTTP image request with some CRLF terminated strings, then the data much like a HTTP image request a browser shows.
Is just shows a jpeg image, over and over again..
maybe this IS correct RTSP protocol? i don't know
this is the received data…
Code
--boundary
Content-Type: image/jpeg
Content-Length: 34634
image data starts here
How to process the data from there i do not know.
I seems to repeatedly re-send the image type, image size and then the data like HTTP1/1
Posted
Regular

Posted
Guru

Umbridge said
Tell me, what type of project should I use for your last example? Graphical Aplication? Can you tell me which components to choose from the available ones?
your gambas is very old and outdated , 3.12 was a very long time ago and is what shipped with debian bullseye , are you sure you have debian 12 bookworm?
WebView is with current stable gambas
webkit for old versions.
(webkit is now depreciated)
or update to latest gambas stable version and use gb.gui.webview.
Posted
Guru

you will find the commands to install debian 12 in the .gitlab-ci.yml file
<HIGHLIGHT highlight="shell">
# get dependencies
sudo apt-get update
sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev libzstd-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev git libssl-dev qt6-base-dev qt6-webengine-dev qt6-svg-dev libmongoc-dev
# clone gambas stable to ~/gambas-source folder
cd $HOME
git clone Gambas / gambas · GitLab –depth=1 –branch=stable gambas-source
cd ./gambas-source
./reconf-all
./configure -C –disable-keyring –disable-sqlite2 –disable-qt4
make -j$(nproc)
sudo apt-get remove gambas3* # gotta remove the old apt gambas version before installing new
sudo make install
</HIGHLIGHT>
Posted
Regular

1 guest and 0 members have just viewed this.











