Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

 

 

Code example in C #, WPF to load a video, which is displayed as thumbnail.

 

Subject: MediaElement MediaPlayer, Image,Thumbnail, Preview, Video, mp4, mov

 

        private void add_Video_Image(string sFullname_Path_of_Video)

        {

            //----------------< add_Video_Image() >----------------

            ////*add a mediaElement to List

            MediaElement mediaElement = new MediaElement();

            mediaElement.LoadedBehavior = MediaState.Manual;

            mediaElement.ScrubbingEnabled = true;

            mediaElement.Source = new Uri(sFullname_Path_of_Video);

            mediaElement.Position += TimeSpan.FromSeconds(1);

            mediaElement.Play();

            mediaElement.Stop();

           

            //< add >

            panel_Images.Children.Add(mediaElement);

            //</ add >

            //----------------</ add_Video_Image() >----------------

        }

 

From the code follow the preview videos as still images as here in the application: Move Images to Subfoldersy by Date

 

Video:

 

Mobile
»
WPF Datagrid: Set Color of Row when it has no Focus
»
WPF Datagrid: Change the Color of Selected Row
»
WPF: Change Selected Row Color in DataGrid
»
WPF: Read SelectedItem from DataGrid with Dynamic As Anonymous Type
»
WPF: Elements too wide, edge Cut off
»
Solved: System.InvalidCastException HResult 0x80004002 in Select DataGrid
»
WPF: Combobox Selected Value
»
WPF Datagrid: Column is not displayed
»
WPF: Show video in preview
»
WPF Webbrowser: Suppress Java Errors or Set WebBrowser to Silent

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de