as an example i have this:
import gintro/[gtk4, gobject, gio, gdk4]
proc activate(app: gtk4.Application) =
let window = newApplicationWindow(app)
let grid = newGrid()
let media_file1 = gtk4.newMediaFileForFile(gio.newGFileForUri("rtsp://admin:passwd@192.168.1.5:554"))
let picture1 = gtk4.newPicture()
gtk4.setPaintable(picture1, cast[gdk4.Paintable](media_file1))
window.defaultSize = (800, 600)
grid.columnSpacing = 25
grid.attach(picture1, 0, -1)
window.setChild(grid)
window.show
proc main =
let app = newApplication("org.gtk.example")
app.connect("activate", activate)
let status = app.run
quit(status)
main()
but it seems that the gtk4.newMediaFileForFile(gio.newGFileForUri("rtsp://admin:passwd@192.168.1.5:554"))
part is not working. I do have the real rtsp stream creds in the actual code. Everything appears to be attached properly, but no rtsp stream plays. I also tried with a gtk4.Video
and set_media_stream
with the same result. Any ideas?