Problem/Motivation

The API of jw player (https://developer.jwplayer.com/jw-player/docs/developer-guide/customizat...) uses autostart for start a video when loading the page, the feature is not working due the wording change in the module which uses autoplay.

Proposed resolution

Fix it.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yongt9412 created an issue. See original summary.

johnchque’s picture

Issue summary: View changes
johnchque’s picture

Added fix. Not really sure if the update function is needed but it was added anyway.

johnchque’s picture

Status: Active » Needs review
Berdir’s picture

Status: Needs review » Needs work
+++ b/jw_player.install
@@ -61,3 +64,17 @@ function jw_player_update_8002() {
+    if ($preset->getSetting('autoplay')) {

this only migrates the setting if it was enabled, otherwise it leaves the old key. Instead call getSettings() and do a isset() on $settings and migrate both TRUE and FALSE.

johnchque’s picture

Status: Needs work » Needs review
FileSize
6.62 KB
734 bytes

True, this should be better. :)

johnchque’s picture

Berdir’s picture

Status: Needs review » Fixed

Thanks, committed.

Status: Fixed » Needs work

The last submitted patch, 7: fix_autostart-2767145-7.patch, failed testing.

johnchque’s picture

Status: Needs work » Fixed

What just happened?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.