videotest.ssc   videotest.ssc 
// Name: Video Test // Name: Video Test
// Author: Alexander Wolf // Author: Georg Zotti
// License: Public Domain // License: Public Domain
// Description: This script plays several formats of video file. // Description: This script plays a video file and test some functionalitie s.
// Note that video support is a build-time option and // Note that video support is a build-time option and
// may not be supported for the version of Stellarium // may not be supported for the version of Stellarium
// which you have. Also, different playforms may // which you have. Also, different platforms may
// support different video formats. // support different video formats.
// //
core.loadVideo("tests/videotest.flv", "flv", 100, 70, true, 0.5); // The video path name is relative to the scripts directory.
core.loadVideo("tests/media/stellarium.mp4", "vid", 100, 70, false);
lab = LabelMgr.labelScreen("Playing video file...", 100, 20, true, 20, "#ff 0000"); lab = LabelMgr.labelScreen("Playing video file...", 100, 20, true, 20, "#ff 0000");
core.playVideo("flv"); core.wait(3);
core.wait(182); core.playVideo("vid");
//core.showVideo("vid");
core.resizeVideo("vid", 0.3, -1); // resize to 1/3 of current width, keep o
riginal aspect ratio.
core.wait(1); // we need a short waiting period while video is playing to h
ave valid values like duration!
dur=core.getVideoDuration("vid");
core.wait(dur/1000. + 2.);
LabelMgr.deleteLabel(lab); LabelMgr.deleteLabel(lab);
core.wait(0.4); core.wait(0.4);
core.dropVideo("flv"); core.dropVideo("vid");
 End of changes. 6 change blocks. 
6 lines changed or deleted 14 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/