app/js/modules/ffmpeg.js

/**
 * @file Contains all ffmpeg functions
 * @author yafp
 * @module ffmpeg
 */
'use strict'

// ----------------------------------------------------------------------------
// REQUIRE MODULES
// ----------------------------------------------------------------------------
//

/**
* @function ffmpegGetBinaryPath
* @summary Get the binary path of the ffmpeg binary
* @description Get the binary path of the ffmpeg binary
* @return {string} ffmpeg.path - The path to the ffmpeg binary
*/
function ffmpegGetBinaryPath () {
    var ffmpeg = require('ffmpeg-static-electron')
    return (ffmpeg.path)
}

// ----------------------------------------------------------------------------
// EXPORT THE MODULE FUNCTIONS
// ----------------------------------------------------------------------------
//
module.exports.ffmpegGetBinaryPath = ffmpegGetBinaryPath