Slowing down the time slider (1:1)

992 views
Skip to first unread message

losthorse

unread,
Jul 30, 2010, 2:09:51 AM7/30/10
to KML Developer Support - Google Earth Plug-in
It looks like others have asked this question; however, I don't
understand the answer. I have been making .kml files for a few months
buy exporting tracking info out of an SQL database. I have some audio
that I would like to sync with my playback but the slowest the Google
Earth application will play is 2:1 (2 virtual seconds for every one
true second). I have started playing with the Google Earth Plug In and
(with no training in Java Script) I have gotten some of my files to
display as they would in the Google Earth Application. My problem is
that I have been unsuccessful in slowing down the speed of the time
slider.

I have been looking at this website, but its just not basic enough for
me...
http://code.google.com/apis/earth/documentation/time.html

I have been playing with this:
ge.getTime().setRate(1);

Can anyone help me understand the process so I can slow this down?

Josh L

unread,
Jul 30, 2010, 1:07:24 PM7/30/10
to KML Developer Support - Google Earth Plug-in
Hi there,

First off, if you wish to sync audio with the KML, you may wish to
look at Tours.

That said, the syntax you pasted should work -- what does it do when
you try? Does it have any effect? What if you change the number from
1 to something else - does it have any effect? Can you paste a link
to the page that does not seem to be working so we can take a look?

You may wish to also take a look at a sample that demonstrates
changing the clock rate at http://code.google.com/apis/ajax/playground/#internal_clock_rate

Cheers,

-Josh

On Jul 29, 11:09 pm, losthorse wrote:
> It looks like others have asked this question; however, I don't
> understand the answer. I have been making .kml files for a few months
> buy exporting tracking info out of an SQL database. I have some audio
> that I would like to sync with my playback but the slowest the Google
> Earth application will play is 2:1 (2 virtual seconds for every one
> true second). I have started playing with the Google Earth Plug In and
> (with no training in Java Script) I have gotten some of my files to
> display as they would in the Google Earth Application. My problem is
> that I have been unsuccessful in slowing down the speed of the time
> slider.
>
> I have been looking at this website, but its just not basic enough for
> me...http://code.google.com/apis/earth/documentation/time.html

losthorse

unread,
Aug 1, 2010, 1:50:32 PM8/1/10
to KML Developer Support - Google Earth Plug-in
Thanks for posting that sample, it was just what I needed! I was able
to copy that code and slowdown the timeslider.

Your suggestion to use Tours is my next step... the data we have
includes audio; however, the native Google Earth application plays our
geo data at 2x realtime. Obviously there are two choices, I could play
the audio at real time (resulting in audio that is out of sync) or I
can increase the audio by 2x (resulting in audio that is in sync;
however, to fast to understand).

Option three: Use the Google Earth Plug In to slow down the geo data
and then sync the audio.
My problem is adding a Tour to the GE Plug In. I don't need an
elaborate tour. A fixed camera location is fine, all I really want is
the audio added. I am not using the new Tracks feature at this time
and would like to keep it that way for at least a little while longer.
Any thoughts on the most efficient way to add an audio track to our
geo data? Is it possible to add a tour in the script of the plug in,
or should I be adding the Tour in the kml of the geo data?

Thanks!

On Jul 30, 12:07 pm, Josh L wrote:
> Hi there,
>
> First off, if you wish to sync audio with the KML, you may wish to
> look at Tours.
>
> That said, the syntax you pasted should work -- what does it do when
> you try?  Does it have any effect?  What if you change the number from
> 1 to something else - does it have any effect?  Can you paste a link
> to the page that does not seem to be working so we can take a look?
>
> You may wish to also take a look at a sample that demonstrates
> changing the clock rate athttp://code.google.com/apis/ajax/playground/#internal_clock_rate

Josh L

unread,
Aug 6, 2010, 1:37:46 PM8/6/10
to KML Developer Support - Google Earth Plug-in
Hi there,

You can definitely play an existing KML Tour using the plugin (http://
code.google.com/apis/ajax/playground/?exp=earth#playing_tours) or
create/parse Tour KML using the plugin --- however I think there may
be some confusion regarding whether a Tour is what you want. If you
do go with a Tour, theoretically you would write the Tour KML so it
displays your data at the appropriate 'speed', and also syncs the
audio.

In other words, you would probably not create the Tour by clicking
'play' on the time slider while recording a Tour in the Earth UI, but
rather by programmatically writing the KML to display the appropriate
things at the appropriate time.

If you have some example KML to look at it may be helpful in more
explicit suggestions..

Cheers,

-Josh
Reply all
Reply to author
Forward
0 new messages