Announcement

Collapse
No announcement yet.

Playing Multiple Video Files in Sequence

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Playing Multiple Video Files in Sequence

    Playing Multiple Video Files in Sequence

    Playing Multiple Video Files in Sequence

    Document ID: IR10028
    The information in this article applies to:
    • AutoPlay Media Studio 5.0 Standard Edition
    • AutoPlay Media Studio 5.0 Professional Edition

    SUMMARY

    This article describes how to play multiple video files in sequence.

    DISCUSSION

    In AutoPlay Media Studio 5.0, it is possible to play one video after another utilizing the On State event.

    As an example, we will create a project with one button object and one video object. The user will click on the button, and load multiple videos into a table. The project will then play one video after another until each video has been played.

    To accomplish this:

    1. Insert the following code into your global functions (click project, global functions):

      video_count = 1; --table index starts at 1
    2. Insert the following code into the On Click event of your load button:

      video = Dialog.FileBrowse(true, "Load Videos", "", "", "", "", true, true);

      Video.Load("Video1", video[video_count], true, false);
    3. Insert the following code into the On Finish event of your video object:

      --Traverse the table

      video_count = video_count + 1;



      --ensures a valid file will be loaded

      if video_count < Table.Count(video)+1 then

      --load the file

      Video.Load("Video1", video[video_count], true, false);

      end

    MORE INFORMATION

    For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

    • Program Reference | Actions | Video | Video.Load

    KEYWORDS: AutoPlay Media Studio 5.0, Load, Video, Play, Multiple Files


    Last reviewed: September 26, 2003
    Copyright © 2003 Indigo Rose Corporation. All rights reserved.
Working...
X