Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15
  1. #1
    Join Date
    Feb 2005
    Posts
    13

    Lightbulb How to make open any name mpeg file.

    How to make Video Object to open any name mpeg file in root cdrom.
    to open *.mpg file in root cdrom.
    If you have solution please attach simple example project file.
    I learning better from examples.

    Thanks

  2. #2
    Join Date
    Feb 2005
    Posts
    13
    Basically when I insert video object to
    the project must have name of the file.

    But name video file in my project the always change, but it in same location
    as project.
    How to make video object to run file witout knowing the name of the file?

    Or how to make this action:


    find name of the file mpeg file in root cd-rom
    and put name of mpeg file to "video object" and play.


    Or

    play \\*.mpg file
    Last edited by roma123; 02-26-2005 at 12:51 PM.

  3. #3
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    You must find the video file first then play it.
    Code:
    result = File.Find("AutoPlay\\Videos", "*.mpg", false, false, nil, nil);
    Video.Load("Video1", result[1], true, false);

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    If you are talking about runtime finding of your mpg file, then SSIDE gave you the answer, but from your post, it looks as if you want to do it at BUILD time.
    If so, it is much simpler. 2 ways:
    1. use a dummy name in your video object for the file and then, put the mpeg file in the dir, renaming it to the name of your dummy file.
    2. you CAN have a video object without a name at design time. When you run the project, it will give you an error though. So what you can do is build sort of a template project abd for each project, you just insert the mpg file name in the video object field.

    I hope that between SSIDE and this, you found what you were looking for.

    Yossi

  5. #5
    Join Date
    Feb 2005
    Posts
    13
    Thanks to SSIDE and Thanks(תודה) to the Yossi.
    The project will be defaut mpeg player with logo of my company,
    so when burn CD-ROM I do need change name of mpeg file,
    to default name in the project.

    So SSIDE gave right solution.

    But I have tiny problem, when I change path of search to SourceDrive
    or SourceFolder its not working, Its working if I change path to folder.

    I doing something wrong? :

    result = File.Find("{_SourceFolder}", "*.mpg", false, false, nil, nil);
    Video.Load("Video1", result[1], true, false);

    or

    result = File.Find("SourceFolder", "*.mpg", false, false, nil, nil);
    Video.Load("Video1", result[1], true, false);

    Thanks
    Last edited by roma123; 02-27-2005 at 01:39 PM.

  6. #6
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Code:
    result = File.Find(_SourceFolder.."\\AutoPlay\\Videos", "*.mpg", false, false, nil, nil);
    Video.Load("Video1", result[1], true, false);

  7. #7
    Join Date
    Feb 2005
    Posts
    13
    Thanks, but its not working.
    Take look in the project with mpeg file.
    Attached Files

  8. #8
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    In this occasion it would be:
    Code:
    result = File.Find(_SourceFolder, "*.mpg", false, false, nil, nil);
    Video.Load("Video1", result[1], true, false);
    You had to place the video file in the video folder. AutoPlay\Videos

  9. #9
    Join Date
    Feb 2005
    Posts
    13
    Quote Originally Posted by sside
    In this occasion it would be:
    Code:
    result = File.Find(_SourceFolder, "*.mpg", false, false, nil, nil);
    Video.Load("Video1", result[1], true, false);
    You had to place the video file in the video folder. AutoPlay\Videos
    Its WORKING from root cdrom!!! THANKS!

  10. #10
    Join Date
    Feb 2005
    Posts
    13
    I change it to:

    result = File.Find(_SourceFolder, "*.mpg", false, false, nil, nil);
    MediaPlayer.Load("Plugin1", result[1]);

    Now its look like Windows Media Player interface!

  11. #11
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    I thought roma123 was gonna tell us all how to open any mpeg file. The title suggests so
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  12. #12
    Join Date
    Feb 2005
    Posts
    13
    Quote Originally Posted by Derek
    I thought roma123 was gonna tell us all how to open any mpeg file. The title suggests so
    You missing one word: " How to make open any name mpeg file"

  13. #13
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    Same thing!
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  14. #14
    Join Date
    Feb 2005
    Posts
    13
    open any mpeg files-say it any type of mpeg files (mpeg1,mpeg2,mpeg4)

    open any name mpeg files - say it any file name mpeg files.

    Aniway Derek you don't explanation for this, with 809 posting

  15. #15
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    I read your 'statement' .. job done!
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

Similar Threads

  1. Open PowerPoint file to a specific slide
    By Echo S in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 02-26-2004, 06:17 PM
  2. Mac autostart function???
    By Protocol in forum AutoPlay Media Studio 4.0
    Replies: 21
    Last Post: 06-26-2003, 10:25 AM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. HOWTO: Open an HTML Help File to a Specific Topic
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-01-2002, 02:24 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts