[totem/gnome-2-32] Support for the "input.time" property from VLC JavaScript API.
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-2-32] Support for the "input.time" property from VLC JavaScript API.
- Date: Wed, 4 Aug 2010 15:30:30 +0000 (UTC)
commit 15763db566180178ab2f7878f4cb7d487cd5fa64
Author: Ivaylo Valkov <ivaylo e-valkov org>
Date: Tue May 18 16:48:05 2010 +0300
Support for the "input.time" property from VLC JavaScript API.
https://bugzilla.gnome.org/show_bug.cgi?id=618929
browser-plugin/totemConeInput.cpp | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/browser-plugin/totemConeInput.cpp b/browser-plugin/totemConeInput.cpp
index 1461569..fb337bc 100644
--- a/browser-plugin/totemConeInput.cpp
+++ b/browser-plugin/totemConeInput.cpp
@@ -86,12 +86,13 @@ totemConeInput::GetPropertyByIndex (int aIndex,
case eLength:
return DoubleVariant (_result, Plugin()->Duration());
+ case eTime:
+ return DoubleVariant (_result, double (Plugin()->GetTime()));
case eFps:
case eHasVout:
case ePosition:
case eRate:
- case eTime:
TOTEM_WARN_GETTER_UNIMPLEMENTED (aIndex, _result);
return VoidVariant (_result);
}
@@ -106,10 +107,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]