Skip to content

How can i display Video(real player) in Panel

moh tur

Asked Dec 28, 2008, 8:34 AM EST3 answers
Share
LinkedInX

when i am working with  AxRealAudioObjects.AxRealAudio   i have  ( System.Windows.Forms.Panel) i want to display the vedio inside it

it is easy when you are working with vedio from the class(Microsoft.DirectX.AudioVideoPlayback.Video)

becuase it has this property (Owner) but there is no property like this when you are working with AxRealAudioObjects.AxRealAudio

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    you can use Panel.Controls.Add(); to add controls within the panel or am I miss understood your question?
    0
  • 0

    first of all Thanks for your answer , i tried to do that ,

    i have realPlayer object

    AxRealAudioObjects.AxRealAudio  MyReal_Player = new AxRealAudioObjects.AxRealAudio();

    and i have the control (Panel) From Class

    System.Windows.Forms.Panel  MyPanel

    MyPanel.Controls.Add(MyReal_Player )

    and i run the Application and success and no Error just when i play the Vedio give me an Error . but i solve it in another way like this

    MyReal_Player.Parent.Controls.Add(MyPanel);

    0
  • 1 short reply
    • Bechir Bejaoui
      0
      Ah OK, good luck!!
      0