rtsp url is not handled by gio.newGFileForUri?
I'm trying to render my ipcam(s) in my gtk gui, but it seems like maybe the rtsp url is not handled by gio.newGFileForUri? The Big Buck Bunny testing stream works fine, but my cam's rtsp stream doesn't. My cam's rtsp stream works fine with ffmpeg and gst-launch, as well as gst.parseLaunch() like demo'd here . It's only when i try to actually embed it in my gui using the method below does it fail.
example nim code:
import gintro/[gtk4, gobject, gio, gdk4] proc activate(app: gtk4.Application) = let window = newApplicationWindow(app) let grid = newGrid() #next line doesn't work #let media_file1 = gtk4.newMediaFileForFile(gio.newGFileForUri("rtsp://admin:firstname.lastname@example.org:554")) #next line works #let media_file1 = gtk4.newMediaFileForFile(gio.newGFileForUri("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_175k.mov")) let picture1 = gtk4.newPicture() gtk4.setPaintable(picture1, cast[gdk4.Paintable](media_file1)) media_file1.play() 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()