×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    63

    Question YouTube videos do not play full screen on a user's phone

    I have an app that has a few pages with a web browser control on them. The web browser control contains a web page with a YouTube video player loaded in it, thumbnail preview with play button, standard YouTube player HTML. When you click on the player, the YouTube player is launched (that is, you exit my app while the browser launches the YouTube player app). I just got a bad review from a user in the USA complaining that despite the content being good, the videos don't play full-screen. I have no control of this since my app is no longer present when the YouTube player takes control. On my phone, and as far as I know all my other users, they do play full screen. What could be the reason that this particular users phone doesn't play the videos full screen?
    Last edited by roschler; 2014-01-18 at 12:44.

  2. #2
    Regular Contributor
    Join Date
    Dec 2012
    Posts
    66

    Re: YouTube videos do not play full screen on a user's phone

    Hi roschler,

    I am not too sure about the cause of this issue but while embedding youtube videos on your website, Youtube Player API allows you to set allowfullscreen parameter to false. Which disables the full screen. Maybe the Youtube app is taking that parameter into account.

    Regards,
    Vinay

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    63

    Re: YouTube videos do not play full screen on a user's phone

    Thanks Vinay. Perhaps I'll just add "allowfullscreen=true" to every URL just to see if that helps.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    475

    Re: YouTube videos do not play full screen on a user's phone

    If that doesn't work, post some code on how you're currently playing the videos.

    I currently have an app in the store which displays local news. For the article, I use the WebBrowser control and sometimes YouTube videos are used so I might be able to help?

  5. #5
    Registered User
    Join Date
    Mar 2013
    Posts
    63

    Re: YouTube videos do not play full screen on a user's phone

    Hello Neil,

    The code's about as basic as it comes. I put a WebBrowser control on the Layout and feed it a string containing the HTML for a web page that embeds the YouTube player:

    //Other
    var web = new WebBrowser()
    {
    Height = 600,
    IsScriptEnabled = true
    };

    web.NavigateToString(string.Format("<!doctype html>" +
    "<html><head><title></title></head><body style=background-color:black;>" +
    "<iframe height=\"600\" src=\"http://www.youtube.com/embed/{0}\" width=\"1000\"></iframe>" +
    "</body></html>", video));

    LayoutRoot.Children.Clear();
    LayoutRoot.Children.Add(web);
    It's the only complaint I've heard out of a few thousand downloads so I'm guessing it's some weird setting on the user's phone?

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    475

    Re: YouTube videos do not play full screen on a user's phone

    Just double checked with my code and the HTML in the articles I show, it's basically the same.

    The IFRAME code points to YouTube so it always loads a) the latest and b) the correct JS and video for the platform requesting it.

    Also, when a video is launched from Internet Explorer (IE) or the WebBrowser control, it will always launched full-screen. There is no option to do otherwise.

    I think the person who left the 1* review a) has no idea what they're doing or b) saw an animated GIF, maybe?

  7. #7
    Registered User
    Join Date
    Mar 2013
    Posts
    63

    Re: YouTube videos do not play full screen on a user's phone

    Ah 1-star reviews. Every day I have to stop myself from creating a parody video on that topic. You know it's bad when you see 4 or 5 star apps with reviews from supportive users bashing the 1-star users.

    I wonder if they saw the thumbnail for the video player and thought it wasn't full screen, never even clicking on the player to watch the video. I guess I'll never know but a big thanks for checking that.

Similar Threads

  1. Replies: 6
    Last Post: 2013-08-23, 10:22
  2. How to play Youtube Videos via Web TV
    By sreerajvr in forum Web TV (closed)
    Replies: 4
    Last Post: 2011-03-22, 05:54
  3. youtube full screen
    By hpbrother in forum Nokia N9
    Replies: 3
    Last Post: 2010-05-27, 11:54
  4. How to play Swf file Full Screen
    By purnima.attarsingh in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-10-15, 06:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •