How can I use the slideshow function via API?

There's a couple scenarios with how the slideshow feature works on the Encoding.com platform:

1) The default duration of any slideshow is 3 seconds.  This is regardless of length of the audio file. Add two source images of unspecified duration and you will have a 6 second clip, and so on. The XML below shows a audio file that is 34 seconds long. If that is added to an image file, the result will be a 3 second clip.

POST:

<?xml version="1.0"?>
<query>
    <action>AddMedia</action>
    <userid/>
    <userkey/>
    <source>[imagefile]</source>
    <source>[audiofile]</source>
    <notify/>
    <slideshow>1</slideshow>
    <region>us-east-1</region>
    <split_screen/>
    <format>
        <output>mp4</output>
        <destination/>
        <bitrate>2000k</bitrate>
    </format>
</query>

####

2) You can control the slideshow duration by setting the attribute of the still image to the desired size.

Example – A 34 second slideshow can be created via these tags / attributes:

<?xml version="1.0"?>
<query>
    <action>AddMedia</action>
    <userid/>
    <userkey/>
    <source>[imagefile].jpg?duration=34</source>
    <source>[audiofile]</source>
    <notify/>
    <slideshow>1</slideshow>
    <region>us-east-1</region>
    <split_screen/>
    <format>
        <output>mp4</output>
        <destination/>
        <bitrate>2000k</bitrate>
    </format>
</query>

####

The smallest duration you will be able to set is 1 second. Regardless of audio file length, this will produce a 1 second file:

<?xml version="1.0"?>
<query>
    <source>[imagefile].jpg?duration=1</source>
    <source>[audiofile]</source>
</query>
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

edchelp