Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24tv.ua - video doesn't play #1892

Closed
webcompat-bot opened this issue Nov 5, 2015 · 7 comments
Closed

24tv.ua - video doesn't play #1892

webcompat-bot opened this issue Nov 5, 2015 · 7 comments

Comments

@webcompat-bot
Copy link

URL: http://24tv.ua/ru/vestiua_protivostojanie_saakashvili_i_jacenjuka_prodolzhaetsja_pochemu_vejder_ne_stanet_premerom_n627893
Browser / Version: Firefox Mobile 45.0
Operating System: Android 4.2.1
Problem type: Video doesn't play

Steps to Reproduce

  1. Navigate to: http://24tv.ua/ru/vestiua_protivostojanie_saakashvili_i_jacenjuka_prodolzhaetsja_pochemu_vejder_ne_stanet_premerom_n627893

Expected Behavior:

Actual Behavior:

@hallvors
Copy link

hallvors commented Nov 7, 2015

Oddly this plays OK on Firefox OS but shows a "File could not be played" error on Android. Perhaps it sniffs the "Android" word and attempts to serve M3U8/HLS stuff? Indeed, there's a JWPlayer client-side and it gets a list of videos setting up several "sources", both MP4 and M3U8. The JS simply picks the wrong one.

@karlcow
Copy link
Member

karlcow commented Mar 30, 2016

Let's see if we can give a more descriptive analysis.

This site is responsive.
On Firefox Nightly 47.0a2 (2016-03-22) MacOSX, I get the video working after the ads.

Switching to Firefox Android UA.

I get indeed the error message:
Screenshot of the site issue

<div style="width: 100%; height: 270px;" id="jwp" class="jwplayer jw-reset jw-skin-tv24skin jw-flag-touch jw-flag-aspect-mode jw-state-error jw-flag-user-inactive" tabindex="0">
    <div style="padding-top: 56.25%;" class="jw-aspect jw-reset"></div>
    <div class="jw-media jw-reset">
        <video src="http://streamvideol1.luxnet.ua/vodorigin/_definst_/smil:tv24/2015/11/627893_main_20151105190059.smil/playlist.m3u8" webkit-playsinline="" x-webkit-airplay="allow" class="jw-video jw-reset"></video>
    </div>
<!-- a lot of things cut … -->
</div>

The function displaying the error message is

      function K() {
        ka && (b.log('Error playing media: %o %s', qa.error, qa.src || _.file), ea.trigger(e.JWPLAYER_MEDIA_ERROR, {
          message: 'Error loading media: File could not be played'
        }))
      }

The detection logic of jwplayer has changed a lot.
https://github.com/jwplayer/jwplayer/blob/0ab6f022707bbf1fb927a0f3c80c656832a03e07/src/js/utils/browser.js

This site seems to to use an old version of jwplayer.

The fix would be to upgrade the player, which has been fixed.
https://bugzilla.mozilla.org/show_bug.cgi?id=1056971
https://github.com/jwplayer/jwplayer

On the needscontact flag now: Next comment.

@karlcow
Copy link
Member

karlcow commented Mar 30, 2016

Whoever will contact this site, need to have Russian skills.

The contact form is at http://24tv.ua/contacts
And it would be good to ask them to upgrade the jwplayer so more people can watch the video on mobile.

Switching to contactready.

@karlcow
Copy link
Member

karlcow commented May 17, 2016

@adamopenweb
Copy link
Collaborator

This appears to be fixed but there's an odd behavior. If you press the home button while the video is playing the video doesn't stop. I'll take a look if there's an open bug on Bugzilla. @karlcow have you seen this before?

@adamopenweb
Copy link
Collaborator

Happens on youtube as well. I'm able to shut my screen off and the audio is still playing.

@adamopenweb
Copy link
Collaborator

Already a bug filed for that: https://bugzilla.mozilla.org/show_bug.cgi?id=1274421
Let's close this issue as fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants