Game Development Community

Theora movie problems

by Robert Kelly · in Torque Game Engine · 09/21/2007 (9:51 am) · 1 replies

I have a an ogg file running after garagegames screen. When I first start game, you will see garagegames screen and then only hear audio of theora video I have. If I start game again, the video will play with the audio, almost like audio had to preload to play with movie. Movie is only 2.4 mg

Does anyone know why this is happening and/or is there a way to preload ogg files so they can stream?

#1
09/21/2007 (2:55 pm)
This is what I used and it works everytime.

//--- OBJECT WRITE BEGIN ---
new GuiTheoraCtrl(Startup3Gui) {
   canSaveDynamicFields = "0";
   Profile = "GuiDefaultProfile";
   HorizSizing = "right";
   VertSizing = "bottom";
   position = "0 0";
   Extent = "640 480";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";
   theoraFile = "./Intro.ogg";
   done = "0";
   stopOnSleep = "1";
   backgroundColor = "0 0 0 255";

      new GuiBitmapButtonCtrl() {
      Profile = "GuiButtonProfile";
      HorizSizing = "relative";
      VertSizing = "relative";
      position = "463 439";
      Extent = "140 30";
      MinExtent = "8 8";
      Visible = "1";
      Command = "skipIt();";
      text = "Button";
      groupNum = "-1";
      buttonType = "PushButton";
      bitmap = "./button";
         helpTag = "0";

      new GuiMLTextCtrl() {
         Profile = "GuiMLTextNoSelectProfile";
         HorizSizing = "right";
         VertSizing = "bottom";
         position = "75 10";
         Extent = "300 19";
         MinExtent = "8 2";
         Visible = "1";
         lineSpacing = "2";
         allowColorChars = "0";
         maxChars = "-1";
         text = "<color:F6F4C4><shadowcolor:000000><shadow:1:1><font:Arial Bold:19>Skip";
            helpTag = "0";
            allowSelection = "1";
      };
   };
};

.... The rest of the startup code here....

This is a theora control used as a splash screen with a button on the bottom to skip the video if the player wants too.
Hope this helps you.