0

I am new to wpf and I want to play videos in a wpf application. I tried Media Element in wpf, but throwing error. I am not sure webbrowser is the right choice. I want to display application in windows service.

  <MediaElement VerticalAlignment="Center" Visibility="Visible" 
  HorizontalAlignment="Center" Source="
  https://view.vzaar.com/821466.flashplayer"
  Name="myMediaElement" Height="350" 
  Width="640" />
2
  • I suggest that you publish the error, if you want other users to help you solve it.
    – Noich
    Jun 12, 2014 at 10:18
  • Whenever you need to find out something about a particular class, just go to MSDN instead of wasting your time asking here. You can get immediate answers to your questions from the MediaElement Class on MSDN.
    – Sheridan
    Jun 12, 2014 at 10:31

1 Answer 1

1

I'm not familiar with WPF, but I am with vzaar (I'm the CTO)

I think where you're going wrong is the https://view.vzaar.com/821466/flashplayer bit. This will attempt to open a full flash player SWF. I'm not sure if this is what MediaElement.Source can handle.

If you instead use the URI for the video itself (e.g. https://view.vzaar.com/821466/video) and poster frame e.g. (https://view.vzaar.com/821466/image), this should work better.

Any other issues I suggest you raise a ticket on vzaar.com/help and our engineers can assist you more easily.

Adrian

2
  • I have tried with webbrowser in wpf and it worked. Thank U for your response Jun 13, 2014 at 6:54
  • Excellant. Good to hear it.
    – Sevitz
    Jun 13, 2014 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.