|
@@ -2,7 +2,6 @@ package agi
|
|
|
|
|
|
import (
|
|
|
"errors"
|
|
|
- "fmt"
|
|
|
"log"
|
|
|
"os"
|
|
|
"path/filepath"
|
|
@@ -60,8 +59,8 @@ func (g *Gateway) injectFFmpegFunctions(payload *static.AgiLibInjectionPayload)
|
|
|
|
|
|
compression, err := call.Argument(2).ToInteger()
|
|
|
if err != nil {
|
|
|
- g.RaiseError(err)
|
|
|
- return otto.FalseValue()
|
|
|
+ //Do not use compression
|
|
|
+ compression = 0
|
|
|
}
|
|
|
|
|
|
//Rewrite the vpath if it is relative
|
|
@@ -91,7 +90,7 @@ func (g *Gateway) injectFFmpegFunctions(payload *static.AgiLibInjectionPayload)
|
|
|
return otto.FalseValue()
|
|
|
}
|
|
|
|
|
|
- fmt.Println(rinput, routput, bufferedFilepath)
|
|
|
+ //fmt.Println(rinput, routput, bufferedFilepath)
|
|
|
|
|
|
//Convert it to target format using ffmpeg
|
|
|
outputTmpFilename := uuid.NewV4().String() + filepath.Ext(routput)
|