RADMediaPlayer - FullScreen - Issue

6 posts, 0 answers
  1. Clement
    Clement avatar
    20 posts
    Member since:
    May 2008

    Posted 21 Jul 2008 Link to this post

    Dear Friends,

    I tried using RadMediaPlayer in my Silverlight Application following the Full Screen sample given in the Online Demo section.

    ISSUE : The Stream starts from the Begining everytime it is toggled between Full Screen and Normal mode.

    Pls advice me if there is a way out so that stream stays in the current position between the normal and full screen switches as other players do.

    Thanks
    Clement
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 22 Jul 2008 Link to this post

    Hi Clement,

    The streaming restarts every time when you toggle the normal screen to a full screen as RadMediaPlayer gets removed from its current parent and placed inside a popup.

    I suggest that you create a variable and store the position of RadMediaPlayer's MediaElement in this newly created variable. Then, you can hook on the RadMediaPlayer's MediaOpened event and update the position of the MediaElement everytime you fire the event.

    In the attachment, you can find the latest RadMediaPlayer's dll along with the updated Fullscreen example.

    Thanks for your feedback and if you experience any further problems, do not hesitate to contact us.

    Kind regards,

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Clement
    Clement avatar
    20 posts
    Member since:
    May 2008

    Posted 22 Jul 2008 Link to this post

    Hi,

    Thanks to Telerik Team for the immediate reply.

    I used the sample code and the new MediaPlayer DLL and i got the following Error :

    Error 1 The type or namespace name 'RadRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) C:\Users\Clement Arul\Documents\Visual Studio 2008\Projects\MFTTutorials\MFTTutorials\Page.xaml.cs 65 65 MFTTutorials

    I have attached the link for my XAML and CS Code for ur reference.

    http://mft.megafortris.com/mfmportal/FullScreen.zip


    Pls advice

    Thanks
    Clement
  4. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 23 Jul 2008 Link to this post

    Hi Clement,
    The RadRoutedEventArgs class is located in Telerik.Windows namespace inside the Telerik.Windows.Controls.dll. Try subsituting the RadRoutedEventArgs with Telerik.Windows.RadRoutedEventArgs or add the Telerik.Windows namespace at the top of your page.

    So instead of having 

    private

    void RadMediaPlayer1_MediaOpened(object sender, RadRoutedEventArgs e)

    try using

    private

    void RadMediaPlayer1_MediaOpened(object sender, Telerik.Windows.RadRoutedEventArgs e)

    If this does not help then as an alternative you can replace the RadRoutedEventArgs with simple EventArgs

    private

    void RadMediaPlayer1_MediaOpened(object sender, EventArgs e)
     

    I have used your files inside a sample project which you can find attached.
    If you experience any additional problems, contact us as soon as possible.

    All the best,
    Kiril
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  5. Clement
    Clement avatar
    20 posts
    Member since:
    May 2008

    Posted 23 Jul 2008 Link to this post

    Thanks Kiril,

    private void RadMediaPlayer1_MediaOpened(object sender, Telerik.Windows.RadRoutedEventArgs e)

    The above worked and the Full Screen is working.

    I have a small usage issue which i believe can be fixed in the future versions of the RadMediaPlayer : 

    Every time the RadMediaPlayer toggles between Normal mode and Full Screen Mode, it closes the player and open it in a pop-up window ... This behaviour is showing a Black Blank screen for a second during the toggle which is not providing a smooth transitional effect to the user. It feels very obvious that we are stopping and starting the RadMediaPlayer again.

    Thanks for ur prompt support !

    Cheers !!!
    Clement Arul

  6. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 24 Jul 2008 Link to this post

    Hello Clement,

    The current implementation of the Fullscreen for the MediaPlayer has the glitch you mentioned. If you do not need the MP to be in a popup - you can avoid adding it to the popup and this way you will not have this glitch.

    We are not satisfied with the way the fullscreen mode is implemented for the moment and will try to find another solution. The problem is that we need to display the MP on top of everything on the page, but without moving the MP withing the visual tree. We will let you know once we have a better solution.

    Greetings,
    Kiril
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top