Skip to main content

Microsoft Silverlight

How to adjust videos using Timeline markers for playing them from the appropriate marker position RSS Feed

(0)

ankit2012
ankit2012

Member

Member

26 points

22 Posts

How to adjust videos using Timeline markers for playing them from the appropriate marker position

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
swildermuth

Star

Star

8320 points

1,546 Posts

Re: How to adjust videos using Timeline markers for playing them from the appropriate marker position

Timelines are the wrong methology. You can move videos by simply setting the exact position (using the Position property).

(If this has answered your question, "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 3 Workshop
Miami, FL: Oct 12-14th
Portlant, OR: Dec 2-4th
Atlanta, GA: Dec 7-9th
http://silverlight-tour.com

lewalpert
lewalpert

Member

Member

6 points

4 Posts

Re: How to adjust videos using Timeline markers for playing them from the appropriate marker position

 Does Silverlight support SMPTE time code and if yes would that work

ankit2012
ankit2012

Member

Member

26 points

22 Posts

Re: How to adjust videos using Timeline markers for playing them from the appropriate marker position

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.  

lewalpert
lewalpert

Member

Member

6 points

4 Posts

Re: Re: How to adjust videos using Timeline markers for playing them from the appropriate marker position

We can't synchronize either, have been asking about whether Silverlight supports SMPTE time code, like WMP, but have not gotten an answer

ankit2012
ankit2012

Member

Member

26 points

22 Posts

Re: Re: How to adjust videos using Timeline markers for playing them from the appropriate marker position


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.

 

 

JohnDeutscher
JohnDeut...

Member

Member

26 points

8 Posts

Re: Re: How to adjust videos using Timeline markers for playing them from the appropriate marker position

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities