I want to play video in WP7.
This is my code:
MediaPlayerLauncher player = new MediaPlayerLauncher();
player.Media = new Uri("video link", UriKind.RelativeOrAbsolute);
player.Location = MediaLocationType.Data;
player.Controls = MediaPlaybackControls.All;
player.Show();
This is working fine.
After finishing this video I want to continue playing another video. I want to play two videos one after another.
Is this possible in WP7? How can I accomplish this?
The title asks how to play videos in general. Are you aware of the
MediaElement? It can be used to play back video as well and it has an event telling you when video playback ends. And it can also give you the video length.This blog post has an example of both
MediaElementandMediaPlayerLauncher.