From 58ce018625384cf21f336584c5bedbf712d7315e Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 9 Jul 2008 12:02:01 +0000 Subject: for testing purposes only: added void osSetParcelMediaTime(double time) command to script engines. which sets the position of the media that is playing. Time is in seconds. Doesn't do any security checking (should be checking that the object/script is owned by the parcel owner). So could be abused, if it is then we should remove it, or add the security. Only tested in dotnet scripting engine, but should work in XEngine too. --- OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs') diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs index 2d9fd09..9dd7e01 100644 --- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs @@ -2034,6 +2034,13 @@ namespace OpenSim.Region.ScriptEngine.Common return m_LSL_Functions.llList2Float(src, index); } + + //for testing purposes only + public void osSetParcelMediaTime(double time) + { + m_LSL_Functions.osSetParcelMediaTime(time); + } + // LSL CONSTANTS public const int TRUE = 1; public const int FALSE = 0; -- cgit v1.1