diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/.content.xml new file mode 100644 index 0000000..a3beda5 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/.content.xml @@ -0,0 +1,9 @@ + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/_cq_editConfig.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/_cq_editConfig.xml new file mode 100644 index 0000000..cb8d50d --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/_cq_editConfig.xml @@ -0,0 +1,25 @@ + + + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/dialog.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/dialog.xml new file mode 100644 index 0000000..bb7a535 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/dialog.xml @@ -0,0 +1,17 @@ + + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/icon.png b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/icon.png new file mode 100644 index 0000000..8306c88 Binary files /dev/null and b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/icon.png differ diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/inline-styles.html b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/inline-styles.html new file mode 100644 index 0000000..92a5d41 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/inline-styles.html @@ -0,0 +1,137 @@ + + + + + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/player-embed.html b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/player-embed.html new file mode 100644 index 0000000..c7d8892 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplayer-playlist/player-embed.html @@ -0,0 +1,66 @@ + + + + +
+ + + +
+
    +
    +
    + + + + +
    +
      +
      +
      + + + + +
      +
      \ No newline at end of file diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/.content.xml new file mode 100644 index 0000000..98a6168 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/.content.xml @@ -0,0 +1,8 @@ + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/_cq_editConfig.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/_cq_editConfig.xml new file mode 100644 index 0000000..77a2762 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/_cq_editConfig.xml @@ -0,0 +1,25 @@ + + + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/player-embed.html b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/player-embed.html new file mode 100644 index 0000000..53f3268 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveplaylist/player-embed.html @@ -0,0 +1,75 @@ + + + +
      + + + + + +
      \ No newline at end of file diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/.content.xml new file mode 100644 index 0000000..b8d5360 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/.content.xml @@ -0,0 +1,8 @@ + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/_cq_editConfig.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/_cq_editConfig.xml new file mode 100644 index 0000000..57d396d --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/_cq_editConfig.xml @@ -0,0 +1,25 @@ + + + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/player-embed.html b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/player-embed.html new file mode 100644 index 0000000..07f0601 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcovevideo/player-embed.html @@ -0,0 +1,77 @@ + + + + +
      + + + + + + + +
      \ No newline at end of file diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/.content.xml new file mode 100644 index 0000000..93ac1b6 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/.content.xml @@ -0,0 +1,7 @@ + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/_cq_dialog/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/_cq_dialog/.content.xml new file mode 100644 index 0000000..252f314 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/_cq_dialog/.content.xml @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + <items jcr:primaryType="nt:unstructured"> + <title + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/coral/foundation/form/textfield" + cq-msm-lockable="jcr:title" + fieldLabel="Title" + name="./jcr:title" + renderReadOnly="{Boolean}true" + required="{Boolean}true"/> + <description + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/foundation/form/textarea" + allowBulkEdit="{Boolean}true" + cq-msm-lockable="jcr:description" + fieldLabel="Description" + name="./jcr:description" + renderReadOnly="{Boolean}true"/> + <hideinnav + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/foundation/form/checkbox" + allowBulkEdit="{Boolean}true" + cq-msm-lockable="hideInNav" + name="./hideInNav" + renderReadOnly="{Boolean}true" + text="Hide in Navigation" + value="true"/> + </items> + + + + + + + + + + + + + +
      + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/brightcoveIframe.html b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/brightcoveIframe.html new file mode 100644 index 0000000..d081ad1 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/brightcoveIframe.html @@ -0,0 +1,80 @@ + + + + + + + + +
      + +
      + + +
      + + + +
      + +
      + + + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/dialog.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/dialog.xml new file mode 100755 index 0000000..a7c5623 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/dialog.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/tab_player_custom.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/tab_player_custom.xml new file mode 100644 index 0000000..f0f8ea9 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveIframe/tab_player_custom.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/.content.xml new file mode 100644 index 0000000..41a3e86 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/.content.xml @@ -0,0 +1,7 @@ + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/_cq_dialog/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/_cq_dialog/.content.xml new file mode 100644 index 0000000..e66c1e8 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/_cq_dialog/.content.xml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + <items jcr:primaryType="nt:unstructured"> + <title + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/coral/foundation/form/textfield" + cq-msm-lockable="jcr:title" + fieldLabel="Title" + name="./jcr:title" + renderReadOnly="{Boolean}true" + required="{Boolean}true"/> + <description + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/foundation/form/textarea" + allowBulkEdit="{Boolean}true" + cq-msm-lockable="jcr:description" + fieldLabel="Description" + name="./jcr:description" + renderReadOnly="{Boolean}true"/> + <hideinnav + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/foundation/form/checkbox" + allowBulkEdit="{Boolean}true" + cq-msm-lockable="hideInNav" + name="./hideInNav" + renderReadOnly="{Boolean}true" + text="Hide in Navigation" + value="true"/> + </items> + + + + + + + + + + <items jcr:primaryType="nt:unstructured"> + <account + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/foundation/form/select" + emptyText="Select" + fieldLabel="Account:" + name="./account" + renderReadOnly="{Boolean}false" + translateOptions="{Boolean}true" + required="{Boolean}true" + > + <datasource + jcr:primaryType="nt:unstructured" + sling:resourceType="coresecure/brightcove/accountsUI" + addNone="{Boolean}true"/> + </account> + <playerID + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/foundation/form/select" + fieldLabel="Player ID:" + multiple="{Boolean}false" + name="./playerID" + /> + <playerKey + jcr:primaryType="nt:unstructured" + sling:resourceType="granite/ui/components/coral/foundation/form/textfield" + fieldLabel="Player Key " + fieldDescription="(Legacy Player Only - Deprecated)" + name="./playerKey" + required="{Boolean}false" + /> + </items> + + + + + + + + + + + + + +
      + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/brightcoveplayer.html b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/brightcoveplayer.html new file mode 100644 index 0000000..3c64f50 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/brightcoveplayer.html @@ -0,0 +1,143 @@ + + + + + + + + ${playerConfig.title} | Brightcove Player + + + + + + + + + + + + + + + + + + +

      Brightcove Player Config | "${playerConfig.title}"

      + +
      +

      ${playerConfig.playerDescription}

      +
      + +

      Player ID

      +

      Use the Page Properties editor to edit the Player ID.

      +
      + ${playerConfig.videoPlayer.playerID} + NONE +
      + +

      Player Key

      +

      Use the Page Properties editor to edit the Player Key.

      +
      + ${playerConfig.videoPlayer.playerKey} + NONE +
      + +

      Data Embed

      +

      Use the Page Properties editor to edit the Data Embed.

      +
      + ${playerConfig.videoPlayer.playerDataEmbed} + DEFAULT +
      + +

      Player Preview

      +

      +
      + + + + + + + +
      + + + + + + + + + + + + + + + + + + +
      +
      + + + +
      diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/.content.xml new file mode 100644 index 0000000..dec9c70 --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/.content.xml @@ -0,0 +1,5 @@ + + diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/js.txt b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/js.txt new file mode 100644 index 0000000..3e6035b --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/js.txt @@ -0,0 +1 @@ +listener.js \ No newline at end of file diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/listener.js b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/listener.js new file mode 100644 index 0000000..94e908c --- /dev/null +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/listener.js @@ -0,0 +1,87 @@ +/* + Adobe AEM Brightcove Connector + + Copyright (C) 2017 Coresecure Inc. + + Authors: + Alessandro Bonfatti + Yan Kisen + Pablo Kropilnicki + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + + - Additional permission under GNU GPL version 3 section 7 + If you modify this Program, or any covered work, by linking or combining + it with httpclient 4.1.3, httpcore 4.1.4, httpmine 4.1.3, jsoup 1.7.2, + squeakysand-commons and squeakysand-osgi (or a modified version of those + libraries), containing parts covered by the terms of APACHE LICENSE 2.0 + or MIT License, the licensors of this Program grant you additional + permission to convey the resulting work. +*/ +(function (document, $) { + "use strict"; + + var ACCOUNT = "./account", PLAYERID = "./playerID"; + + + $(document).on("dialog-ready", function() { + init(); + }); + $(window).load(function () { + init(); + }); + function init() { + var account = $("[name='" + ACCOUNT +"']").closest(".coral-Select") + var playerID = new CUI.Select({ + element: $("[name='" + PLAYERID +"']").closest(".coral-Select") + }); + if(_.isEmpty(playerID) || _.isEmpty(account)){ + return; + } + function fillPlayers(selectedAccount, selectedPlayer){ + playerID = new CUI.Select({ + element: $("[name='" + PLAYERID +"']").closest(".coral-Select") + }); + $("[role='option']",playerID._selectList).remove(); + + var x = $("[name='./playerID']").closest(".coral-Select").find('option').remove().end(); + $.getJSON("/bin/brightcove/api?a=players&account_id="+selectedAccount).done(function(data){ + _.each(data.items, function(value, id) { + var test2 = $("[name='./playerID']")[0]; + $("