Here is all the code I used for changing how my social channels player looks. Rather than open a small player at the top of the site I created a much bigger player that covers the screen, also when viewed from a social channels page rather than one in a tabContainer you get the option in the top right corner of the player to show more videos from the page of which you can click on to play. When this is viewed in mobile view you still get this option and you just slide the video along to view more in the list.
The pagination ( ie Next , Previous page options ) now rather than small arrows the actual wording appears also.
When viewed in a tabContainer the more videos drop down is not shown as there is only a few videos on the page to show.
The player will default to this style no matter where you add video channels. To see it working you can go to my site and select the Social Channels tab on the main nav menu and this will show you the tabContainer version. If you hover over the tab in the menu this will give you the two main social channels pages to view how it looks there. Or use the links added below. When there just click a video to see it play in the new version player design.
Tab Container Social Channels: http://bizzssite.ning.com/social-channels-tabs
Normal Social Channel Page: http://bizzssite.ning.com/star-wars
CODE NEEDED BELOW.
/** CSS CODE TO ADD TO YOUR CUSTOM CSS SECTION **/
/********** FEED LIST PLAYER **********/
@media only screen and (min-width:771px){
a.feedListPagePlayer-close,a.feedListPagePlayer-close:hover{font-size:25px;margin-bottom:10px }}
.feedListPagePlayer { background-color: rgba(0, 0, 0, 0.82); height:100%}
.feedListPagePlayer .sourceContainer{ border: 1px solid rgb(54, 54, 54);background-color:rgba(0, 0, 0, 0.4);}
/*Sizing The Playing Video*/
@media only screen and ( min-width:481px){
.feedListPagePlayer-source {height:100vh; width:95vw;margin:auto;padding-bottom:1em}
.feedListPagePlayer-source iframe {
max-width: 85vw;
height: 80vh;
width: 100%;}
.feedListPagePlayer-source .nav {font-size:3em}
}
/* Adjust social page nav to go above the video inline with the close button*/
@media only screen and (max-width:771px){
.feedListPagePlayer-source >.cf{ float:right!important; }
.feedListPagePlayer-source .nav{ width:auto!important;top:0%;margin-top:0px;font-size:2em;padding:0px}
.feedListPagePlayer-source .navNext{margin-right:0.7em!important}}
/* Replaces the max width of 400px for the list page */
@media only screen and (min-width:959px){
.feedListPage-item.matrix-itemFluid { max-width: 100%;}}
@media only screen and ( max-width:769px){
.feedListPage-item.matrix-itemFluid {width:50%;}}
.feedListPage-itemTitle {overflow:hidden;padding:.2em 0.5em;line-height:1.28;height:4.2em;max-height:4.2em;font-size:1.1em;}
/** Highlight Videos Colours And Active**/
.feedListPage-item:hover .matrix-item.matrix-sheet{ box-shadow:0px 10px 8px rgba(0,0,0,0.3);border-radius:0px 0px 4px 4px}
.feedListPage-item:hover .feedListPage-itemTitle, .videoActive.feedListPage-item .feedListPage-itemTitle{ color:whitesmoke;background: rgba(169, 0, 0, 0.74);border-radius:0px 0px 4px 4px; }
/* Pagination on pages, shows the words next previous*/
#feedListPagination.pagination .icon{ display:inline!important; }
#feedListPagination.pagination .icon-next::before{ display:none }
#feedListPagination.pagination .icon-next::after {
content: "";
}
#feedListPagination.pagination .icon-next::after {
font-family: "ning-icon-fonts";
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;
margin-left: 0.5em;
}
#feedListPagination a.pagination-previous{ margin-right:10px}
#feedListPagination a.pagination-next{ margin-left:10px }
#feedListPagination a.pagination-previous:hover{text-decoration:none}
#feedListPagination a.pagination-next:hover{text-decoration:none}
#feedListPagination .pagination .is-disabled{ display:none }
#feedListPagination{ margin-top:15px }
/*** VIDEO LIST UNDER THE VIDEO PLAYER ***/
/** SHOW VIDEOS LIST ON PLAYER **/
@media only screen and ( max-width:481px){
.videolistControl {
position:relative!important;
}}
.videolistControl:before { content:"More Videos";display:block;color:white }
.videolistControl {
position:absolute;
height: 45px;width:65px;
background-color:rgba(40, 32, 66, 0.84);
padding: 4px;
cursor:pointer;
border-radius: 0px 0px 4px 0px;
}
.videolistControl:hover, .videolistControl:focus{
background-color:rgb(69, 27, 16);
}
.videolistControl.close:before { content:"Close Videos";display:block;color:white }
.videolist .feedListPage-item.matrix-itemFluid {
max-width: 200px;
}
.videolist .matrix-item.matrix-sheet{
border: solid 1px #565252;
background-color: #4e4040;
padding: 4px;
border-radius:0px 0px 4px 4px;
}
.feedListPagePlayer-source .videolist .feedListPage-itemTitle{
overflow:hidden;
padding:0.1em 0.2em;
line-height:1.1em;
height:3.58em;
max-height:3.58em;
font-size:12px;
color:whitesmoke;
}
.videolist .matrix-item.matrix-sheet:hover{
background-color: darkgrey;
}
.videolist .matrix-item.matrix-sheet:hover .feedListPage-itemTitle{
background-color: rgba(169, 0, 0, 0.74);
}
.videolist{
position: absolute;
margin-top:50px;
width: 94.9vw;
background: rgba(0, 0, 0, 0.91) none repeat scroll 0% 0%;
overflow-x: auto;
overflow-y: hidden;
border-bottom: solid 1px #666;
}
.videolist .module-body {
padding: 0px 5px 10px 5px;
width: 2400px;
}
.videolist #feedListPagination{
display:none;
}
.tabContainerSection-pane .videolistControl{ display:none }
.section-channel .videolistControl{ display:none }
@media only screen and ( min-width:771px ){
.sourceContainer:hover .videolistControl::after { position: absolute; top: -50px; left: -50px;display:block}}
.videolistControl::after {
display:none;
content: "View More Videos By Clicking More Videos Box";
margin-left: 52px;
color: #d7d7d7;
background: rgba(0,0,0,0.95);
float: left;
width: 300px;
margin-top: 5px;
padding: 10px;
font-size: 0.8em;
border: solid 1px lightgrey; }
.videolistControl.close::after{display:none!important}
/*** END CSS CODE FOR SOCIAL CHANNEL PLAYER **/
CODE TO BE ADDED TO YOUR CUSTOM CODE END OF PAGE SECTION ( DO NOT COPY THIS LINE )
<!-- SHOW CHANNEL VIDEOS IN PLAYER -->
<script>
x$("<div></div>").attr('class','videolistControl').prependTo('.sourceContainer');
x$("<div></div>").attr('class','videolist').appendTo('.videolistControl');
x$( ".feedListPage .module-body" ).clone(true).appendTo('.videolist');
x$('.videolist').hide();
</script>
<script>
x$(".videolistControl").click(function(){
x$('.videolist').slideToggle(300);
x$(this).toggleClass('close');
});
</script>
<script>
x$('a.closer.pull-right.feedListPagePlayer-close').click(function(){
x$(".videolistControl").removeClass('close');
x$('.videolist').hide();
});
</script>
Replies