Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Media element to play backwards.
5 replies. Latest Post by Min-Hong Tang - MSFT on November 10, 2009.
(0)
tjcombo
Member
4 points
27 Posts
11-04-2009 1:40 PM |
Hallo, I have a media element, i can make it play forwards, but i want to learn how to make it play backwards. anybody know ?
ekleeman
59 points
42 Posts
11-05-2009 5:07 AM |
Well, you could take the Position property and wind it backwards programatically in a loop but you would not have audio.
This code will reverse the video by 5 seconds....
current = MediaElement.Position;
MediaElement.Position = current.Subtract(SubtractTime);
11-05-2009 5:25 AM |
how do i place your code in my code? this is my code:
{
InitializeComponent();
jeevi_viji_wmv.Play();
}
// Want it to play backwards when clicked here.
11-05-2009 5:47 AM |
Just place the reverse code in click_reverse
11-05-2009 6:11 AM |
namespace vijeevi {public partial class MainPage : UserControl {public MainPage() { // Required to initialize variables
current = jeevi_viji_wmv.Position;
jeevi_viji_wmv.Position = current.Subtract(SubtractTime);
------- This doesnt work.
Min-Hong...
Contributor
3619 points
412 Posts
11-10-2009 3:07 AM |
Hi,
I am afraid media element does not support such a function directly. Based on my knowledge, there is only one workaround that is to control the MediaElement's position property. And it will not achieve an effect like you are using your dvd player.
Always it's more like a slide show along with sound snippets.
Best Regards