Commit 33d9964e authored by Linshizhi's avatar Linshizhi

Add new builtin to MediaCodex.

parent 4aa5018c
......@@ -60,7 +60,7 @@ BUILTIN(InitEncodeContext) {
// Dynamic load encoder
if (!loadedSyms) {
loadedSyms = dlopen("libencoder.so", RTLD_LAZY);
loadedSyms = dlopen("libencoders.so", RTLD_LAZY);
if (!loadedSyms) {
printf("Failed to load libencoder.so");
THROW_NEW_ERROR_RETURN_FAILURE(
......
......@@ -2806,6 +2806,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtin::kSave, 2, true);
SimpleInstallFunction(isolate_, mp4, "addAudioBuffer",
Builtin::kAddAudioBuffer, 9, true);
SimpleInstallFunction(isolate_, mp4, "addAudioURL",
Builtin::kAddAudioURL, 9, true);
SimpleInstallFunction(isolate_, mp4, "mergeMP4",
Builtin::kMergeMP4, 2, true);
SimpleInstallFunction(isolate_, mp4, "applyAudioEffects",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment