Closed Bug 1258690 Opened 8 years ago Closed 8 years ago

Videos are not played on last.fm

Categories

(Web Compatibility :: Site Reports, defect)

defect
Not set
normal

Tracking

(firefox45 affected, firefox46 affected, firefox47 affected, firefox48 affected)

RESOLVED INVALID
Tracking Status
firefox45 --- affected
firefox46 --- affected
firefox47 --- affected
firefox48 --- affected

People

(Reporter: noni, Unassigned)

References

()

Details

(Whiteboard: [country-all])

[Note]:
- this is a bit intermittent, sometimes the video will open for the first time and the second/next times it won't.
- the video is properly opened and played from the context menu (right click -> open in new tab)

[Affected versions]:
- latest 48.0a1 Nightly
- latest 47.0a2 Aurora
- Firefox 46.0b4
- Firefox 45.0.1
- Firefox 4.0

[Affected platforms]:
* Windows Vista x86
* Windows 10 x64
* Windows 7 x64
* Ubuntu 12.04 x86
* Mac OS X 10.8


[Steps to reproduce]:
1. Open Firefox using a clean profile.
2. Open http://www.last.fm/music/Bon+Jovi/_/You+Give+Love+a+Bad+Name or any other song from last.fm
3. Click on the play button.

[Expected result]:
- A youtube link with the video is opened in a new tab and the song starts to play.

[Actual result]:
- Nothing happens.

[Regression range]:
- This is not a regression as it reproduces back to Fx 4.

[Additional notes]:
- nightly console: http://i.imgur.com/9gmF6n6.png (same on Aurora)
- 46.0b4 console: http://i.imgur.com/j3EPoOi.png (same in 45.0.1)
- The song correctly plays if http://www.last.fm/ is opened -> search for an artist (e.g: bon jovi) -> scroll down to songs -> press play (not played if the song name is selected)
Component: Audio/Video → Audio/Video: Playback
When I click play I get redirected to YouTube which says that the video has been blocked on copyright grounds.
The play button is in fact an <a> element instead of <video>. So this should have nothing to do with media playback.
Works in Chrome, but in Firefox on MacOSX nothing happens if I click on the big "play" button. This seems like it's not a video bug, but an event handling bug. Redirecting to DOM > Events.
Component: Audio/Video: Playback → DOM: Events
Olli, WDYT?
Flags: needinfo?(bugs)
Whiteboard: btpp-followup-2016-04-21
So when I click, youtube is opened, in Nightly.
And in Chromium the child process crashes, or nothing happens when I click the play button.
Flags: needinfo?(bugs)
oh, youtube isn't opened always. In some cases nothing happens.
But nothing hints this has anything to do with events at least. Tech evang is like the best guess here, given that the page doesn't seem to work well in other browsers either.
Component: DOM: Events → Desktop
Product: Core → Tech Evangelism
Pinging Mr. Compat... Mike Taylor!
Flags: needinfo?(miket)
Whiteboard: btpp-followup-2016-04-21 → btpp-followup-2016-04-21 [country-all]
Faulty area.

```html
<div class="video-preview">
    <div class="video-preview-playlink">
        <img src="http://img.youtube.com/vi/KrZHPOeOxQQ/0.jpg" class="video-preview">
        <a class="image-overlay-playlink-link js-playlink" 
           href="http://www.youtube.com/watch?v=KrZHPOeOxQQ" 
           target="_blank" 
           data-youtube-id="KrZHPOeOxQQ" 
           data-youtube-url="http://www.youtube.com/watch?v=KrZHPOeOxQQ" 
           data-track-name="You Give Love a Bad Name" 
           data-track-url="/music/Bon+Jovi/_/You+Give+Love+a+Bad+Name" 
           data-artist-name="Bon Jovi" 
           data-artist-url="/music/Bon+Jovi" 
           title="Play track">
                Play on youtube
            </a>
    </div>
    <a href="#youtube-video" class="video-preview-skiplink">Skip to YouTube video</a>
</div>
```

When I click on the video I get a message in the top part of the window on the mini player "track unavailable".

```js
      this.app.eventMediator.subscribe('player.track.unavailable', this.setErrorMessage.bind(this, 'track-unavailable'))
```

And console.log

07:05:38.020 Array [ Date 2016-04-17T22:05:38.020Z, "Player transition:", "Ready", "->", "Tuning" ] init.610be8e27ec4.js:163:4499
07:05:38.022 Array [ Date 2016-04-17T22:05:38.022Z, "youtube player provider transition:", "PlayerStopped", "->", "PlayerTuning" ] init.610be8e27ec4.js:163:4499
07:05:38.062 Error: WebGL: getParameter: parameter: invalid enum value <enum 0x9246> base.js:3091:201
07:05:38.990 Array [ Date 2016-04-17T22:05:38.990Z, "youtube player provider transition:", "PlayerTuning", "->", "PlayerUnavailable" ] init.610be8e27ec4.js:163:4499
07:05:38.991 Array [ Date 2016-04-17T22:05:38.991Z, "youtube player provider transition:", "PlayerUnavailable", "->", "PlayerStopped" ] init.610be8e27ec4.js:163:4499
07:05:39.002 Array [ Date 2016-04-17T22:05:39.002Z, "Player transition:", "Tuning", "->", "Unavailable" ] init.610be8e27ec4.js:163:4499
07:05:39.005 Array [ Date 2016-04-17T22:05:39.005Z, "Player transition:", "Unavailable", "->", "Ready" ] init.610be8e27ec4.js:163:4499
This one feel like it's probably INVALID territory.

Certain videos will fail because of Youtube (or other services) rights restrictions. And those can change depending on the uploader, the viewer's region, or Youtube flagging something later on.

See http://www.last.fm/forum/21713/_/2239582/1#f20994596 for a related discussion.

Some videos do work for me, in both Firefox and in Chrome, e.g., 

http://www.last.fm/music/The+Cure/_/Friday+I%27m+in+Love
http://www.last.fm/music/Depeche+Mode/_/Enjoy+the+Silence

And oddly, sometimes the videos are inline. And sometimes they open new tabs. Not sure why, but it's the same in Chrome and Firefox.

If someone can provide STR with a video that fails in Firefox and works in Chrome, I'm happy to dig in further. Karl's invalid message from Comment 9 is the regular video is unavailable codepath from init.js, nothing fishy there.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(miket)
Resolution: --- → INVALID
Whiteboard: btpp-followup-2016-04-21 [country-all] → [country-all]
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.