This is a migrated thread and some comments may be shown as answers.

TimeLine or TimeBar in VideoEditor (new question)

3 Answers 148 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Mike5
Top achievements
Rank 1
Mike5 asked on 05 Sep 2012, 01:52 PM

Following up on the topic raised by Marcelo, I am also investigating the use of the RadTimeLine and RadTimeBar as controls for a video editor.  My goal is to enable both a large scale view of  key frames, over an hour perhaps, and also permit zooming down to a fine grain view of key  frames... at 4 mSec resolution perhaps.

What I observe is that if I define a RadTimeBar like this, with a 10 second period, I can zoom only down to 30 mSec:

<telerik:RadTimeBar x:Name="xRadTimeBar" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1"
                            PeriodStart="1/1/2011 00:00:00"
                            PeriodEnd="1/1/2011 00:00:10"
                            VisiblePeriodStart="1/1/2011 00:00:00"
                            VisiblePeriodEnd="1/1/2011 00:00:10"
                            SelectionStart="1/1/2011 00:00:00"
                            SelectionEnd="1/1/2011 00:00:10"
                            IsSnapToIntervalEnabled="True"
                            >
            <telerik:RadTimeBar.Intervals>
                <telerik:MinuteInterval IntervalSpans="1"/>
                <telerik:SecondInterval IntervalSpans="1"/>
                <telerik:MillisecondInterval IntervalSpans="4, 16, 32, 64"/>
            </telerik:RadTimeBar.Intervals>
 
        </telerik:RadTimeBar>


But with a period of 1 second, I can zoom down to 4 mSec:


<telerik:RadTimeBar x:Name="xRadTimeBar" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1"
                            PeriodStart="1/1/2011 00:00:00"
                            PeriodEnd="1/1/2011 00:00:01"
                            VisiblePeriodStart="1/1/2011 00:00:00"
                            VisiblePeriodEnd="1/1/2011 00:00:01"
                            SelectionStart="1/1/2011 00:00:00"
                            SelectionEnd="1/1/2011 00:00:01"
                            IsSnapToIntervalEnabled="True"
                            >
            <telerik:RadTimeBar.Intervals>
                <telerik:MinuteInterval IntervalSpans="1"/>
                <telerik:SecondInterval IntervalSpans="1"/>
                <telerik:MillisecondInterval IntervalSpans="4, 16, 32, 64"/>
            </telerik:RadTimeBar.Intervals>
 
       </telerik:RadTimeBar>


Maybe I am not using the control correctly... but if I am, it seem to me that zooming into mSec from a period greater than a few seconds is not supported.  Is that correct?

Changes to the VisiblePeriod values appears to make no difference, the final granularity appears to be tied to the PeriodStart/End values.

Usage advice greatly appreciated!


Thanks,
   Mike

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 10 Sep 2012, 12:58 PM
Hello Mike,

We already answered your support ticket with the same question. For your convenience, I give you the information here as well:

This limitation actually comes from the maximum width that RadTimeBar allows for its content. Currently, we have set a maximum of 30000 pixels for the content for performance reasons. So for a shorter period you will be able to zoom further in. We have a few ideas how we can improve the control for such scenarios, but I cannot give you a precise estimate, when we will allow for unlimited in width content in the timebar.

All the best,
Tsvetie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alexandre
Top achievements
Rank 1
answered on 06 Sep 2013, 12:51 AM
Hi,
I'm evaluating RadTimeBar and looking for similar precisions (like 4-6min down to a couple of milliseconds). Is there any improvement of the component coming in this field?
Also, If I patch Telerik assembly and change the hardcoded 30000 pixels limit to some higher values, what are the performance reasons? I thought that the content would be clipped correctly by WPF. It would mostly depends on the number of underlying visual elements in the content, or there is something else?
Thanks
0
Tsvetie
Telerik team
answered on 09 Sep 2013, 07:49 AM
Hello Alexandre,

In the current version of RadTimeline for WPF, you can specify a MinZoomRange value, depending on your specification and the value will be respected.

Regards,
Tsvetie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
TimeLine
Asked by
Mike5
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Alexandre
Top achievements
Rank 1
Share this question
or