summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorangela@angelas-macbook-pro.local <angela@angelas-macbook-pro.local>2009-10-19 19:00:59 +0800
committerangela@angelas-macbook-pro.local <angela@angelas-macbook-pro.local>2009-10-19 19:00:59 +0800
commitfce70328535ec04aba64972f47cface0b2fd3046 (patch)
tree7ff690542826095c229a7827cd44cc3d6684a985 /indra/newview
parentb4275c5d48c8cdf4bbe206822878fcf615897ac9 (diff)
make callbacks for media hud control data driven, add whitelist indicator , add secure browsing indicator
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermedia.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index b8cf3e667e..1a183d61f3 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -1024,7 +1024,14 @@ void LLViewerMediaImpl::navigateBack()
{
if(mMediaSource->pluginSupportsMediaTime())
{
- mMediaSource->start(-2.0);
+ F64 step_scale = 0.02; // temp , can be changed
+ F64 back_step = mMediaSource->getCurrentTime() - (mMediaSource->getDuration()*step_scale);
+ if(back_step < 0.0)
+ {
+ back_step = 0.0;
+ }
+ mMediaSource->seek(back_step);
+ //mMediaSource->start(-2.0);
}
else
{
@@ -1040,7 +1047,14 @@ void LLViewerMediaImpl::navigateForward()
{
if(mMediaSource->pluginSupportsMediaTime())
{
- mMediaSource->start(2.0);
+ F64 step_scale = 0.02; // temp , can be changed
+ F64 forward_step = mMediaSource->getCurrentTime() + (mMediaSource->getDuration()*step_scale);
+ if(forward_step > mMediaSource->getDuration())
+ {
+ forward_step = mMediaSource->getDuration();
+ }
+ mMediaSource->seek(forward_step);
+ //mMediaSource->start(2.0);
}
else
{