Click here to Skip to main content
15,884,819 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
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.
C#
Moiveplay.Source = new Uri(urls);
           Moiveplay.LoadedBehavior = Moiveplay.UnloadedBehavior = MediaState.Manual;
           Moiveplay.Play();


But my problem is not with code i think. Because the video is playing, but its not viewing it. I hope you understand.
Posted
Updated 28-Dec-12 22:55pm
v3
Comments
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!

Hi,

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

Hope this helps.
 
Share this answer
 
Comments
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.
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.
 
Share this answer
 

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


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900