Player Fullscreen Problem

6 posts, 0 answers
  1. Ruhi TAS
    Ruhi TAS avatar
    8 posts
    Member since:
    Jul 2009

    Posted 02 Sep 2009 Link to this post

     I tried to use silverligth demo fully control example . But i have a proplem with it !!
    If i place media player at the center of silverligth project . i am geting spaces on the left and top ? (After the pressing full size button) Because of that i put the radmediaplayer on the left of my page :-(
    http://www.trt.net.tr/Canli/AnaSayfa.aspx

    and also sometimes , Despite I changed the channel, the former channel is the sound can be heard?
    I think radmedia still connected to our server ? or layout couldn't remove (LayoutRoot.Children.Remove(RadMediaPlayer1);) player?

    are ther any simple full screen solution?
    thanx
    ruhi

    ......

     

    private void Content_FullScreenChanged(object sender, EventArgs e)

     

    {

     

     

    if (Application.Current.Host.Content.IsFullScreen)

     

    {

    RadMediaPlayer1.Width =

    Application.Current.Host.Content.ActualWidth;

     

    RadMediaPlayer1.Height =

    Application.Current.Host.Content.ActualHeight;

     

    popUp.IsOpen =

    true;

     

    LayoutRoot.Children.Remove(RadMediaPlayer1);

    popUp.Child = RadMediaPlayer1;

    }

     

    else

     

    {

    RadMediaPlayer1.Width =

    Double.NaN;

     

    RadMediaPlayer1.Height =

    Double.NaN;

     

    popUp.Child =

    null;

     

     

    if (!LayoutRoot.Children.Contains(RadMediaPlayer1))

     

    {

    LayoutRoot.Children.Add(RadMediaPlayer1);

    }

    RadMediaPlayer1.IsFullScreen =

    false;

     

    }

    }


     

     

    private void RadMediaPlayer1_FullScreenChanged(object sender, EventArgs e)

     

    {

     

    //this.currentMediaElementPosition = RadMediaPlayer1.MediaElement.Position;

     

     

     

     

     

     

    Application.Current.Host.Content.IsFullScreen = RadMediaPlayer1.IsFullScreen;

     

    }

     
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 04 Sep 2009 Link to this post

    Hi Ruhi TAS,

    This may be a combination of a Width / Height that is set somewhere and Vertical / HorizontalAlignment.

    Please make sure that no Width/Height is set to elements and that the Horizontal and Vertical alignments of the elements in the popup are "Stretch".

    I am sending you a simple project where the MediaPlayer goes to full screen and is in the center of the screen otherwise.

    You can explicitly call the Stop() method to make sure that the video will stop before you remove the MediaPlayer.

    Hopefully you will be able to make it stretch in your case as well,

    Regards,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Ruhi TAS
    Ruhi TAS avatar
    8 posts
    Member since:
    Jul 2009

    Posted 04 Sep 2009 Link to this post

    Hi Miroslav ..
    i changed my code like thsi but sitl i am getting other tv channel sound ( all once clicked TV channel) .
    you can get error like this !! Firstly change tv channel to diferent one  TRT3, TRT2 etc then press TRTRadio Button (on the left) go Radio section .. Then press "TV Izle" button.. Lastly press Full screen button !! You can hear Other channel sound while you are in fullscreen . If you press ESC other channel sound  stops .. but if you press again full screen button you can hear sound other channels.
    http://www.trt.net.tr/Canli/AnaSayfa.aspx
    .this problem more important for me!!
    best regards

     

    private

     

    void Content_FullScreenChanged(object sender, EventArgs e)

     

    {

     

     

     

    if (Application.Current.Host.Content.IsFullScreen)

     

    {

    RadMediaPlayer1.Width =

     

    Application.Current.Host.Content.ActualWidth;

     

    RadMediaPlayer1.Height =

     

    Application.Current.Host.Content.ActualHeight;

     

    RadMediaPlayer1.Stop();

    LayoutRoot.Children.Remove(RadMediaPlayer1);

     

    popUp.IsOpen =

     

    true;

     

    popUp.Child = RadMediaPlayer1;

     

     

    //RadMediaPlayer1.Play();

     

     

    }

     

    else

     

     

    {

    RadMediaPlayer1.Width =

    Double.NaN;

     

    RadMediaPlayer1.Height =

     

    Double.NaN;

     

    RadMediaPlayer1.Stop();

     

    popUp.Child =

     

    null;

     

     

     

    if (!LayoutRoot.Children.Contains(RadMediaPlayer1))

     

    {

    RadMediaPlayer1.Stop();

    LayoutRoot.Children.Add(RadMediaPlayer1);

     

     

    //RadMediaPlayer1.Play();

     

     

    }

    RadMediaPlayer1.IsFullScreen =

    false;

     

    }

    }

     

  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 07 Sep 2009 Link to this post

    Hello Ruhi TAS,

    I am sorry for the delayed reply,

    Unfortunately I could not reproduce the problem. I followed the steps you described but I did not hear a sound in the background.

    Did you find a resolution to the problem before I replied or is it that I cannot reproduce it?

    Since I see that your application is already up & running, I remembered about out Silverlight Contest. You may want to look into it and take part if you are interested:

    http://www.telerik.com/community/silverlight-contest.aspx

    Sincerely yours,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Ruhi TAS
    Ruhi TAS avatar
    8 posts
    Member since:
    Jul 2009

    Posted 08 Sep 2009 Link to this post

    dear Miroslav
    i suprised to you couldn't have heard sound. because i haven't solved my problem yet :-( . i tried this mornig but i get sound!! please try again. it happens when you go Radio and turn back to TV page!! if.i couldnt solve problem like this in a single application , i am going to separete TV & Radio channel application .. But i dont want to do that . Because it will slow down the application work..  

    i applied contest with my different Remote Monitoring Transmitter System (UZI - UZaktan Izleme Sistemi)  project which is also include this procet, too.

    best regards
    ruhi
  7. Ruhi TAS
    Ruhi TAS avatar
    8 posts
    Member since:
    Jul 2009

    Posted 08 Sep 2009 Link to this post

    Dear miroslav
    i solved my problem!!! i reload silverligth while returnig form Radio section :-)
    TVbutton_click evet

     

    HtmlPage.Window.Navigate(new Uri(HtmlPage.Document.DocumentUri.ToString(), UriKind.Absolute), "_self");
    thanx your kind regards
    best regards !!!

     

Back to Top
DevCraft banner