nystudio107 / craft-transcoder

Transcode video & audio files to various formats, and provide video thumbnails
https://nystudio107.com/plugins/transcoder
Other
43 stars 12 forks source link

Add support for volumes. #20

Closed internetztube closed 4 years ago

internetztube commented 5 years ago

The config now has the option for volumes. To enable the volumes option, just pass an array with the options instead of the alias-string.

e.g:

'transcoderPaths' => [
    'default' => [
        'volume' => 'transcoder',
        'folder' => '/',
    ],
    'video' => [
        'volume' => 'transcoder',
        'folder' => 'videos/',
    ],
    'audio' => [
        'volume' => 'transcoder',
        'folder' => 'audio/',
    ],
    'thumbnail' => [
        'volume' => 'transcoder',
        'folder' => 'thumbnail/',
    ],
    'gif' => [
        'volume' => 'videos',
        'folder' => 'gif/',
    ]
],
internetztube commented 5 years ago

A detailed code review is highly appreciated.

khalwat commented 4 years ago

I think the way it makes sense to handle this is via a Field type