Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770

    button for full screen video

    I have this but it opens and stops and then crashes ..
    I just want to open a video and play full screen . and I have a button that plays the video in the the player I made and that works fine .

    -- Display a File Browse Dialog, and then play the video that they select

    -- Pick a nice default folder to start the browsing in (My Documents)
    myfolder = Shell.GetFolder(SHF_MYDOCUMENTS);

    -- Show the file browse dialog
    tFiles = Dialog.FileBrowse(true, "Load Video", myfolder, "Video Files (*.mpg;*.avi)|*.mpg;*.avi|MPEG (*.mpg)|*.mpg|AVI (*.avi)|*.avi|", "", "", false, true);

    -- Only load the video if they did not press Cancel
    if tFiles[1] ~= "CANCEL" then
    -- make sure the Video object is visible before trying to load a video
    Video.SetVisible("Video1", true);

    -- Load the video File
    Video.Load("Video1", tFiles[1]);

    -- Play the video
    Video.SetFullScreen("Video1", true);

    -- Adjust the Play/Pause button text
    Button.SetText("ButtonPlay", "PAUSE");
    end

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Hello,

    If you want to play your video automatically, then your load statement is incomplete -

    -- Load the video File
    Video.Load("Video1", tFiles[1], true, false);

    I think that what's happening is that you are going to full screen without actually playing the video and just seeing a blank screen.

  3. #3
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    What I have is two right now one loads the video and plays it in the small window .
    Then I have button 2 that I want to browse for a video and play it full screen .
    So that way I can watch it in the small screen or full size .
    I added that what you gave me but now it opens real fast and quits .(video)
    Thank you for your help .

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Hello,

    Not quite sure about your meaning. When you say two, I take it that is two buttons? Or do you mean two video objects?

    In the code you posted, there was no action that would actually start the video playing, but changing the code as I suggested would cause it to play automatically.

    It sounds as if you've got quite a lot more code than what you posted, how about posting the project if that's possible? Someone will have a look at it I'm sure. I'm off out now for the rest of the day but I'll look in again later

  5. #5
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    Yes two buttons one for full screen video on one for small window video.

  6. #6
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    If you make a broswer can you resize it ?or does it have to be a standard like 800x600 etc .

  7. #7
    Join Date
    Aug 2003
    Posts
    2,427
    Have you got just one video object on your page?

    It would help to post the project if you can (without the videos ).

    Re the web object - check out the Web.SetSize and Web.SetPos actions.

Similar Threads

  1. Stopping a button action until video is done.
    By GalacTek in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 03-30-2006, 07:00 AM
  2. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  3. Playing a Video Using Full Screen Mode
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 12:40 PM
  4. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  5. Initial screen scrambling after starting video (256 colors)
    By rsojka in forum AutoPlay Menu Studio 3.0
    Replies: 3
    Last Post: 06-09-2000, 09:21 AM

Posting Permissions

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