Commit 33d9964e authored by Linshizhi's avatar Linshizhi

Add new builtin to MediaCodex.

parent 4aa5018c
...@@ -60,7 +60,7 @@ BUILTIN(InitEncodeContext) { ...@@ -60,7 +60,7 @@ BUILTIN(InitEncodeContext) {
// Dynamic load encoder // Dynamic load encoder
if (!loadedSyms) { if (!loadedSyms) {
loadedSyms = dlopen("libencoder.so", RTLD_LAZY); loadedSyms = dlopen("libencoders.so", RTLD_LAZY);
if (!loadedSyms) { if (!loadedSyms) {
printf("Failed to load libencoder.so"); printf("Failed to load libencoder.so");
THROW_NEW_ERROR_RETURN_FAILURE( THROW_NEW_ERROR_RETURN_FAILURE(
......
...@@ -2806,6 +2806,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, ...@@ -2806,6 +2806,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtin::kSave, 2, true); Builtin::kSave, 2, true);
SimpleInstallFunction(isolate_, mp4, "addAudioBuffer", SimpleInstallFunction(isolate_, mp4, "addAudioBuffer",
Builtin::kAddAudioBuffer, 9, true); Builtin::kAddAudioBuffer, 9, true);
SimpleInstallFunction(isolate_, mp4, "addAudioURL",
Builtin::kAddAudioURL, 9, true);
SimpleInstallFunction(isolate_, mp4, "mergeMP4", SimpleInstallFunction(isolate_, mp4, "mergeMP4",
Builtin::kMergeMP4, 2, true); Builtin::kMergeMP4, 2, true);
SimpleInstallFunction(isolate_, mp4, "applyAudioEffects", 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