Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2002
    Posts
    57

    Changing videos globally

    I need a method of allowing the end user to select something (either via dialog or other method), so he can choose to watch lower resolution videos on all pages.

    For example, the user click on a link that launches a dialog that asks if he wants to watch lower resolution videos because his particular system may not handle high quality videos from CD.

    Is there a way to capture this and use it on every video page?

    Thanks,

    Kurt

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    You could either ask via a dialog or check on the users processor speed and make a decision from there. Once they make their choice you could then store this information in an .ini file or a registry entry and then everytime you play a video you could use an if statement to play the appropriate size of video

    if regkey == "low" then
    --play low
    elseif regkey == "high" then
    --play high
    end
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Jun 2002
    Posts
    57
    Thanks, TJ. I will give it a try.

  4. #4
    Join Date
    Jun 2002
    Posts
    57
    This method seems so system intensive, having to check the existence of a file each time a video is played. Is there anyway to set a global variable in the application? That way I can check the variable instead of searching for a file or reg entry.

  5. #5
    Join Date
    Jul 2003
    Posts
    712
    Hello KMartin7,

    Any variable you set retains its value until overwritten, or until the program is shut down. (ie there is nothing special you have to do to create a global variable. They are ALL global variables! )

    So you could pop up a yes/no dialog, and store the result in a variable.

    Then play your videos using an if statement, controled by this variable.

    Assuming you don't overwrite that variable, it will retain it's contents until your application is closed.

    Let me know if that's what you needed.

    Desmond.

  6. #6
    Join Date
    Jun 2002
    Posts
    57
    Actually, the registry entry works so quickly, it takes no time at all to load the proper video.

    Thanks Tigger.

    Thanks Desmond.

    Kurt

Posting Permissions

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