This is a migrated thread and some comments may be shown as answers.

RADMediaPlayer - FullScreen - Issue

5 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Clement
Top achievements
Rank 2
Clement asked on 22 Jul 2008, 04:20 AM
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

5 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 22 Jul 2008, 11:12 AM
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
0
Clement
Top achievements
Rank 2
answered on 23 Jul 2008, 02:40 AM
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
0
Kiril Stanoev
Telerik team
answered on 23 Jul 2008, 01:48 PM
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
0
Clement
Top achievements
Rank 2
answered on 24 Jul 2008, 01:31 AM

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

0
Kiril Stanoev
Telerik team
answered on 24 Jul 2008, 03:47 PM
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.
Tags
General Discussions
Asked by
Clement
Top achievements
Rank 2
Answers by
Kiril Stanoev
Telerik team
Clement
Top achievements
Rank 2
Share this question
or