Dynamic Shortcodes - S3 Media Vault - WordPress Plugin for Amazon S3 and CloudFront That Provides a S3 Audio Player and a S3 Video Player

Dynamic Shortcodes

If you wish to mass-create shortcodes dynamically using a script (like PHP or Python), then here is an extended version of a shortcode that you can use to input all of the details right from the shortcode itself, rather than create a shortcode on the backend.

This could be useful when first switching over to S3MediaVault from another S3 plugin. However, you will lose out on almost all of the remaining features of S3MediaVault, like:

* Ability to create impossible-to-download streaming videos
* Track number of views and watch-time per user
* Captions
* In-video ads
* Advanced configuration like speed settings, timed messages, etc.

So you could start with the dynamic shortcodes above, and then create actual shortcodes later and replace them one by one over time.

Video

[s3mv fileName='test.mp4' fileType='video' source='s3' width='800' height='450' splashImage='' preLoad='Y' autoPlay='N' belowVideoHTML='' cuePoint='' redirectURL='' pauseAtCuePoint='N' isSecure='N' bucketname='testbucket']

Audio

 [s3mv fileName='test.mp3' fileType='audio' source='s3' ccpsabgcolor='#8787f0' ccpsatitletextcolor='#fad7fa' showspeedicon='Y' showdownloadicon='Y' showepisodeimage='N' episodetitle='' episodeimage='' ]

[s3mv fileName='' fileType='audio' source='s3' bucketname='testbucket/courses' ccpsabgcolor='#00a5f8' ccpsatitletextcolor='#ffffff' showspeedicon='Y' showdownloadicon='Y' showepisodeimage='Y' episodetitle='Facebook Marketing: Module 1' episodeimage='http://www.example.com/wp-content/uploads/2017/02/SubscribeMe_1400x1400.png' ]

Audio Static Shortcode (insecure)

 [s3mv fileName='https://example.com/mp3s/meditations/sleepmusic.mp3' fileType='audio' source='url' bucketname='' ccpsabgcolor='#e6a000' ccpsatitletextcolor='#ffffff' showspeedicon='Y' showdownloadicon='Y' showepisodeimage='Y' episodetitle='My Awesome AudioBook' episodeimage='http://www.example.com/wp-content/uploads/2017/08/Book-Cover-square-1024x1024.jpg' ]

Instant Media Page (IMP) Video

 [s3mv fileName='' fileType='video' source='s3' width='800' height='450' splashImage='' preLoad='Y' autoPlay='N' belowVideoHTML='' cuePoint='' redirectURL='' pauseAtCuePoint='N' isSecure='N' bucketname='']

Instant Media Page (IMP) Audio

 [s3mv fileName='' fileType='audio' source='s3' bucketname='' ccpsabgcolor='#00a5f8' ccpsatitletextcolor='#ffffff' showspeedicon='Y' showdownloadicon='Y' showepisodeimage='N' episodetitle='' episodeimage='' ]

PDF Raw URL

 [s3mv fileName='courses/test.pdf' fileType='url']

 PDF Ready-made Link

 [s3mv fileName='courses/test.pdf' fileType='link']

IMPORTANT
For each new video, use the above template and just replace the file names and embed them directly into your posts and pages. Using dynamic shortcodes above will create secure videos.