Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WPF
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.
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 28-Dec-12 17:37pm
Edited 28-Dec-12 22:55pm
v3
Comments
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
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
Add this on your XAML page:
<MediaElement Name="Moiveplay" />
Hope this helps.
  Permalink  
Comments
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
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 318
1 Sergey Alexandrovich Kryukov 286
2 RyanDev 75
3 PhilLenoir 60
4 nv3 60
0 Sergey Alexandrovich Kryukov 6,691
1 OriginalGriff 6,119
2 CPallini 2,473
3 Richard MacCutchan 1,697
4 Abhinav S 1,560


Advertise | Privacy | Mobile
Web02 | 2.8.140821.2 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2014
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