Skip to content

Commit

Permalink
Release 5.3.1:
Browse files Browse the repository at this point in the history
- HTL Code
- Multi-thread Support
- Cron scheduling in AEM Sling Console
- Bug fixes
  • Loading branch information
alessandro-bonfatti committed Dec 11, 2017
1 parent db3a2f4 commit 75345cd
Show file tree
Hide file tree
Showing 148 changed files with 26,059 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
cq:isContainer="{Boolean}false"
cq:noDecoration="{Boolean}false"
jcr:description="Brightcove Playlist Player Component (HTML5)"
jcr:primaryType="cq:Component"
jcr:title="Brightcove Playlist Player (HTML5)"
sling:resourceSuperType="brightcove/components/content/brightcoveplayer"
componentGroup="General"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
cq:actions="[text:Brightcove Playlist Player (HTML5),-,EDIT,COPY,MOVE,DELETE]"
cq:dialogMode="floating"
cq:layout="editbar"
jcr:primaryType="cq:EditConfig">
<cq:dropTargets jcr:primaryType="nt:unstructured">
<brightcove_player
jcr:primaryType="cq:DropTargetConfig"
accept="[brightcove/.*]"
groups="[brightcove_player]"
propertyName="./playerPath"/>
<brightcove_video
jcr:primaryType="cq:DropTargetConfig"
accept="[brightcove/.*]"
groups="[brightcove_playlist]"
propertyName="./videoPlayerPL"/>
</cq:dropTargets>
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
aftercopy="REFRESH_PAGE"
afterdelete="REFRESH_PAGE"
afteredit="REFRESH_PAGE"
afterinsert="REFRESH_PAGE"/>
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:Dialog"
height="600"
title="Brightcove Playlist Player"
xtype="tabpanel">
<items jcr:primaryType="cq:WidgetCollection">
<tab-playlist
jcr:primaryType="cq:Widget"
path="/apps/brightcove/components/shared/dialog/tab_playlist_config.infinity.json"
xtype="cqinclude"/>
<tab-styles
jcr:primaryType="cq:Widget"
path="/apps/brightcove/components/shared/dialog/tab_component_styles.infinity.json"
xtype="cqinclude"/>
</items>
</jcr:root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<!--
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 <http://www.gnu.org/licenses/>.
- 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.
-->
<sly data-sly-use.player="${'com.coresecure.brightcove.wrapper.models.VideoPlayer'}">

<sly data-sly-test="${!player.hasSize}">
<style type="text/css">
#component-wrap-${player.componentID @context='unsafe'} .brightcove-container .video-js {
display: block;
position: relative;
margin: 20px auto;

width: 55%;
height: 100%;
}

#component-wrap-${player.componentID @context='unsafe'}.brc-align-center .brightcove-container .video-js {
width: 80%;
}

#component-wrap-${player.componentID @context='unsafe'} .brightcove-container .video-js:after {
padding-top: 56.25%;
display: block;
content: '';
}


</style>
</sly>

<style type="text/css">

#component-wrap-${player.componentID @context='unsafe'} {

}

#component-wrap-${player.componentID @context='unsafe'} .brightcove-container,
#component-wrap-${player.componentID @context='unsafe'} .brightcove-container .player-embed-wrap {
width: 100%;
}

#component-wrap-${player.componentID @context='unsafe'} .brightcove-container .video-js {
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
margin-top: 0;
overflow-x: hidden;
overflow-y: hidden;
width: 55%;
display: inline-block;
}

#component-wrap-${player.componentID @context='unsafe'} .brightcove-container .playlist-wrapper {
display: inline-block;
width: 42%;
margin-left: auto;
margin-right: auto;
}

#component-wrap-${player.componentID @context='unsafe'} .brightcove-container .playlist-wrapper .vjs-playlist{
margin:0;
}

/**
* Alignment Rules
******************/

/* Left */
#component-wrap-${player.componentID @context='unsafe'}.brc-align-left .brightcove-container .video-js {
margin-left: 0;
float: left;
}

#component-wrap-${player.componentID @context='unsafe'}.brc-align-left .brightcove-container .playlist-wrapper {
float: right;
}

/* Right */
#component-wrap-${player.componentID @context='unsafe'}.brc-align-right .brightcove-container .video-js {
margin-right: 0;
float: right;
}

#component-wrap-${player.componentID @context='unsafe'}.brc-align-right .brightcove-container .playlist-wrapper {
float: left;
}

/* Center */
#component-wrap-${player.componentID @context='unsafe'}.brc-align-center .brightcove-container .video-js {
display: block;
width: 100%;
}

#component-wrap-${player.componentID @context='unsafe'}.brc-align-center .brightcove-container .playlist-wrapper {
width: 100%;
display: block;
margin-top:10px;
}

/**
* Edit mode Styles
**/
#component-wrap-${player.componentID @context='unsafe'} .drop-target-video{
width:100%;
}

</style>

</sly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!--
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 <http://www.gnu.org/licenses/>.
- 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.
-->
<sly data-sly-use.player="${'com.coresecure.brightcove.wrapper.models.VideoPlayer'}">


<div id="container-${player.componentID}" class="brightcove-container clearfix">


<sly data-sly-test="${player.align == 'right'}">
<div class="playlist-wrapper">
<ol class="vjs-playlist vjs-csspointerevents vjs-mouse"></ol>
</div>
</sly>
<video
id="video-${player.componentID}"
data-account="${player.account}"
data-player="${player.playerID}"
data-embed="${player.playerDataEmbed}"
data-playlist-id="${player.playlistID}"
width="${player.width}"
height="${player.height}"
class="video-js"
controls>
</video>


<sly data-sly-test="${player.align != 'right'}">
<div class="playlist-wrapper">
<ol class="vjs-playlist vjs-csspointerevents vjs-mouse"></ol>
</div>
</sly>


<script src="//players.brightcove.net/${player.account}/${player.playerID}_${player.playerDataEmbed}/index.min.js"></script>

</div>
</sly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
cq:isContainer="{Boolean}false"
jcr:description="Brightcove Playlist Component"
jcr:primaryType="cq:Component"
jcr:title="Brightcove Playlist (Legacy)"
sling:resourceSuperType="brightcove/components/content/brightcoveplayer-playlist"
componentGroup=".hidden"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
cq:actions="[text:Brightcove Playlist (Legacy),-,EDIT,COPY,MOVE,DELETE]"
cq:dialogMode="floating"
cq:layout="editbar"
jcr:primaryType="cq:EditConfig">
<cq:dropTargets jcr:primaryType="nt:unstructured">
<brightcove_player
jcr:primaryType="cq:DropTargetConfig"
accept="[brightcove/.*]"
groups="[brightcove_player]"
propertyName="./playerPath"/>
<brightcove_video
jcr:primaryType="cq:DropTargetConfig"
accept="[brightcove/.*]"
groups="[brightcove_playlist]"
propertyName="./videoPlayerPL"/>
</cq:dropTargets>
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
aftercopy="REFRESH_PAGE"
afterdelete="REFRESH_PAGE"
afteredit="REFRESH_PAGE"
afterinsert="REFRESH_PAGE"/>
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!--
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 <http://www.gnu.org/licenses/>.
- 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.
-->
<sly data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}" data-sly-use.player="${'com.coresecure.brightcove.wrapper.models.VideoPlayer'}">

<div id="container-${player.componentID}" class="brightcove-container"></div>

<sly data-sly-call="${clientLib.js @ categories='brc.smart-player'}"></sly>

<script type="text/javascript">


// listener for media change events
function onMediaBegin(event) {
var BCLcurrentVideoID;
var BCLcurrentVideoNAME;
BCLcurrentVideoID = BCLvideoPlayer.getCurrentVideo().id;
BCLcurrentVideoNAME = BCLvideoPlayer.getCurrentVideo().displayName;
switch (event.type) {
case "mediaBegin":
var currentVideoLength = "0";
currentVideoLength = BCLvideoPlayer.getCurrentVideo().length;
if (currentVideoLength != "0") currentVideoLength = currentVideoLength / 1000;
if (typeof _gaq != "undefined") _gaq.push(['_trackEvent', location.pathname, event.type + " - " + currentVideoLength, BCLcurrentVideoNAME + " - " + BCLcurrentVideoID]);
break;
case "mediaPlay":
_gaq.push(['_trackEvent', location.pathname, event.type + " - " + event.position, BCLcurrentVideoNAME + " - " + BCLcurrentVideoID]);
break;
case "mediaStop":
_gaq.push(['_trackEvent', location.pathname, event.type + " - " + event.position, BCLcurrentVideoNAME + " - " + BCLcurrentVideoID]);
break;
case "mediaChange":
_gaq.push(['_trackEvent', location.pathname, event.type + " - " + event.position, BCLcurrentVideoNAME + " - " + BCLcurrentVideoID]);
break;
case "mediaComplete":
_gaq.push(['_trackEvent', location.pathname, event.type + " - " + event.position, BCLcurrentVideoNAME + " - " + BCLcurrentVideoID]);
break;
default:
_gaq.push(['_trackEvent', location.pathname, event.type, BCLcurrentVideoNAME + " - " + BCLcurrentVideoID]);
}
}

</script>
<script>
customBC.createPlaylist("${player.width == '' ? '480' : player.width}", "${player.height == '' ? '270' : player.height}", "${player.playerID}", "${player.playerKey}", "${player.playlistID}", "container-${player.componentID}");
</script>
</sly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
cq:isContainer="{Boolean}false"
jcr:description="Brightcove Video Component (Legacy)"
jcr:primaryType="cq:Component"
jcr:title="Brightcove Video Player (Legacy)"
sling:resourceSuperType="brightcove/components/content/brightcoveplayer"
componentGroup=".hidden"/>
Loading

0 comments on commit 75345cd

Please sign in to comment.