Click here to Skip to main content
11,483,983 members (67,893 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WPF
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 18:37pm
Edited 28-Dec-12 23:55pm
Oleksandr Kulchytskyi at 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 at 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
0 Sergey Alexandrovich Kryukov 210
1 Frankie-C 165
2 Raje_ 155
3 OriginalGriff 142
4 Abhipal Singh 108
0 Sergey Alexandrovich Kryukov 8,489
1 OriginalGriff 7,943
2 Sascha Lefèvre 3,114
3 Maciej Los 2,581
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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