diff options
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.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs index fc62b02..ca12a42 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | |||
@@ -569,5 +569,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
569 | return String.Empty; | 569 | return String.Empty; |
570 | } | 570 | } |
571 | } | 571 | } |
572 | |||
573 | //for testing purposes only | ||
574 | public void osSetParcelMediaTime(double time) | ||
575 | { | ||
576 | World.ParcelMediaSetTime((float)time); | ||
577 | } | ||
572 | } | 578 | } |
573 | } | 579 | } |