0

Video playback (an HTTP Request headers)

Hi there,

I've been trying to use the X-Client-Accept data to hide a play video control for devices that don't support video.

As per this page (http://developer.yahoo.com/mobile/blueprint/Actions_play_video.html) i've tested the http header for the video string and if it's not present hide the link (basically), however I've run into a couple issues.

The first is that network appears to affect whether or not the video can stream, so i've had to filter out a 2g network here in NZ (using X-Carrier-Info); and that works, so isn't a problem.

The second problem is that one of our test devices, a Nokia E63 reports that it supports video, but the video playback always returns with a 404; whether over 3g or Wifi. This video works fine on an iPhone, and is correctly excluded (link hidden) on an blackberry something, dunno model sorry. I was wondering if there's some other test I should be doing, or if it's a bug with the E63 / Blueprint?

Thanks heaps,
Justin

by
9 Replies
  • Hi Justin,
    I can't confirm on the device right now (DeviceAnywhere seems to be down at the moment), but one thing I would try is to open m.yahoo.com and scroll to videos, and see if you can get any of those videos to play.

    According to WURFL[1] and our own data, the Nokia E63 does support video (3gpp, mp4, real_media, etc), so it should work. But it might possibly be a bug.

    -David

    [1] http://wurfl.sourceforge.net/
    0
  • Hi David,

    Thanks for the prompt reply, I've managed to get this video page; http://m.yahoo.com/w/fpvideo?stype=yahoo&a...us&.lang=en loaded up onto the E63 (rage at stupid wireless networks) and it does indeed play the video.

    This is the specific block relating to the video:

    CODE
    			  <trigger>
    <label>Play Video</label>
    <play-video event="activate" resource="http://video.yahoo.com/watch/7539533/19983030" />
    </trigger>


    which follows a <header> within a <module> (the rest of the page is fine, it's just this one thing). If it would be helpful I can upload a .txt version of the source.

    Just a note, i've also tried it with this video resource: http://video.yahoo.com/watch/53710/694558 & http://video.yahoo.com/watch/7580492/20101531

    link to the BPApp: http://devtest-markerdev-marker-sky.bpapps.com/ or http://mkr.st/ssm

    Thanks,
    Justin
    0
  • [edit]
    oh, just another note, I've tried a different (3g) connection in the original Sony Ericsson K800i that we tested on, and it appears that that device won't load up video either (we'd originally thought it was a network issue)

    thanks again
    [/edit]
    0
  • Thanks for more of the details. On DeviceAnywhere I tried your code snippet on the Nokia E63 and it played the video just fine, so I'm unsure what the issue might be that's causing you to get a 404 error. Can you provide the user agent of the device? Here's the user agent of the working E63 I tried (it might have a newer OS?):

    Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaE63-1/100.21.110; Profile/MIDP-2.0 Configuration/CLDC-1.1)AppleWebKit/413 (KHTML, like Gecko) Safari/413

    However I tried to same code snippet on the Sony Ericsson K800i and I got an HTTP error code 302, which is definitely on our side. I'll create a bug and forward it to our video team.

    EDIT: it looks like there's several different issues here. I tried your test app with a desktop browser and got the 404 error, so I think that is caused by your code. If you could paste the code for the "Video of the Day" module I think we can solve the 404 issue. The 302 error I mentioned above is another issue.

    -David
    0
  • Hi David,

    Thanks again for the quick reply. I've put up a .txt version of the source file, you'll find it available at http://markerstudio.com/blueprint/sky/index.txt just incase I've done something wrong higher up in the document that's causing this error.

    Here's the X-Device-User-Agent: Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaE63-1/200.21.012; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413

    You can find a detailed output from the E63 device in question here: http://www.markerstudio.com/blueprint/cache/test.html

    I hope that helps,
    Justin
    0
  • [edit]
    the code is still very messy, i haven't gotten to the tidy up stage yet :)[/edit]
    0
  • QUOTE (markerdev @ Jun 1 2010, 06:07 PM) <{POST_SNAPBACK}>
    [edit]
    the code is still very messy, i haven't gotten to the tidy up stage yet :)Sorry for the inconvenience!
    0
  • Hi David,

    That's ok, thanks for all your help with this issue. Let me know if there's any additional information you need or any other way I can help out.

    Justin
    0
  • QUOTE (David @ Jun 1 2010, 05:37 PM) <{POST_SNAPBACK}>
    Thanks for more of the details. On DeviceAnywhere I tried your code snippet on the Nokia E63 and it played the video just fine, so I'm unsure what the issue might be that's causing you to get a 404 error. Can you provide the user agent of the device? Here's the user agent of the working E63 I tried (it might have a newer OS?):

    Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaE63-1/100.21.110; Profile/MIDP-2.0 Configuration/CLDC-1.1)AppleWebKit/413 (KHTML, like Gecko) Safari/413

    However I tried to same code snippet on the Sony Ericsson K800i and I got an HTTP error code 302, which is definitely on our side. I'll create a bug and forward it to our video team.

    EDIT: it looks like there's several different issues here. I tried your test app with a desktop browser and got the 404 error, so I think that is caused by your code. If you could paste the code for the "Video of the Day" module I think we can solve the 404 issue. The 302 error I mentioned above is another issue.

    -David
    0
This forum is locked.

Recent Posts

in Blueprint General Discussion