Click here to Skip to main content
13,590,079 members
Rate this:
Please Sign up or sign in to vote.
See more:
I created a solution that contain both Windows application project and WPF project in the singe solution. Running this on Windows 8, i am getting a unknown error. That if start up project is Windows application, then the video is playing but its not visible. But If the start up project is WPF then the video is playing well. I know how its sounds like. But i am getting this problem. Please help me on this.. Thank you.

Code is this only.
Moiveplay.Source = new Uri(urls);
           Moiveplay.LoadedBehavior = Moiveplay.UnloadedBehavior = MediaState.Manual;

But my problem is not with code i think. Because the video is playing, but its not viewing it. I hope you understand.
Posted 28-Dec-12 17:37pm
Updated 28-Dec-12 22:55pm
Oleksandr Kulchytskyi 29-Dec-12 4:39am
So please provide us with you code where you have been working with Media Element !
Without code anyone cant help you!
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


Add this on your XAML page:
<MediaElement Name="Moiveplay" />

Hope this helps.
ssyuvaraja 29-Dec-12 6:58am
I have that line. Without that like the error will show. I included the Player in XAML design and code it as i given in top. I am saying the same player working fine while i keep the Start up project as "WPF". If i change that to "Windowsapplication" and call the WPF page. Then the same Media element is no View the video. But its playing, i identified using Media elements position.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I found the solution. In the Project Properties-> Build -> Platform target-> changed that to X86. Then i checked that project exe file in windows 8. Its working fine. The video is playing also the no problem with visible of video.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03-2016 | 2.8.180618.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100