crosstyan / nim-agora-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nim bindings for Agora RTSA

nimble refresh
nimble install
nimble run

This project use nimterop to generate the bindings. Check generate.nim for more infomation. Please also see the comment of cImport macro.

This example also use gintro as gstreamer's bindings. Maybe try to install the full libgtk-4-dev.

NOTE When you try to generate/install gintro, if you're running in an environment where no display installed (like Docker container or Raspberry), the generation will not work. gtk4Init() cause this problem so you have to comment out it.

use gen.sh or gen_toast.sh to generate the bindings to src/agora.nim. NOTE: I have manually modify the bindings by hands, so if you regenerate the bindings the modification will be overrided. Check the git commit logs to see what I have done.

nim-lang/nimble#221

About


Languages

Language:Nim 74.0%Language:C 25.8%Language:Shell 0.2%