Skip to main content
Home Forums Silverlight Design Video and Media How to adjust videos using Timeline markers for playing them from the appropriate marker position
6 replies. Latest Post by JohnDeutscher on February 18, 2009.
(0)
ankit2012
Member
26 points
22 Posts
10-17-2007 9:46 AM |
Hello All !
I am Kris. I would like to know if there is any possible way for playing the videos from the desired position, using timeline markers. Any response for this will be appreciated.
Thanks and Regards
Kris
swildermuth
Star
8320 points
1,546 Posts
10-22-2007 3:40 AM |
Timelines are the wrong methology. You can move videos by simply setting the exact position (using the Position property).
lewalpert
6 points
4 Posts
11-09-2007 11:53 AM |
Does Silverlight support SMPTE time code and if yes would that work
11-13-2007 12:47 PM |
I am able to that by adjusting the position. But how should I synchronize the videos, which represent the forward and backward direction of the same lane but differ in their video lengths.
11-13-2007 1:58 PM |
We can't synchronize either, have been asking about whether Silverlight supports SMPTE time code, like WMP, but have not gotten an answer
11-14-2007 2:30 AM |
Silverlight supports Windows Media Audio and Video (WMA, WMV7-9), and VC-1, as well as MP3 audio. Windows Media Video 9(WMV-9) is the Microsoft implementation of the SMPTE VC-1 standard video codec.
JohnDeut...
8 Posts
02-18-2009 5:31 PM |
Not exactly....
At least not in the way the old WMP.ocx would allow you to navigate based on the embeded per-frame Data Unit Extension that is in the Format SDK
However, you can easily convert the TimeSpan object that is reported back from Silverlight's MediaElement to SMPTE 12M timecode using a class that I wrote that is included in the Expression Encoder 2 SP1 player templates.
If you have Expression Encoder 2.0 SP1 installed. Go to this location to see the Timecode class.
C:\Program Files (x86)\Microsoft Expression\Encoder 2\Templates\en\SL2Standard\Source\MediaPlayer\TimeCode.cs
This is a Stuct that works a lot like a TimeSpan in .NET. You pass it the TotalSeconds from the CurrentPosition timespan of the MediaElement and the SMPTE 12M framerate that you want calculated (say for example SMPTE 29.97 Drop Frame), and the Struct will give you back a valid SMPTE timecode string.
You can also use it in reverse. Pass it a time and framerate that you want to go to, and get back the Absolute time in seconds, then set the current position to that.