bmjs-fcpxml

1.1.7 • Public • Published

bmjs-fcpxml

A utility for generating FCP XML files from predefined data. Reads source files from and writes output to directory named "assets".

const fcp = require('bmjs-fcpxml');

Generate XML, audio and upload metadata from a slides object and optional project name:

fcp.init();
let slides = [
  {
    title: 'My video',
    description: 'A test description.',
    category: '22',
    keywords: ['html','css','javascript'],
    privacy: 'public',
    clips: [
      {
        text: 'Some text...',
        audio: '',
        image: '',
        keyword: '',
        template: ''
      },
      {
        text: 'Some more text...',
        audio: '',
        image: {filename: 'sample-img.png'},
        keyword: 'dog',
        template: ''
      },
      {
        text: 'A third line of text.',
        audio: '',
        image: '',
        keyword: '',
        template: ''
      }
    ]
  },
];
fcp.xml(slides,'My Project');
fcp.write();

/bmjs-fcpxml/

    Package Sidebar

    Install

    npm i bmjs-fcpxml

    Weekly Downloads

    1

    Version

    1.1.7

    License

    MIT

    Unpacked Size

    40.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • brent258