diff options
-rw-r--r-- | browser-plugin/totemConeInput.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/browser-plugin/totemConeInput.cpp b/browser-plugin/totemConeInput.cpp index 475629cf3..c10d57ae4 100644 --- a/browser-plugin/totemConeInput.cpp +++ b/browser-plugin/totemConeInput.cpp @@ -84,12 +84,14 @@ totemConeInput::GetPropertyByIndex (int aIndex, return Int32Variant (_result, state); } + case eTime: + return DoubleVariant (_result, double (Plugin()->GetTime())); + case eFps: case eHasVout: case eLength: case ePosition: case eRate: - case eTime: TOTEM_WARN_GETTER_UNIMPLEMENTED (aIndex, _result); return VoidVariant (_result); } @@ -104,10 +106,17 @@ totemConeInput::SetPropertyByIndex (int aIndex, TOTEM_LOG_SETTER (aIndex, totemConeInput); switch (Properties (aIndex)) { + case eTime: + int32_t time; + if (!GetInt32FromArguments (aValue, 1, 0, time)) + return false; + + Plugin()->SetTime(time); + return true; + case ePosition: case eRate: case eState: - case eTime: TOTEM_WARN_SETTER_UNIMPLEMENTED (aIndex, _result); return true; |