Closed Bug 1016426 Opened 11 years ago Closed 10 years ago

no video plays on aptv.no and aftenposten.no - Flash error message

Categories

(Web Compatibility :: Site Reports, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: hsteen, Unassigned)

References

()

Details

(Whiteboard: [mobile-compat-form] [video] [country-no] [lib-XstreamPlayer] [contactready] [clientsniff])

Site: http://aptv.no no video plays on aptv.no and aftenposten.no - Flash error message :: Steps To Reproduce AftenpostenTV shows "upgrade Flash" error instead of video player on http://mobil.aftenposten.no/webtv/ :: Expected Result Video :: Actual Result No video :: Additional Information Software Version: 1.4 Reporter's User Agent: Mozilla/5.0 (Linux; Android 4.3; HTCONE Build/JSS15J) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.59 Mobile Safari/537.36
The code refers to something called XstreamPlayer, scripts are loading from xstream.dk. It has logic like this: if (swfobject.hasFlashPlayerVersion('10.1.0')) { this._embedFlashPlayer(config); } else if (config.html5Fallback && this.isPlatformSupported()) {//html5 player enabled this._embedHtml5Player(config); } else { failMessage = 'Please install or upgrade your Adobe Flash Player to latest version <a href="http://get.adobe.com/flashplayer/">download Adobe Flash Player </a>'; this.notifiy(failMessage, config.targetId); } And this is isPlatformSupported() - no wonder it fails :-/ /** * Check if html5 player can be used on this platform * now only iphone and ipad are supported * @return bool */ isPlatformSupported : function () { var ua = navigator.userAgent, isiPad = /iPad/i.test(ua), isiPhone = /iPhone/i.test(ua), response = (isiPhone || isiPad); return response; },
Whiteboard: [mobile-compat-form] → [mobile-compat-form] [video] [country-no] [lib-XstreamPlayer]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form] [video] [country-no] [lib-XstreamPlayer] → [mobile-compat-form] [video] [country-no] [lib-XstreamPlayer] [contactready] [clientsniff]
(The player seems to work OK in Android Stock browser and Opera Classic on Android, so I'm not sure if that iPhone/iPad sniffing is the full story after all)
Works now
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.