Git Product home page Git Product logo

zig-agora-example's Introduction

Zig Agora RTSA example

An example stream to Agora by GStreamer with videotestsrc and H264. I tried H265 but no luck.

I will say it's kind of crazy experience with zig. It will tell you when the allocator will kick in, which is good? Its C interop should be good in theory...but [*c] is the big problem for interop. You SHOULD rewrite every function with C pointer.

Zig will translate C files (header or source) to .zig. I wish I can write type annotation in another folder and Zig can apply to the translated Zig code. cImport is also confusing. If you want to edit your generated zig file, the best way is to utilize build.zig with addTranslateC, then import it.

By the way the Zig Language Server often crashes when parsing large files, which means I have to look for documentation by myself.

Usage

This repo should have Agora SDK aarch64-linux-gnu. x86_64 is not included and you should install by yourself and modify addLibraryPath in build.zig

build.zig is actually a build script (may not the conventional script) which will call zig build-exe or zig translate-c or anything else. In theory you can complete that with python script.

The config file will be stored in your local configuration folder, which should be ~/.config in Linux.

zig-agora-example's People

Contributors

crosstyan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.