×

Discussion Board

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

    Question Problems playing YouTube videos on Device, but never on Emulator

    I have a couple of apps with embedded YouTube video playlists. On both the Emulator and the Device I can retrieve video feeds (thumbnails & video info) without any trouble. The apps work perfectly in the Emulator, but when run on the Device I get intermittent connectivity problems such as:

    * The YouTube gdata video feeds can not be downloaded
    * The YouTube gdata video feeds can be downloaded but the thumbnails fail to download
    * When I try to play a video in the Device I get the following error: "The remote server returned an error: NotFound"

    These problems come and go and other times the apps work perfectly on the Device. Again, this never happens on the Emulator. If I was running my Device tests over 3G/4G I'd be less surprised at this, but I am running the Emulator & Device over the exact same WiFi connection (router).

    Has anybody else run into similar problems with their apps? The Device I'm using is a Lumia 521 and I am using the YouTube class from the AppStudio MyToolkit.Extended.dll package to play the YouTube videos.

    Note, the error usually occurs during an async web request:

    var request = (HttpWebRequest)WebRequest.Create(url);
    var response = await Task.Factory.FromAsync<WebResponse>(request.BeginGetResponse, request.EndGetResponse, null);


    But I trapped the error in the Debugger while the app was running on the Device, and I cut and paste the "url" it is requesting into my browser and it works fine. I'm beginning to wonder if this is some weird time-out problem. What's doubly weird, is that sometimes I get error messages on the feeds but they happen almost immediately instead of after the usual time length it takes a web request to time out.

    Why does this only happen on the phone?

    -- roschler
    Last edited by roschler; 2013-12-13 at 19:23.

  2. #2
    Registered User
    Join Date
    Nov 2013
    Posts
    29

    Re: Problems playing YouTube videos on Device, but never on Emulator

    can you try with a 1GB device? first thing that comes to mind is that your memory might not be sufficient

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

    Re: Problems playing YouTube videos on Device, but never on Emulator

    @NicoVermeir,

    No, only the 512MB device. But in debug mode I have a memory charm that shows how much memory is in use, and it never goes above 80 MB, in fact, I have had the fast errors on the YouTube video feeds come back when it's only showing 50MB consumption.

    -- roschler

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

    Re: Problems playing YouTube videos on Device, but never on Emulator

    What happens when you test in the 720p emulator?

Similar Threads

  1. Replies: 2
    Last Post: 2013-09-05, 01:02
  2. Playing Youtube videos in Java Apps
    By scharffc in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2010-06-06, 09:46
  3. 6680: problems playing videos on incoming call.
    By Shaikuny in forum Symbian C++
    Replies: 4
    Last Post: 2006-05-15, 10:52

Posting Permissions

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