init.agi 839 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. FFmpeg Factory
  3. CopyRight tobychui 2020 - 2021
  4. This is a port of the ArOZ Online Beta FFmpeg Factory to the ArOZ Online 1.0
  5. If you are running on Windows, ffmpeg must be installed in your %PATH% environment
  6. variable before you can actually use this module.
  7. */
  8. //Define the launchInfo for the module
  9. var moduleLaunchInfo = {
  10. Name: "FFmpeg Factory",
  11. Group: "Media",
  12. IconPath: "FFmpeg Factory/img/small_icon.png",
  13. Version: "2.0",
  14. StartDir: "FFmpeg Factory/index.html",
  15. SupportFW: true,
  16. LaunchFWDir: "FFmpeg Factory/index.html",
  17. InitFWSize: [1150, 640],
  18. SupportedExt: [".avi",".mp4",".mp3",".aac",".flac"]
  19. }
  20. //Request ffmpeg for this module
  21. if (requirepkg("ffmpeg",true)){
  22. //Register the module
  23. registerModule(JSON.stringify(moduleLaunchInfo));
  24. }else{
  25. console.log("FFMPEG not found! Not enabling FFmpeg Factory");
  26. }