![how to rotate video in media player clasic how to rotate video in media player clasic](https://www.5kplayer.com/video-music-player/img/5kplayer-icon-1202.png)
/ private void Media_Drop( object sender, DragEventArgs e)
#How to rotate video in media player clasic code#
The associated code is shown below:Ĭopy Code /// /// Handles Drop Event for Media Items.
![how to rotate video in media player clasic how to rotate video in media player clasic](http://www.subinet.es/wp-content/uploads/2011/07/media-player-classic-x64-1.jpg)
I firstly allow the user to drag and drop files on to the control, and then check what type the files are. So let's carry on, shall we? Play VideosĪs the WPF MediaElement relies on the Windows Media Player, I simply only allow files that are supported by the WMP to be played in the attached control. Shall we carry on and see how each part was done? I won't explain it all as a lot of it is standard WPF stuff like Styles/Templates/Binding, but sometimes, there will even be something there that needs to be mentioned. ucMediaPlayer.xaml: The main media player control.Utility Classes/XmlHandler.cs: A simple XML read/writer to load/save media item lists.Utility Classes/MediaItem.cs: A simple media item to be used to bind a ItemsControl ( ListBox).Utility Classes/GridLengthAnimation.cs: GridLength animator, by Christian Graus, Nishant Sivakumar, available here.Resources/Templates.xaml: All the WPF Templates.Resources/Styles.xaml: All the WPF Styles.OK, first of all, I will just mention what files are involved these are as follows: What I will do is talk about each item in turn as the article progresses. Control media playback (pause / stop / play).So that's what we are going to do, build a simple media player control that will have the following features: I am a mere underling, showing simpler subjects to beginners of WPF. There's nothing ground breaking here, as Josh Smith is the one to watch for amazing WPF tricks he's crazy, man believe me, he know what's what in WPF. That is what this article is all about really. I used a MediaElement some time ago in one my first WPF articles, and thought it may be time to re-visit it and make a simple video player control. Download demo app including source files - 65.5 KB.