Gambas & VLC player

Post

Posted
Rating:
#26
Guru
BruceSteers is in the usergroup ‘Guru’

Umbridge said

unfortunately, this component is not available to me (for my version of astra linux 1.7 se maximum gambas 3.12. In the next post I asked about the repositories for astra linux 1.8 se, it is already based on debian 12, but I do not know where to get the repository addresses.

usually to update debian you just need to change the distro name in /etc/apt/sources.list

But for your Astra problems you should be in an Astra forum.
Astra is Russian and designed for the Russian military.
Most people in the world do not use it.

I am downloading again to see if i can update.

all i can find is astra 1.7
The latest version must be paid for.
I personally will never pay for a linux when there are so many free versions out there that probably have better security due to how modern and updated they are.


Code


deb http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free

deb http://security.debian.org/debian-security bookworm-security main non-free-firmware contrib non-free
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware contrib non-free

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware contrib non-free
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware contrib non-free



Your sources.list file should say bullseye not bookworm.
so change the bullseye to bookworm and then update

sudo apt-get update
sudo apt-get full-upgrade
Online now: No Back to the top

Post

Posted
Rating:
#27
Guru
BruceSteers is in the usergroup ‘Guru’

BruceSteers said

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.

Sorry i just tried and the page does not work with gb.gui.webkit WebView :(

You will need to update gambas or Astra

Or maybe you could get the vlc library working as vuot suggests?
Online now: No Back to the top

Post

Posted
Rating:
#28
Regular
Umbridge is in the usergroup ‘Regular’
 Here is the distribution that I use "shadow without payment", It seems to be debian 12. I want to try to use it for gambas.

Attachment
Online now: No Back to the top

Post

Posted
Rating:
#29
Guru
BruceSteers is in the usergroup ‘Guru’
 I do not speak Russian , am i downloading the correct one?

I don't want to download all 56gb

Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#30
Regular
Umbridge is in the usergroup ‘Regular’

BruceSteers said

I do not speak Russian , am i downloading the correct one?

I don't want to download all 56gb

Yes, that's right! As far as I know, there are no gambas in the add-ons, you don't have to download them.
Online now: No Back to the top

Post

Posted
Rating:
#31
Regular
Umbridge is in the usergroup ‘Regular’
 astralinux 1.8 se + gambas 3.18

Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#32
Regular
Umbridge is in the usergroup ‘Regular’
Now your source code is working, thank you! Now I will figure out how to rewind, stop and do it for the entire window.
Online now: No Back to the top

Post

Posted
Rating:
#33
Guru
BruceSteers is in the usergroup ‘Guru’
You are very welcome :)

looks like we can compile and install the latest stable and master too :)
This is my Astra 1.8 with latest stable 3.19.5
Here is how i installed it…

<HIGHLIGHT highlight="shell">

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-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 libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev git libssl-dev libmongoc-dev

cd ~
git clone Gambas / gambas · GitLab –depth=1 –branch=stable gambas-stable
cd gambas-stable
./reconf-all
./configure -C -q –disable-keyring –disable-sqlite2 –disable-qt4 –disable-qt6
make -j$()nproc

sudo apt-get remove gambas3*  # remove apt gambas if installed
sudo make install

</HIGHLIGHT>

It cannot find one of the dependencies 'libalure-dev' so i removed it and now one component does not install (but i do not think it matters)
I tried a few of my gambas programs and they all seemed to work :)
Bruce Steers / Blockski+ · GitLab

Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#34
Guru
BruceSteers is in the usergroup ‘Guru’

Umbridge said

Now your source code is working, thank you! Now I will figure out how to rewind, stop and do it for the entire window.

Maybe this page will help…

ZoneMinder Wiki - Wiki - Canon

I had a bit of a go…
When it loads it gets the connection ID , the camera ID/Name and default camera

Then I try to zoom with a button click but it asks for user id and password to access the camera

So it does not work but it's some kind of start.

Code (gambas)

  1. ' Gambas class file
  2.  
  3.  
  4. Private $iDefaultCam As Integer
  5. Private $sCamName As String
  6. Private $sCamNumber As String
  7. Private $sCamID As String
  8.  
  9. Private Enum MODE_GetID, MODE_GetCamera
  10.  
  11. Public Sub Form_Open()
  12.  
  13.  
  14.   $iMode = MODE_GetID
  15.   WebView1.Url = "http://47.51.131.147/-wvhttp-01-/OpenCameraServer"
  16.  
  17.  
  18. Public Sub WebView1_Finish()  ' triggers when a page finishes loading
  19.  
  20.   Dim sTxt As String = WebView1.GetHtml()
  21.   Dim aTxt As String[]
  22.  
  23.   Select $iMode
  24.     Case MODE_GetID
  25.       $sCamID = Split(sTxt, "=")[1]
  26.       $iMode = MODE_GetCamera
  27.       WebView1.Url = "http://47.51.131.147/-wvhttp-01-/GetCameraList"
  28.       Return
  29.     Case MODE_GetCamera
  30.  
  31.       aTxt = Split(sTxt, "\n\r", Null, True)
  32.       sTxt = aTxt.Last
  33.       $sCamNumber = Split(sTxt, "=")[0]
  34.       $sCamName = Split(sTxt, "=")[1]
  35.       $iDefaultCam = CInt(Split(aTxt[aTxt.Find("default_*", gb.Like)], "=")[1])
  36.       WebView1.Url = "http://47.51.131.147/-wvhttp-01-/GetOneShot?image_size=1280x720&frame_count=1000000000"
  37.  
  38.   $iMode = -1
  39.  
  40.  
  41. Public Sub Button1_Click()
  42.  
  43.   Dim sUrl As String = "http://47.51.131.147/-wvhttp-01-/CameraPosition?connection_id=" & $sCamID & "&camera_id=" & $iDefaultCam & "&zoom=4304"
  44.   Debug sUrl
  45.   WebView1.Url = sUrl
  46.  
  47.  

Attachment
Online now: No Back to the top

Post

Posted
Rating:
#35
Guru
BruceSteers is in the usergroup ‘Guru’
Have you tried just loading this URL?

VB Viewer -

Code (gambas)

  1.   WebView1.Url = "http://47.51.131.147/viewer/live/index.html?lang=ru"
  2.  
  3.  

Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#36
Guru
BruceSteers is in the usergroup ‘Guru’
Updated this post to show how to install stable 3.19.5 in Astra1.8
https://gambas.one/viewtopic.php?p=9279#p9279
Online now: No Back to the top
1 guest and 0 members have just viewed this.