Closed Bug 1617859 Opened 4 years ago Closed 2 years ago

Video does not start playing

Categories

(Web Compatibility :: Site Reports, defect, P3)

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rpopovici, Assigned: twisniewski)

Details

(Keywords: webcompat:needs-diagnosis)

Affected versions:
Firefox 74.0b7
Firefox 73.0.1
Nightly 75.0a1

OS:
Windows 10

Steps to reproduce:

  1. Open Firefox
  2. Go to this link https://www.ifanr.com/video/1309423
  3. Click on Play button

Actual result:
Video does not start playing.
Expected result:
Video should playing back.

Note: This link works as expected on Chrome.

It could be a (bilibili) player script issue: I tested in Nightly on both macOS and Windows 10, and found that even though it doesn't play in desktop mode, the video works after I turned on Responsive Design Mode and choose either Samsung S9 or one of the iOS devices.

Component: Audio/Video: Playback → Desktop
Product: Core → Web Compatibility

It seems like the liteplayer.js script is somehow failing:

TypeError: can't access property "defaultView", a.ownerDocument is null

Severity: normal → S2
Priority: -- → P3

The video is hosted on bilibili.

The liteplayer.js should use wheel instead of mousewheel and DOMMouseScroll.

$(document).off('mousewheel' + c.b.namespace + ' DOMMouseScroll' + c.b.namespace).on('mousewheel' + c.b.namespace + ' DOMMouseScroll' + c.b.namespace, function (d)

for the issue, a.ownerDocument is null when a == document
but that would happen on Chrome too. So if it doesn't happen in chrome, it's because the browser didn't reach up to document.
They use a very old version of JQuery too

/*! jQuery v1.7.2 jquery.com | jquery.org/license */

released on March 21, 2012

<iframe class="js-video-src" src="//player.bilibili.com/player.html?aid=89166092&amp;cid=152297134&amp;page=1" frameborder="0" allowfullscreen="" style="display: block;"></iframe>

If I load directly the iframe.
https://player.bilibili.com/player.html?aid=89166092&cid=152297134&page=1

This is working and we do not get the same error anymore about a.ownerDocument

Thomas, an idea?

Flags: needinfo?(twisniewski)
Assignee: nobody → twisniewski

I was not able to reproduce the issue. I was able to play the video, with no issues encountered:

https://prnt.sc/g1H8aOkmbpdy

Tested with:

Browser / Version: Firefox Nightly 102.0a1 (2022-05-24) (64-bit)
Operating System: Windows 10 PRO x64

Reporter is the issue still reproducible on your side?

Flags: needinfo?(raluca.popovici)

The video seems to work the same way for me in Firefox, Chrome and Safari now, so we might as well close this.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(twisniewski)
Flags: needinfo?(raluca.popovici)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.