Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow callers to provide their own Agora SDK and add noop compilation for non-linux machines #16

Conversation

nickdichev-firework
Copy link
Collaborator

This PR attempts to solve two problems:

  1. Allow callers to provide their own agora sdk and prevent the build from pulling the sdk from agora.
  2. Adds a noop build on non-linux machines. The agora sdk is only available on linux. Any project which uses this plugin could not be compiled on mac.

{"hello", 0, hello}
};

ERL_NIF_INIT(niftest,nif_funcs,NULL,NULL,NULL,NULL)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in the private conversation - the first argument of the ERL_NIF_INIT macro defines the Erlang module name that is capable of loading that NIF. We need to define separate NIFs for Elixir.Membrane.Agora.Sink.Native.Nif and for Elixir.Membrane.Agora.Source.Native.Nif

README.md Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to bump the version from 0.2.1 into 0.2.2 in the README.md as well

…nifex.Loader conditional. Bump version in README
@varsill
Copy link
Collaborator

varsill commented Apr 2, 2024

I have implemented the requested changes in this PR: nickdichev-firework#1

…_provider_fixes

Conditional Agora SDK compilation fixes
@varsill varsill requested a review from mat-hek April 3, 2024 13:17
@varsill varsill merged commit fad0613 into membraneframework:master Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants