Wpf how do i videos




















Please Sign up or sign in to vote. See more: C. Copy Code. Posted Jun pm C. Add a Solution. Accept Solution Reject Solution. First line in the "Remarks" section of the MediaElement docs: " When distributing media with your application, you cannot use a media file as a project resource. Posted Jun pm Mark Salsbery. I don't understand, i can find what your talking about. Mark Salsbery Jun am. You can't play video from a resource.

You can play a file attached to a project as content. Add a media file to your project. What type of file is it? Did you call MediaElement. Is that file name correct? Is the path correct? Mark Salsbery Jun pm. Handle the MediaFailed event on the MediaElement and look at the exception. I used my twitter username and password. But I got nothing back from Twitter. Then I tried the debug, indicating. I just downloaded an tried the project.

Following the code it fails on LoadLatestTweets. I don't think any of those videos and related code use 3rd party dll's that might not work anymore.

Thanks for your try And I also thank for your recommendation for other training resources. It is not easy to keep up the changes. Figure 1. Video enabled WPF application. The code listed in Listing 1 creates the user interface screen. Browse Media. Listing 1. The code behind looks like Listing 2.

As you can see from this code, on the Windows1 constructor I set the Volume, Width, and Height of the control. Text" as the media file name. InitializeComponent ;. ShowDialog ;. Show "Enter a valid media file" ;.

Text ;. Play ;. Pause ;.



0コメント

  • 1000 / 1000