* Comment out body of experimental ParcelMediaSetTime() since MW says it causes a mono 1.2.4 compile to fail
and MW says it will soon be replaced anyway.0.6.0-stable
parent
eec67d7402
commit
aad55e5034
|
@ -3664,21 +3664,22 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void ParcelMediaSetTime(float time)
|
public void ParcelMediaSetTime(float time)
|
||||||
{
|
{
|
||||||
//should be doing this by parcel, but as its only for testing
|
//should be doing this by parcel, but as its only for testing
|
||||||
ForEachClient(delegate(IClientAPI client)
|
// The use of Thread.Sleep here causes the following compiler error under mono 1.2.4
|
||||||
{
|
// OpenSim/Region/Environment/Scenes/Scene.cs(3675,17): error CS0103: The name `Thread' does not exist
|
||||||
client.SendParcelMediaCommand((uint)(2), ParcelMediaCommandEnum.Pause, 0);
|
// in the context of `<>c__CompilerGenerated17'
|
||||||
Thread.Sleep(10);
|
// MW said it was okay to comment the body of this method out for now since the code is experimental
|
||||||
client.SendParcelMediaCommand((uint)(64), ParcelMediaCommandEnum.Time, time);
|
// and will be replaced anyway
|
||||||
Thread.Sleep(200);
|
// ForEachClient(delegate(IClientAPI client)
|
||||||
client.SendParcelMediaCommand((uint)(4), ParcelMediaCommandEnum.Play, 0);
|
// {
|
||||||
});
|
// client.SendParcelMediaCommand((uint)(2), ParcelMediaCommandEnum.Pause, 0);
|
||||||
|
// Thread.Sleep(10);
|
||||||
|
// client.SendParcelMediaCommand((uint)(64), ParcelMediaCommandEnum.Time, time);
|
||||||
|
// Thread.Sleep(200);
|
||||||
|
// client.SendParcelMediaCommand((uint)(4), ParcelMediaCommandEnum.Play, 0);
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue