Skip to content

Commit

Permalink
🐛Update Ooyala player version from Sandbox to Prod (#24738)
Browse files Browse the repository at this point in the history
* Update Ooyala player version from Sandbox to Prod

The Ooyala player iframe version currently used is at https://player.ooyala.com/static/v4/sandbox/amp_iframe/skin-plugin/amp_iframe.html which is using the player version 4.10.6

Our current production version is at v4.32.8. This update will solve some customer issues with analytics and provide them with a more recent and stable player

* Updating the Ooyala player version to /production/latest

Updating the Ooyala player version to /production/latest

* Update Ooyala player version from Sandbox to Prod Latest

Update Ooyala player version from Sandbox to Prod Latest in 'amp-ooyala-player/0.1/tests'

* Updating embedcode, pcode and playerid

Updating embedcode, pcode and playerid to use active values and be able to have playback with a test video.

* Adding validator .out
  • Loading branch information
bc-vescoto authored and wassgha committed Oct 2, 2019
1 parent ee85a15 commit 39a14b1
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion extensions/amp-ooyala-player/0.1/amp-ooyala-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class AmpOoyalaPlayer extends AMP.BaseElement {
const playerVersion = el.getAttribute('data-playerversion') || '';
if (playerVersion.toLowerCase() == 'v4') {
src =
'https://player.ooyala.com/static/v4/sandbox/amp_iframe/' +
'https://player.ooyala.com/static/v4/production/latest/' +
'skin-plugin/amp_iframe.html?pcode=' +
encodeURIComponent(this.pCode_);
const configUrl = el.getAttribute('data-config');
Expand Down
4 changes: 2 additions & 2 deletions extensions/amp-ooyala-player/0.1/test/test-amp-ooyala.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ describes.realWin(
const playerIframe = player.querySelector('iframe');
expect(playerIframe).to.not.be.null;
expect(playerIframe.src).to.equal(
'https://player.ooyala.com/static/v4/sandbox/' +
'amp_iframe/skin-plugin/amp_iframe.html' +
'https://player.ooyala.com/static/v4/production/latest/' +
'skin-plugin/amp_iframe.html' +
'?pcode=5zb2wxOlZcNCe_HVT3a6cawW298X' +
'&ec=Vxc2k0MDE6Y_C7J5podo3UDxlFxGaZrQ' +
'&pbid=6440813504804d76ba35c8c787a4b33c'
Expand Down
24 changes: 12 additions & 12 deletions extensions/amp-ooyala-player/0.1/test/validator-amp-ooyala.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,43 +32,43 @@
<amp-ooyala-player
height=400
width=400
data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X"
data-playerid="26e2e3c1049c4e70ae08a242638b5c40"
data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz"
data-playerid="a19658a7198f4cffb745bf2062551f9b"
data-playerversion="v4">
</amp-ooyala-player>

<!-- valid, uses V3 player by default -->
<amp-ooyala-player
height=400
width=400
data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X"
data-playerid="26e2e3c1049c4e70ae08a242638b5c40">
data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz"
data-playerid="a19658a7198f4cffb745bf2062551f9b">
</amp-ooyala-player>

<!-- invalid, needs data-pcode -->
<amp-ooyala-player
height=400
width=400
data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
data-playerid="26e2e3c1049c4e70ae08a242638b5c40">
data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
data-playerid="a19658a7198f4cffb745bf2062551f9b">
</amp-ooyala-player>

<!-- invalid, needs data-embedcode -->
<amp-ooyala-player
height=400
width=400
data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X"
data-playerid="26e2e3c1049c4e70ae08a242638b5c40">
data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz"
data-playerid="a19658a7198f4cffb745bf2062551f9b">
</amp-ooyala-player>

<!-- invalid, needs data-playerid -->
<amp-ooyala-player
height=400
width=400
data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X">
data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz">
</amp-ooyala-player>
</body>
</html>
26 changes: 13 additions & 13 deletions extensions/amp-ooyala-player/0.1/test/validator-amp-ooyala.out
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ FAIL
| <amp-ooyala-player
| height=400
| width=400
| data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
| data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X"
| data-playerid="26e2e3c1049c4e70ae08a242638b5c40"
| data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
| data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz"
| data-playerid="a19658a7198f4cffb745bf2062551f9b"
| data-playerversion="v4">
| </amp-ooyala-player>
|
| <!-- valid, uses V3 player by default -->
| <amp-ooyala-player
| height=400
| width=400
| data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
| data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X"
| data-playerid="26e2e3c1049c4e70ae08a242638b5c40">
| data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
| data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz"
| data-playerid="a19658a7198f4cffb745bf2062551f9b">
| </amp-ooyala-player>
|
| <!-- invalid, needs data-pcode -->
Expand All @@ -54,8 +54,8 @@ FAIL
amp-ooyala-player/0.1/test/validator-amp-ooyala.html:51:4 The mandatory attribute 'data-pcode' is missing in tag 'amp-ooyala-player'. (see https://amp.dev/documentation/components/amp-ooyala-player) [AMP_TAG_PROBLEM]
| height=400
| width=400
| data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
| data-playerid="26e2e3c1049c4e70ae08a242638b5c40">
| data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
| data-playerid="a19658a7198f4cffb745bf2062551f9b">
| </amp-ooyala-player>
|
| <!-- invalid, needs data-embedcode -->
Expand All @@ -64,8 +64,8 @@ amp-ooyala-player/0.1/test/validator-amp-ooyala.html:51:4 The mandatory attribut
amp-ooyala-player/0.1/test/validator-amp-ooyala.html:59:4 The mandatory attribute 'data-embedcode' is missing in tag 'amp-ooyala-player'. (see https://amp.dev/documentation/components/amp-ooyala-player) [AMP_TAG_PROBLEM]
| height=400
| width=400
| data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X"
| data-playerid="26e2e3c1049c4e70ae08a242638b5c40">
| data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz"
| data-playerid="a19658a7198f4cffb745bf2062551f9b">
| </amp-ooyala-player>
|
| <!-- invalid, needs data-playerid -->
Expand All @@ -74,8 +74,8 @@ amp-ooyala-player/0.1/test/validator-amp-ooyala.html:59:4 The mandatory attribut
amp-ooyala-player/0.1/test/validator-amp-ooyala.html:67:4 The mandatory attribute 'data-playerid' is missing in tag 'amp-ooyala-player'. (see https://amp.dev/documentation/components/amp-ooyala-player) [AMP_TAG_PROBLEM]
| height=400
| width=400
| data-embedcode="xkeHRiMjE6ls2aXoPoiqmPO6IU8HtXsg"
| data-pcode="5zb2wxOlZcNCe_HVT3a6cawW298X">
| data-embedcode="93eGs5MDE6dQ-pp527TpHmaFz4zuU9aX"
| data-pcode="p0cW46sbRY1PxXueRVL2a_4BfdFz">
| </amp-ooyala-player>
| </body>
| </html>
| </html>

0 comments on commit 39a14b1

Please sign in to comment.