-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
<%= lar %>
diff --git a/docroot/html/courseadmin/inc/specificContent.jsp b/docroot/html/courseadmin/inc/specificContent.jsp
index 355d5d683..bb2ab15f3 100644
--- a/docroot/html/courseadmin/inc/specificContent.jsp
+++ b/docroot/html/courseadmin/inc/specificContent.jsp
@@ -14,4 +14,8 @@ if(courseDiploma!=null){
}
%>
-
+
+ <%if(course != null){ %>
+
+ <%} %>
+
\ No newline at end of file
diff --git a/docroot/html/courseadmin/inc/specific_action.jsp b/docroot/html/courseadmin/inc/specific_action.jsp
new file mode 100644
index 000000000..3fbab7b8e
--- /dev/null
+++ b/docroot/html/courseadmin/inc/specific_action.jsp
@@ -0,0 +1,40 @@
+<%@page import="com.liferay.lms.service.CourseLocalServiceUtil"%>
+<%@page import="com.liferay.lms.model.Course"%>
+<%@page import="com.liferay.portal.kernel.util.StringBundler"%>
+<%@include file="/init.jsp"%>
+
+
+<%
+String path = renderRequest.getParameter("path");
+String portletId = renderRequest.getParameter("portletId");
+String courseId = renderRequest.getParameter("courseId");
+String cur = renderRequest.getParameter("cur");
+String delta = renderRequest.getParameter("delta");
+Course selectedCourse = CourseLocalServiceUtil.fetchCourse(Long.parseLong(courseId));
+
+StringBundler sb = new StringBundler();
+sb.append("
");
+sb.append("");
+sb.append("");
+sb.append("portletSetupShowBorders");
+sb.append("");
+sb.append("");
+sb.append("false");
+sb.append("");
+sb.append("");
+sb.append("");
+%>
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docroot/html/editactivity/editactivity.jsp b/docroot/html/editactivity/editactivity.jsp
index 629479979..3ec305b85 100644
--- a/docroot/html/editactivity/editactivity.jsp
+++ b/docroot/html/editactivity/editactivity.jsp
@@ -63,6 +63,7 @@
+
<%
renderResponse.setProperty("clear-request-parameters", Boolean.TRUE.toString());
@@ -81,12 +82,11 @@ if(request.getAttribute("activity")!=null){
learnact=(LearningActivity)request.getAttribute("activity");
typeId=learnact.getTypeId();
moduleId=learnact.getModuleId();
-}else{
- if(actId>0) {
- learnact=LearningActivityLocalServiceUtil.getLearningActivity(actId);
- typeId=learnact.getTypeId();
- moduleId=learnact.getModuleId();
- }
+ actId = learnact.getActId();
+}else if(actId>0) {
+ learnact=LearningActivityLocalServiceUtil.getLearningActivity(actId);
+ typeId=learnact.getTypeId();
+ moduleId=learnact.getModuleId();
}
@@ -1027,6 +1027,13 @@ Liferay.provide(
<%}
%>
+
+
+
+
+
+
<%
boolean showActivityClassification = true;
try {
diff --git a/docroot/html/execactivity/test/view.jsp b/docroot/html/execactivity/test/view.jsp
index cd8b854e4..0e9d76246 100644
--- a/docroot/html/execactivity/test/view.jsp
+++ b/docroot/html/execactivity/test/view.jsp
@@ -762,10 +762,10 @@ if(isTablet){%>
}
} else{
PortletURL passwordURL = renderResponse.createRenderURL();
+ passwordURL.setParameter("jspPage","/html/execactivity/test/view.jsp" );
if(improve) {
passwordURL.setParameter("improve", "true");
- }
- %>
+ }%>
diff --git a/docroot/html/generalstats/config/config.jsp b/docroot/html/generalstats/config/config.jsp
index 729a4ffe3..5623b1ca9 100644
--- a/docroot/html/generalstats/config/config.jsp
+++ b/docroot/html/generalstats/config/config.jsp
@@ -13,6 +13,17 @@
boolean showSearchTagsGeneralStats = preferences.getValue("showSearchTagsGeneralStats", "false").equals("true");
boolean showSearchCategoriesGeneralStats = preferences.getValue("showSearchCategoriesGeneralStats", "true").equals("true");
+
+ boolean showRegistered = preferences.getValue("showRegistered", "true").equals("true");
+ boolean showInit = preferences.getValue("showInit", "true").equals("true");
+ boolean showFinished = preferences.getValue("showFinished", "true").equals("true");
+ boolean showAvgResult = preferences.getValue("showAvgResult", "true").equals("true");
+ boolean showModules = preferences.getValue("showModules", "true").equals("true");
+ boolean showActivities = preferences.getValue("showActivities", "true").equals("true");
+ boolean showPassed = preferences.getValue("showPassed", "false").equals("true");
+ boolean showFailed = preferences.getValue("showFailed", "false").equals("true");
+ boolean showCourseClosed = preferences.getValue("showCourseClosed", "true").equals("true");
+
%>
@@ -21,6 +32,15 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docroot/html/generalstats/coursesearchform.jsp b/docroot/html/generalstats/coursesearchform.jsp
deleted file mode 100644
index 4651b758a..000000000
--- a/docroot/html/generalstats/coursesearchform.jsp
+++ /dev/null
@@ -1,344 +0,0 @@
-
-<%@page import="com.liferay.portal.kernel.search.Hits"%>
-<%@page import="com.liferay.portal.kernel.util.Validator"%>
-<%@page import="com.liferay.lms.service.CourseLocalServiceUtil"%>
-<%@page import="com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil"%>
-<%@page import="com.liferay.portlet.asset.model.AssetEntry"%>
-<%@page import="java.util.List"%>
-<%@page import="com.liferay.portal.kernel.util.ArrayUtil"%>
-<%@page import="com.liferay.portal.kernel.util.StringUtil"%>
-<%@page import="com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil"%>
-<%@page import="com.liferay.portlet.asset.model.AssetCategory"%>
-<%@page import="com.liferay.portal.kernel.search.IndexerRegistryUtil"%>
-<%@page import="com.liferay.portal.kernel.search.Indexer"%>
-<%@page import="com.liferay.portal.kernel.search.ParseException"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanClauseOccur"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanClauseFactoryUtil"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanClause"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanQueryFactoryUtil"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanQuery"%>
-<%@page import="com.liferay.portal.kernel.search.Document"%>
-<%@page import="java.util.HashMap"%>
-<%@page import="com.liferay.portal.kernel.search.SearchContext"%>
-<%@page import="com.liferay.portal.kernel.util.StringPool"%>
-<%@page import="com.liferay.portal.kernel.util.GetterUtil"%>
-<%@page import="java.util.ArrayList"%>
-<%@page import="java.util.Enumeration"%>
-<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
-<%@page import="com.liferay.portal.kernel.search.Field"%>
-<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
-<%@page import="com.liferay.portal.kernel.dao.orm.QueryUtil"%>
-<%@page import="com.liferay.portlet.asset.service.AssetTagLocalServiceUtil"%>
-<%@page import="com.liferay.portlet.asset.service.AssetEntryServiceUtil"%>
-<%@page import="com.liferay.portlet.asset.service.persistence.AssetEntryFinderUtil"%>
-<%@page import="com.liferay.portlet.asset.service.persistence.AssetEntryQuery"%>
-<%@page import="com.liferay.portal.service.ServiceContextFactory"%>
-<%@page import="com.liferay.lms.util.CourseComparator"%>
-<%@page import="com.liferay.portal.theme.ThemeDisplay"%>
-<%@page import="com.liferay.lms.model.Course"%>
-<%@page import="java.util.Comparator"%>
-<%@page import="java.util.Collections"%>
-<%@page import="javax.portlet.PortletPreferences"%>
-<%@page import="com.liferay.portlet.PortletPreferencesFactoryUtil"%>
-<%@page import="com.liferay.portal.service.ServiceContext"%>
-
-<%
-
-String search = ParamUtil.getString(request, "search","");
-String freetext = ParamUtil.getString(request, "freetext","");
-String tags = ParamUtil.getString(request, "tags","");
-Integer state = ParamUtil.getInteger(request, "state",WorkflowConstants.STATUS_APPROVED);
-
-long catId=ParamUtil.getLong(request, "categoryId",0);
-
-String[] tagsSel = null;
-
-ServiceContext sc=ServiceContextFactory.getInstance(request);
-tagsSel = sc.getAssetTagNames();
-
-long[] tagsSelIds = null;
-
-if(tagsSel != null){
- long[] groups = new long[]{themeDisplay.getScopeGroupId()};
- tagsSelIds = AssetTagLocalServiceUtil.getTagIds(groups, tagsSel);
-}
-
-
-Enumeration
pnames =request.getParameterNames();
-ArrayList tparams = new ArrayList();
-ArrayList assetCategoryIds = new ArrayList();
-ArrayList assetTagIds = new ArrayList();
-
-
-while(pnames.hasMoreElements()){
- String name = pnames.nextElement();
- if(name.length()>16&&name.substring(0,16).equals("assetCategoryIds")){
- tparams.add(name);
- String value = request.getParameter(name);
- String[] values = value.split(",");
- for(String valuet : values){
- try{
- assetCategoryIds.add(Long.parseLong(valuet));
- }catch(Exception e){
- }
- }
-
- }
-}
-
-if(ParamUtil.getString(request, "search").equals("search")){
- portletSession.setAttribute("freetext", freetext);
- portletSession.setAttribute("state", state);
- portletSession.setAttribute("assetCategoryIds", assetCategoryIds);
- portletSession.setAttribute("assetTagIds", tagsSelIds);
-
-}else{
- try{
- String freetextTemp = (String)portletSession.getAttribute("freetext");
- if(freetextTemp!=null){
- freetext = freetextTemp;
- }
- }catch(Exception e){}
- try{
- ArrayList assetCategoryIdsTemp = (ArrayList)portletSession.getAttribute("assetCategoryIds");
- if(assetCategoryIdsTemp!=null){
- assetCategoryIds = assetCategoryIdsTemp;
- }
- }catch(Exception e){}
- try{
- ArrayList assetTagIdsTemp = (ArrayList)portletSession.getAttribute("assetTagIds");
- if(assetTagIdsTemp!=null){
- assetTagIds = assetTagIdsTemp;
- }
- }catch(Exception e){}
- try{
- Integer stateTemp = (Integer)portletSession.getAttribute("state");
- if(stateTemp!=null){
- state = stateTemp;
- }
- }catch(Exception e){}
-}
-
-
-boolean scategories = GetterUtil.getBoolean(renderRequest.getPreferences().getValues("categories", new String[]{StringPool.TRUE})[0],true);
-
-HashMap lucenes = new HashMap();
-if(!freetext.isEmpty()){
- SearchContext scon=new SearchContext();
- scon.setAttribute(Field.STATUS, WorkflowConstants.STATUS_ANY);
- if(catId>0){
- try{
- BooleanQuery booleanQueryCategoryId = BooleanQueryFactoryUtil.create(scon);
- booleanQueryCategoryId.addTerm("assetCategoryIds", catId);
- BooleanClause booleanClauseCategoryId = BooleanClauseFactoryUtil.create(scon,booleanQueryCategoryId, BooleanClauseOccur.MUST.getName());
- BooleanClause[] clauses = {booleanClauseCategoryId};
- scon.setBooleanClauses(clauses);
- }catch(ParseException pe){
- pe.printStackTrace();
- }
- }
- scon.setCompanyId(themeDisplay.getCompanyId());
- scon.setKeywords(freetext+"*");
-
- Indexer indexer=IndexerRegistryUtil.getIndexer(Course.class);
- Hits hits=indexer.search(scon);
- Document[] docs=hits.getDocs();
- for(Document doc : docs){
- lucenes.put(Long.parseLong(doc.get(Field.ENTRY_CLASS_PK)), doc);
- }
-}
-
-java.util.List courses=null;
-AssetCategory category=null;
-long[] catIds=ParamUtil.getLongValues(request, "categoryIds");
-
-StringBuffer sb = new StringBuffer();
-for(long cateId : assetCategoryIds){
- sb.append(cateId);
- sb.append(",");
-}
-String catIdsText = sb.toString();
-
-if((catIds==null||catIds.length<=0)&&(assetCategoryIds!=null&&assetCategoryIds.size()>0)){
- catIds = new long[assetCategoryIds.size()];
- for(int i=0;i
-
-
-
-
- <%=categ.getTitle(locale) %>
- ">
-
-
-
- <%
- }
- }
-}
-%>
-
-<%
-if(catIds==null ||catIds.length==0)
-{
- if(catId!=0)
- {
- catIds=new long[]{catId};
- }
-}
-if(catIds!=null&&catIds.length>0)
-{
- catIds=ArrayUtil.remove(catIds, 0l);
-}
-if( (catIds!=null&&catIds.length>0) || !freetext.isEmpty() || state!=WorkflowConstants.STATUS_ANY)
-{
- List entries=new ArrayList();
- AssetEntryQuery entryQuery=new AssetEntryQuery();
- long[] groupIds={themeDisplay.getScopeGroupId()};
- entryQuery.setAllCategoryIds(catIds);
- if(tagsSelIds != null){
- entryQuery.setAllTagIds(tagsSelIds);
- }
- entryQuery.setGroupIds(groupIds);
- entryQuery.setClassName(Course.class.getName());
- entryQuery.setEnablePermissions(true);
- entryQuery.setExcludeZeroViewCount(false);
- entryQuery.setVisible(true);
- entries.addAll(AssetEntryLocalServiceUtil.getEntries(entryQuery));
- entryQuery.setVisible(false);
- entries.addAll(AssetEntryLocalServiceUtil.getEntries(entryQuery));
-
- courses=new ArrayList();
- if(!freetext.isEmpty()){
- for(AssetEntry entry:entries)
- {
- if(lucenes.get(entry.getClassPK())!=null){
- Course course = null;
- try{
- course = CourseLocalServiceUtil.getCourse(entry.getClassPK());
- }catch(Exception e){
- continue;
- }
-
- if(state!=WorkflowConstants.STATUS_ANY){
- if(state==WorkflowConstants.STATUS_APPROVED){
- if(!course.getClosed())
- courses.add(course);
- }
- else if(state==WorkflowConstants.STATUS_INACTIVE){
- if(course.getClosed())
- courses.add(course);
- }
- }else{
- courses.add(course);
- }
- }
- }
- }else{
- for(AssetEntry entry:entries){
- Course course = null;
- try{
- course = CourseLocalServiceUtil.getCourse(entry.getClassPK());
- }catch(Exception e){
- continue;
- }
-
- if(state!=WorkflowConstants.STATUS_ANY){
- if(state==WorkflowConstants.STATUS_APPROVED){
- if(!course.getClosed())
- courses.add(course);
- }
- else if(state==WorkflowConstants.STATUS_INACTIVE){
- if(course.getClosed())
- courses.add(course);
- }
- }else{
- courses.add(course);
- }
- }
- }
-}
-else
-{
- courses=CourseServiceUtil.getCoursesOfGroup(scopeGroupId);
-}
-java.util.List finalCourses=new ArrayList();
-for(Course course:courses)
-{
- finalCourses.add(course);
-}
-courses=finalCourses;
-
-//Order courses
-
-if(courses!=null&&courses.size()>0){
- CourseComparator courseComparator = new CourseComparator(themeDisplay.getLocale());
- Collections.sort(courses, courseComparator );
-}
-
-
-PortletPreferences preferences = null;
-String portletResource = ParamUtil.getString(request, "portletResource");
-
-if (Validator.isNotNull(portletResource)) {
- preferences = PortletPreferencesFactoryUtil.getPortletSetup(request, portletResource);
-}else{
- preferences = renderRequest.getPreferences();
-}
-
-boolean showSearchTags = preferences.getValue("showSearchTags","false").equals("true");
-if(!"".equals(preferences.getValue("showSearchTagsGeneralStats", ""))){
- showSearchTags = preferences.getValue("showSearchTagsGeneralStats","false").equals("true");
-}
-
-if(!"".equals(preferences.getValue("showSearchCategoriesGeneralStats", ""))){
- scategories = preferences.getValue("showSearchCategoriesGeneralStats", "true").equals("true");
-}
-%>
-
-
-
-
\ No newline at end of file
diff --git a/docroot/html/generalstats/view.jsp b/docroot/html/generalstats/view.jsp
index f7824392d..378d96d78 100644
--- a/docroot/html/generalstats/view.jsp
+++ b/docroot/html/generalstats/view.jsp
@@ -1,165 +1,74 @@
-<%@page import="com.liferay.lms.model.CourseResult"%>
-<%@page import="com.liferay.lms.service.CourseResultService"%>
-<%@page import="com.liferay.lms.service.CourseResultLocalService"%>
-<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%>
-<%@page import="com.liferay.portal.model.UserGroupRole"%>
-<%@page import="com.liferay.lms.service.LmsPrefsLocalServiceUtil"%>
-<%@page import="com.liferay.lms.service.LmsPrefsLocalService"%>
-<%@page import="com.liferay.lms.model.LmsPrefs"%>
-<%@page import="java.util.Locale"%>
-<%@page import="java.text.DecimalFormat"%>
-<%@page import="com.liferay.lms.service.LearningActivityLocalServiceUtil"%>
-<%@page import="com.liferay.lms.service.ModuleServiceUtil"%>
-<%@page import="com.liferay.lms.service.ModuleLocalServiceUtil"%>
-<%@page import="com.liferay.lms.service.CourseResultLocalServiceUtil"%>
-<%@page import="java.util.Comparator"%>
-<%@page import="java.util.Collections"%>
-<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"%>
-<%@page import="com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil"%>
-<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQuery"%>
-<%@page import="com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil"%>
-<%@page import="com.liferay.portal.model.ClassName"%>
-<%@page import="com.liferay.portal.service.ClassNameLocalServiceUtil"%>
-<%@page import="com.liferay.portal.kernel.util.PortalClassLoaderUtil"%>
-<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
-<%@page import="java.util.Enumeration"%>
-<%@page import="com.liferay.portal.kernel.search.ParseException"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanClauseFactoryUtil"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanClauseOccur"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanClause"%>
-<%@page import="java.util.HashMap"%>
-<%@page import="com.liferay.portal.kernel.search.Field"%>
-<%@page import="com.liferay.portal.kernel.search.Document"%>
-<%@page import="com.liferay.portal.kernel.search.Hits"%>
-<%@page import="com.liferay.portal.kernel.search.IndexerRegistryUtil"%>
-<%@page import="com.liferay.portal.kernel.search.Indexer"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanQueryFactoryUtil"%>
-<%@page import="com.liferay.portal.kernel.search.BooleanQuery"%>
-<%@page import="com.liferay.portal.kernel.search.SearchContext"%>
-<%@page import="com.liferay.portal.kernel.util.ArrayUtil"%>
-<%@page import="com.liferay.portlet.asset.model.AssetEntry"%>
-<%@page import="com.liferay.portlet.asset.service.persistence.AssetEntryQuery"%>
-<%@page import="com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil"%>
-<%@page import="com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil"%>
-<%@page import="com.liferay.portlet.asset.model.AssetCategory"%>
-<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
-<%@page import="com.liferay.lms.service.CourseLocalServiceUtil"%>
-<%@page import="com.liferay.lms.service.CourseServiceUtil"%>
-<%@page import="com.liferay.lms.model.Course"%>
+
<%@ include file="/init.jsp" %>
-<%
-DecimalFormat df = new DecimalFormat("#.#");
-Locale loc = response.getLocale();
- %>
+
-<%!
-private String getHorasMinutosFromMiliseconds(long milisegundos) {
- long horas = Math.abs(milisegundos / 3600000);
- long restoHoras = milisegundos % 3600000;
- long minutos = Math.abs(restoHoras / 60000);
- long restoMinutos = restoHoras % 60000;
- long segundos = Math.abs(restoMinutos / 1000);
- return ((horas < 10) ? "0" : "") + horas + ":" + ((minutos < 10) ? "0" : "") + minutos + ":"
- + ((segundos < 10) ? "0" : "") + segundos;
- }
- %>
\ No newline at end of file
diff --git a/docroot/html/inscriptionadmin/config.jsp b/docroot/html/inscriptionadmin/config.jsp
new file mode 100644
index 000000000..6e125e463
--- /dev/null
+++ b/docroot/html/inscriptionadmin/config.jsp
@@ -0,0 +1,34 @@
+<%@include file="/init.jsp"%>
+<%@page import="javax.portlet.PortletPreferences"%>
+<%@page import="com.liferay.portlet.PortletPreferencesFactoryUtil"%>
+<%@page import="com.liferay.portal.kernel.util.Validator"%>
+<%@page import="com.liferay.portal.service.PortletPreferencesLocalServiceUtil"%>
+<%@page import="com.liferay.portal.kernel.util.StringPool"%>
+<%@page import="com.liferay.portal.kernel.util.GetterUtil"%>
+<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
+<%@page import="com.liferay.portal.kernel.util.Constants"%>
+
+
+<%
+PortletPreferences preferences = renderRequest.getPreferences();
+
+String portletResource = ParamUtil.getString(request, "portletResource");
+
+if (Validator.isNotNull(portletResource)) {
+ preferences = PortletPreferencesFactoryUtil.getPortletSetup(request, portletResource);
+}
+boolean showEmailAddress = Boolean.parseBoolean(preferences.getValue("showEmailAddress",StringPool.FALSE)) ;
+
+%>
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docroot/html/inscriptionadmin/view.jsp b/docroot/html/inscriptionadmin/view.jsp
index 2c2ee4983..109f70068 100644
--- a/docroot/html/inscriptionadmin/view.jsp
+++ b/docroot/html/inscriptionadmin/view.jsp
@@ -1,3 +1,5 @@
+<%@page import="javax.portlet.PortletPreferences"%>
+<%@page import="com.liferay.portlet.PortletPreferencesFactoryUtil"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.liferay.portal.kernel.util.ListUtil"%>
<%@page import="com.liferay.portal.model.MembershipRequest"%>
@@ -26,6 +28,13 @@
value="<%= usert.getFullName() %>"
align="left"
/>
+
+
+
-<%@page import="com.liferay.lms.course.inscriptiontype.InscriptionType"%>
-<%@page import="com.liferay.lms.service.ScheduleLocalServiceUtil"%>
-<%@page import="com.liferay.lms.service.ScheduleLocalService"%>
-<%@page import="com.liferay.lms.model.Schedule"%>
-<%@page import="com.liferay.portal.model.Team"%>
-<%@page import="com.liferay.portal.service.TeamLocalServiceUtil"%>
-<%@page import="com.liferay.lms.model.CourseResult"%>
-<%@page import="com.liferay.lms.service.CourseResultLocalServiceUtil"%>
-<%@page import="com.liferay.lms.model.Competence"%>
-<%@page import="com.liferay.lms.service.CompetenceLocalServiceUtil"%>
-<%@page import="com.liferay.lms.model.UserCompetence"%>
-<%@page import="com.liferay.lms.model.CourseCompetence"%>
-<%@page import="com.liferay.lms.service.CourseCompetenceLocalServiceUtil"%>
-<%@page import="com.liferay.lms.service.UserCompetenceLocalServiceUtil"%>
-<%@page import="com.liferay.portal.model.MembershipRequest"%>
-<%@page import="com.liferay.portal.model.MembershipRequestConstants"%>
-<%@page import="com.liferay.portal.service.MembershipRequestLocalServiceUtil"%>
-<%@page import="com.liferay.lms.model.Course"%>
-<%@page import="com.liferay.lms.service.CourseLocalServiceUtil"%>
-<%@include file="/init.jsp" %>
-<%@page import="java.net.URLEncoder"%>
-<%@page import="javax.portlet.PortletPreferences"%>
-<%@page import="com.liferay.util.JavaScriptUtil"%>
+<%@ include file="/init.jsp" %>
-
+
+
+
+
+
- <%
- Course course=CourseLocalServiceUtil.fetchByGroupCreatedId(themeDisplay.getScopeGroupId());
+
+
+
- if(course!=null && permissionChecker.hasPermission(course.getGroupId(), Course.class.getName(),course.getCourseId(),ActionKeys.VIEW)){
- Group groupC = GroupLocalServiceUtil.getGroup(course.getGroupCreatedId());
- if(themeDisplay.isSignedIn()){ %>
+
+
+
+
+
-
-
-
-
-
- <%if(GroupLocalServiceUtil.hasUserGroup(themeDisplay.getUserId(),themeDisplay.getScopeGroupId())){
- Date now = new Date();
- InscriptionType inscriptionType = new InscriptionTypeRegistry().getInscriptionType(course.getInscriptionType());
- if(!inscriptionType.canUnsubscribe() || course.getStartDate().after(now)||course.getEndDate().before(now)||!permissionChecker.hasPermission(course.getGroupId(), Course.class.getName(),course.getCourseId(),"REGISTER")){%>
-
- <%} else {
- CourseResult courseResult = CourseResultLocalServiceUtil.getByUserAndCourse(course.getCourseId(), themeDisplay.getUserId());
-
- if((courseResult != null && courseResult.getPassedDate() != null) || (groupC.getType()!=GroupConstants.TYPE_SITE_OPEN)){%>
-
- <%}else{ %>
-
-
-
-
-
-
-
- <%}
- }
- } else {
-
- List courseCompetences = CourseCompetenceLocalServiceUtil.findBycourseId(course.getCourseId(), true);
-
- boolean pass=true;
-
- if(courseCompetences!=null&&courseCompetences.size()>0){%>
-
- :
-
- <%for(CourseCompetence courseCompetence : courseCompetences){
- UserCompetence uc = UserCompetenceLocalServiceUtil.findByUserIdCompetenceId(themeDisplay.getUserId(), courseCompetence.getCompetenceId());
- if(uc!=null) {
- Competence compet =CompetenceLocalServiceUtil.getCompetence(uc.getCompetenceId());
- if(compet!=null) {%>
- - <%=compet.getTitle(themeDisplay.getLocale())%>
- <%}
- }else{
- pass=false;
- Competence compet =CompetenceLocalServiceUtil.getCompetence(courseCompetence.getCompetenceId());
- if(compet!=null){%>
- - <%=compet.getTitle(themeDisplay.getLocale())%>
- <%}
- }
- }%>
-
- <%}
-
- Date now=new Date(System.currentTimeMillis());
-
-
-
- if((course.getStartDate().before(now)&&course.getEndDate().after(now))&&permissionChecker.hasPermission(course.getGroupId(), Course.class.getName(),course.getCourseId(),"REGISTER")){
-
- if((course.getMaxusers()<=0||UserLocalServiceUtil.getGroupUsersCount(course.getGroupCreatedId())
-
- <%if(pass){
- List teams = TeamLocalServiceUtil.getGroupTeams(course.getGroupCreatedId());
- boolean existTeam = false;
- boolean scheduleOpen = false;
- for(Team team : teams){
- Schedule sch = ScheduleLocalServiceUtil.getScheduleByTeamId(team.getTeamId());
- if(sch!=null){
- existTeam = true;
- if(sch.getStartDate().before(now)&&sch.getEndDate().after(now)){
- scheduleOpen = true;
- %>
-
-
-
-
- <%= team.getName() %>
-
-
- <%= dateFormatDateTime.format(sch.getStartDate()) %>
-
-
- <%= dateFormatDateTime.format(sch.getEndDate()) %>
-
-
-
-
-
- <%}
- }
-
- }
- if(!existTeam){
- %>
-
-
-
- <%
- }else{
- if(!scheduleOpen){
- %>
-
-
-
-
- <%
- }
- }
- }else{ %>
-
-
-
-
-
- <%} %>
-
- <%}else if(groupC.getType()==GroupConstants.TYPE_SITE_RESTRICTED){
- List pending = MembershipRequestLocalServiceUtil.getMembershipRequests(themeDisplay.getUserId(), themeDisplay.getScopeGroupId(), MembershipRequestConstants.STATUS_PENDING);
-
- if(pending.size()>0){%>
-
- <%}else{
- List denied = MembershipRequestLocalServiceUtil.getMembershipRequests(themeDisplay.getUserId(), themeDisplay.getScopeGroupId(), MembershipRequestConstants.STATUS_DENIED);
-
- if(denied.size()>0){%>
-
<%
- }else{%>
- <%if(pass){
- List teams = TeamLocalServiceUtil.getGroupTeams(course.getGroupCreatedId());
- boolean existTeam = false;
- boolean scheduleOpen = false;
- for(Team team : teams){
- Schedule sch = ScheduleLocalServiceUtil.getScheduleByTeamId(team.getTeamId());
- if(sch!=null){
- existTeam = true;
- if(sch.getStartDate().before(now)&&sch.getEndDate().after(now)){
- scheduleOpen = true;%>
-
-
-
-
-
- <%= team.getName() %>
-
-
- <%= dateFormatDateTime.format(sch.getStartDate()) %>
-
-
- <%= dateFormatDateTime.format(sch.getEndDate()) %>
-
-
-
-
-
- <%
- }
- }
-
- }
- if(!existTeam){
- %>
-
-
-
- <%
- }else{
- if(!scheduleOpen){
- %>
-
-
+
+
+
+
+
+
+
+
+
+
${childCourse.getTitle(locale)}
+
+
+
-
- <%
- }
- }
- }else{ %>
-
-
-
- <%} %>
- <%}
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+ :
+
+
+
+
+
+
+
+ - ${competence.getTitle(themeDisplay.getLocale())}
+
+
+
+
+
+ - ${competence.getTitle(themeDisplay.getLocale())}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ : -
+
+
+ : -
+
+
+ ${fn:substringAfter(inscriptionException.message, ':')}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ : -
+
+
+ ${fn:substringAfter(inscriptionException.message, ':')}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${fn:substringAfter(inscriptionException.message, ':')}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docroot/html/lmsactivitieslist/newactivity.jsp b/docroot/html/lmsactivitieslist/newactivity.jsp
index 0e3657e55..562045c5d 100644
--- a/docroot/html/lmsactivitieslist/newactivity.jsp
+++ b/docroot/html/lmsactivitieslist/newactivity.jsp
@@ -34,12 +34,10 @@ AUI().ready(
<%
Course course=CourseLocalServiceUtil.fetchByGroupCreatedId(themeDisplay.getScopeGroupId());
long courseTypeId = AssetEntryLocalServiceUtil.getEntry(Course.class.getName(),course.getCourseId()).getClassTypeId();
- System.out.println("courseTypeId:: " + courseTypeId);
List
listLearningActivityTypes = null;
if(courseTypeId>0){
CourseType courseType = CourseTypeLocalServiceUtil.getCourseType(courseTypeId);
listLearningActivityTypes = courseType.getLearningActivityTypeIds();
- System.out.println(listLearningActivityTypes.size());
}
LearningActivityTypeRegistry learningActivityTypeRegistry = new LearningActivityTypeRegistry();
long[] invisibleTypes = StringUtil.split(PropsUtil.get("lms.learningactivity.invisibles"), StringPool.COMMA,-1L);
diff --git a/docroot/html/lmsactivitieslist/viewactivities.jsp b/docroot/html/lmsactivitieslist/viewactivities.jsp
index 0d5f66c08..00febf028 100644
--- a/docroot/html/lmsactivitieslist/viewactivities.jsp
+++ b/docroot/html/lmsactivitieslist/viewactivities.jsp
@@ -8,7 +8,6 @@
<%
List activities = null;
-
if (moduleId == 0) {
activities = LearningActivityServiceUtil.getLearningActivitiesOfGroup(scopeGroupId);
} else {
@@ -19,15 +18,12 @@ if (moduleId == 0) {
activities = LearningActivityServiceUtil.getLearningActivitiesOfModule(moduleId);
}
}
-
String activityEnd = "desactivado";
-
if ((actionEditing && hasPermissionAddLact) ||
(moduleId==0
&& permissionChecker.hasPermission(themeDisplay.getScopeGroupId(), "com.liferay.lms.learningactivitymodel", themeDisplay.getScopeGroupId(), "ADD_ACTIVITY"))) {
PortletURL urlCreateActivity = LmsActivitiesList.getURLCreateActivity(liferayPortletRequest, liferayPortletResponse, currentModule);
-
if(Validator.isNotNull(urlCreateActivity)){
%>
@@ -87,7 +83,6 @@ if ((actionEditing && hasPermissionAddLact) ||
learningActivityType = learningActivityTypeRegistry.getLearningActivityType(activity.getTypeId());
if (permissionChecker.hasPermission(activity.getGroupId(),LearningActivity.class.getName(), activity.getActId(), ActionKeys.VIEW)){
-
if( (Validator.isNotNull(learningActivityType))&&
(accessLock || hasPermissionAccessCourseFinished || (!courseLocked && !activity.isLocked(themeDisplay.getUser(), themeDisplay.getPermissionChecker()))
||(permissionChecker.hasPermission(activity.getGroupId(), LearningActivity.class.getName(), activity.getActId(), ActionKeys.UPDATE) && actionEditing))){%>
diff --git a/docroot/html/lmsconfig/view.jsp b/docroot/html/lmsconfig/view.jsp
index aa7f27aa2..d9a8eda3d 100644
--- a/docroot/html/lmsconfig/view.jsp
+++ b/docroot/html/lmsconfig/view.jsp
@@ -177,7 +177,8 @@ for(InscriptionType inscriptionType :inscriptionTypeRegistry.getInscriptionTypes
%>
+ label="<%=LanguageUtil.get(locale, inscriptionType.getTitle(locale)) %>" checked="<%=checked %>" value="<%=inscriptionType.getTypeId()%>"
+ disabled="<%=!inscriptionType.isActive(themeDisplay.getCompanyId()) %>"/>
<%
}
%>
diff --git a/docroot/html/modulenavigation/view.jsp b/docroot/html/modulenavigation/view.jsp
index 80339ae84..472ade064 100644
--- a/docroot/html/modulenavigation/view.jsp
+++ b/docroot/html/modulenavigation/view.jsp
@@ -1,3 +1,9 @@
+<%@page import="com.liferay.portal.kernel.dao.orm.OrderFactoryUtil"%>
+<%@page import="com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"%>
+<%@page import="com.liferay.lms.model.LearningActivity"%>
+<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQuery"%>
+<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"%>
+<%@page import="com.liferay.lms.service.LearningActivityLocalServiceUtil"%>
<%@page import="com.liferay.portlet.PortletPreferencesFactoryUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayPortletURL"%>
<%@page import="com.liferay.lms.service.ModuleLocalServiceUtil"%>
@@ -13,6 +19,11 @@
<%
long moduleId = ParamUtil.getLong(request,"moduleId",0);
+ long currentActId = ParamUtil.getLong(request,"actId",0);
+
+ long firstActId = Long.parseLong(renderRequest.getAttribute("firstActId").toString());
+ long lastActId = Long.parseLong(renderRequest.getAttribute("lastActId").toString());
+
if(moduleId != 0)
{
@@ -48,10 +59,29 @@
}
}
- if(showPreviousModule){
+ long actId = 0L;
+ //Obtengo por una dynamic query la primera actividad del siguiente modulo
+ if (previousModule != null){
+ DynamicQuery query = DynamicQueryFactoryUtil.forClass(LearningActivity.class);
+ query.add(RestrictionsFactoryUtil.eq("moduleId", previousModule.getModuleId()));
+ query.addOrder(OrderFactoryUtil.desc("priority"));
+ List lActivitiesByModule = LearningActivityLocalServiceUtil.dynamicQuery(query);
+ if (lActivitiesByModule!= null && lActivitiesByModule.size()>0){
+ if (themeDisplay.getPermissionChecker().hasPermission(lActivitiesByModule.get(0).getGroupId(),LearningActivity.class.getName(),lActivitiesByModule.get(0).getActId(), ActionKeys.VIEW)){
+ actId = lActivitiesByModule.get(0).getActId();
+ }
+ }
+ }
+
+ if(showPreviousModule && (currentActId == firstActId)){
LiferayPortletURL previousModuleURL = (LiferayPortletURL)renderResponse.createActionURL();
previousModuleURL.setParameter(ActionRequest.ACTION_NAME, "goToModule");
- previousModuleURL.removePublicRenderParameter("actId");
+ //previousModuleURL.removePublicRenderParameter("actId");
+ if (actId == 0L){
+ previousModuleURL.removePublicRenderParameter("actId");
+ }else{
+ previousModuleURL.setParameter("actId", Long.toString(actId));
+ }
previousModuleURL.setWindowState(WindowState.NORMAL);
previousModuleURL.setParameter("moduleId", Long.toString(previousModule.getModuleId()));
previousModuleURL.setParameter("themeId", Long.toString(ParamUtil.getLong(request,"themeId",1)-1));
@@ -77,10 +107,30 @@
}
}
- if(showNextModule){
+
+ //long actId = 0L;
+ //Obtengo por una dynamic query la primera actividad del siguiente modulo
+ /*if (nextModule != null){
+ DynamicQuery query = DynamicQueryFactoryUtil.forClass(LearningActivity.class);
+ query.add(RestrictionsFactoryUtil.eq("moduleId", nextModule.getModuleId()));
+ query.addOrder(OrderFactoryUtil.asc("priority"));
+ List lActivitiesByModule = LearningActivityLocalServiceUtil.dynamicQuery(query);
+ if (lActivitiesByModule!= null && lActivitiesByModule.size()>0){
+ if (themeDisplay.getPermissionChecker().hasPermission(lActivitiesByModule.get(0).getGroupId(),LearningActivity.class.getName(),lActivitiesByModule.get(0).getActId(), ActionKeys.VIEW)){
+ actId = lActivitiesByModule.get(0).getActId();
+ }
+ }
+ }*/
+
+ if(showNextModule && (currentActId == lastActId)){
LiferayPortletURL nextModuleURL = (LiferayPortletURL)renderResponse.createActionURL();
nextModuleURL.setParameter(ActionRequest.ACTION_NAME, "goToModule");
- nextModuleURL.removePublicRenderParameter("actId");
+ //if (actId == 0L){
+ nextModuleURL.removePublicRenderParameter("actId");
+ /*}else{
+ nextModuleURL.setParameter("actId", Long.toString(actId));
+ }*/
+
nextModuleURL.setWindowState(WindowState.NORMAL);
nextModuleURL.setParameter("moduleId", Long.toString(nextModule.getModuleId()));
nextModuleURL.setParameter("themeId", Long.toString(ParamUtil.getLong(request,"themeId",0)+1));
diff --git a/docroot/html/onlinetaskactivity/popups/grades.jsp b/docroot/html/onlinetaskactivity/popups/grades.jsp
index a6c93a47a..4a1b0ed9a 100644
--- a/docroot/html/onlinetaskactivity/popups/grades.jsp
+++ b/docroot/html/onlinetaskactivity/popups/grades.jsp
@@ -59,7 +59,6 @@ CalificationType ct = new CalificationTypeRegistry().getCalificationType(CourseL
String urlFile=null;
String titleFile=null;
-//String iconFile=null;
long sizeKbFile=0;
String text=null;
@@ -76,9 +75,10 @@ if(lATry!=null){
urlFile = themeDisplay.getPortalURL()+"/documents/"+dlfile.getGroupId()+"/"+dlfile.getUuid();
titleFile = dlfile.getTitle();
sizeKbFile = dlfile.getSize()/1024;
- //iconFile=DLUtil.getFileIcon(dlfile.getExtension());
}
- catch(Throwable a){}
+ catch(Throwable a){
+ a.printStackTrace();
+ }
}
else if(OnlineActivity.RICH_TEXT_XML.equals(element.getName())) {
richtext=element.getText();
@@ -88,8 +88,9 @@ if(lATry!=null){
}
}
}
- catch(DocumentException de)
- {}
+ catch(DocumentException de){
+ de.printStackTrace();
+ }
}
if(renderRequest.getParameter("studentId")!=null){
diff --git a/docroot/html/onlinetaskactivity/setactivityform.jsp b/docroot/html/onlinetaskactivity/setactivityform.jsp
new file mode 100644
index 000000000..5aee28e30
--- /dev/null
+++ b/docroot/html/onlinetaskactivity/setactivityform.jsp
@@ -0,0 +1,55 @@
+
+
+ <% if(isSetTextoEnr){ %>
+
+
+
+
+
+ <% } else { %>
+
+
+
+ <% }
+ if(isSetFichero){ %>
+
+
+ <%if(urlFile!=null) {%>
+ <%=titleFile %>
+ <%} %>
+
+
+ <%
+ long fileMaxSize = GetterUtil.getLong(PrefsPropsUtil.getString(PropsKeys.DL_FILE_MAX_SIZE));
+
+ if (fileMaxSize == 0) {
+ fileMaxSize = GetterUtil.getLong(PrefsPropsUtil.getString(PropsKeys.UPLOAD_SERVLET_REQUEST_IMPL_MAX_SIZE));
+ }
+
+ fileMaxSize /= 1024;
+ %>
+
+
+
+
+
+
+
+
+ <% } %>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docroot/html/onlinetaskactivity/view.jsp b/docroot/html/onlinetaskactivity/view.jsp
index bac5285e8..99e65eb09 100644
--- a/docroot/html/onlinetaskactivity/view.jsp
+++ b/docroot/html/onlinetaskactivity/view.jsp
@@ -48,8 +48,6 @@
<%@ include file="/init.jsp" %>
-
-
<%
CalificationType ct = new CalificationTypeRegistry().getCalificationType(CourseLocalServiceUtil.getCourseByGroupCreatedId(themeDisplay.getScopeGroupId()).getCalificationType());
@@ -58,20 +56,16 @@ CalificationType ct = new CalificationTypeRegistry().getCalificationType(CourseL
" />
-
-
+
<%@ include file="/html/shared/isTablet.jsp" %><%
-
Boolean isLinkTabletOnlineView = ParamUtil.getBoolean(request, "isTablet", false);
String cssLinkTabletClassOnlineView="";
if(isLinkTabletOnlineView){
cssLinkTabletClassOnlineView="tablet-link";
}
-
-
long actId = ParamUtil.getLong(request,"actId",0);
if(actId==0)
{
@@ -106,7 +100,6 @@ else
%>
<%=activity.getTitle(themeDisplay.getLocale()) %>
- <%--
--%>
<%=activity.getDescriptionFiltered(themeDisplay.getLocale(),true) %>
@@ -252,7 +245,7 @@ else
-
+
<%if(isTablet){ %>
@@ -367,6 +360,7 @@ else
sizeKbFile = dlfile.getSize()/1024;
}
catch(Throwable a){
+ a.printStackTrace();
}
}
}
@@ -380,8 +374,6 @@ else
<% }
}
- }else{
-
}
%>
@@ -401,85 +393,21 @@ else
<%
- if((activity.getTries()==0)||(activity.getTries()>LearningActivityTryLocalServiceUtil.getTriesCountByActivityAndUser(actId, user.getUserId()))){
- if(isSetTextoEnr){ %>
-
- <% }
-
- if(isTablet==false && isTeacher==false){ %>
-
-
-
- <% if(isSetTextoEnr){ %>
-
-
- <%= ParamUtil.getString(request,"text", StringPool.BLANK) %>
-
-
-
- <% }
- else { %>
-
-
-
- <% }
- if(isSetFichero){ %>
-
-
-
-
- <%
- long fileMaxSize = GetterUtil.getLong(PrefsPropsUtil.getString(PropsKeys.DL_FILE_MAX_SIZE));
-
- if (fileMaxSize == 0) {
- fileMaxSize = GetterUtil.getLong(PrefsPropsUtil.getString(PropsKeys.UPLOAD_SERVLET_REQUEST_IMPL_MAX_SIZE));
- }
-
- fileMaxSize /= 1024;
- %>
-
-
-
-
-
-
-
-
- <% } %>
-
-
-
-
-
- <%} %>
+ if((isTablet==false && isTeacher==false) && ((activity.getTries()==0)||(activity.getTries()>LearningActivityTryLocalServiceUtil.getTriesCountByActivityAndUser(actId, user.getUserId())))){
+ String text = ParamUtil.getString(request,"text", StringPool.BLANK);
+ String urlFile = null;
+ String titleFile = null;
+ %>
+ <%@ include file="/html/onlinetaskactivity/setactivityform.jsp" %>
<% }%>
<%if (result!=null){
- if(!isTablet){%>
-
- <%}
- if(result.getEndDate()!= null){
- %>
<%= result.translateResult(themeDisplay.getLocale())%>
<%
+ if(result.getEndDate()!= null && !isTablet){
+ %>
+
+
<%= result.translateResult(themeDisplay.getLocale())%>
+ <%
if(LearningActivityResultLocalServiceUtil.userPassed(actId,themeDisplay.getUserId())){
%>
<%
}else{
@@ -490,15 +418,43 @@ else
<%=result.getComments() %>
<%}
}else{
- %>
-
- <%
+ LearningActivityTry lATry = LearningActivityTryLocalServiceUtil.getLastLearningActivityTryByActivityAndUser(actId, user.getUserId());
+ String text = StringPool.BLANK;
+ String urlFile = null;
+ String titleFile = null;
+ if(lATry!=null){
+ long sizeKbFile=0;
+ Iterator
nodeItr = SAXReaderUtil.read(lATry.getTryResultData()).getRootElement().nodeIterator();
+ while(nodeItr.hasNext()) {
+ Node element = nodeItr.next();
+ if(OnlineActivity.FILE_XML.equals(element.getName())) {
+ try{
+ DLFileEntry dlfile = DLFileEntryLocalServiceUtil.getDLFileEntry(Long.parseLong(((Element)element).attributeValue("id")));
+ urlFile = themeDisplay.getPortalURL()+"/documents/"+dlfile.getGroupId()+"/"+dlfile.getUuid();
+ titleFile = dlfile.getTitle();
+ sizeKbFile = dlfile.getSize()/1024;
+ }catch(Throwable a){
+ a.printStackTrace();
+ }
+ }
+ if(OnlineActivity.RICH_TEXT_XML.equals(element.getName()))
+ text = element.getStringValue();
+ if(OnlineActivity.TEXT_XML.equals(element.getName()))
+ text = element.getText();
+ }
+ }
+ text = (text.equals(StringPool.BLANK)) ? ParamUtil.getString(request,"text", StringPool.BLANK) : text;
+ %>
+ <%@ include file="/html/onlinetaskactivity/setactivityform.jsp" %>
+
+ <%
}
}else {
long numeroIntentos = LearningActivityTryLocalServiceUtil.getTriesCountByActivityAndUser(actId, user.getUserId());
if(numeroIntentos!=0 && !isTablet && !isTeacher) {
%>
-
+
+
<% }else if(activity.getTries()!=0 && isTablet && !isTeacher){%>
<% }
diff --git a/docroot/html/p2ptaskactivity/inc/correctActivities.jsp b/docroot/html/p2ptaskactivity/inc/correctActivities.jsp
index 02fe60880..989f9aebd 100644
--- a/docroot/html/p2ptaskactivity/inc/correctActivities.jsp
+++ b/docroot/html/p2ptaskactivity/inc/correctActivities.jsp
@@ -195,32 +195,7 @@ if(activity.getEnddate() == null){
//Se copia el atributo para no modificar el servicio
- <%
- for(int i=0;i 0)){
- if(Validator.isNull(des)){
- des = LanguageUtil.get(themeDisplay.getLocale(), "feedback");
- }
- %>
-
- var textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].getData();
-
- AUI().one(selector).get(thisEditor+'_<%=i%>i').set('value',textDesc);
-
- AUI().one(selector).get(thisEditor+'_<%=i%>').set('value',textDesc);
- textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].document.getBody().getText();
-
-
-
-
- A.one("#contentDescriptionCorrec_<%=i%>").html(textDesc);
- <%
- }else{
- break;
- }
- }
- %>
+
if( A.one(selector).one('select[name="resultuser"]') != null){
textResult = A.one(selector).one('select[name="resultuser"]').val();
@@ -260,6 +235,35 @@ if(activity.getEnddate() == null){
}
A.one("#submitCorrec").on('click', function(){commitFormCorrection(formName);});
+
+ <%
+ for(int i=0;i 0)){
+ if(Validator.isNull(des)){
+ des = LanguageUtil.get(themeDisplay.getLocale(), "feedback");
+ }
+ %>
+
+ var textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].getData();
+
+ AUI().one(selector).get(thisEditor+'_<%=i%>i').set('value',textDesc);
+
+ AUI().one(selector).get(thisEditor+'_<%=i%>').set('value',textDesc);
+ textDesc = CKEDITOR.instances[thisEditor+'_<%=i%>'].document.getBody().getText();
+
+
+
+
+ A.one("#contentDescriptionCorrec_<%=i%>").html(textDesc);
+ <%
+ }else{
+ break;
+ }
+ }
+ %>
+
+
window.p2pconfrmCorrec.show();
},
['node','aui-dialog']
diff --git a/docroot/html/resourceExternalActivity/admin/edit.jsp b/docroot/html/resourceExternalActivity/admin/edit.jsp
index 00f96eb94..481d3957f 100644
--- a/docroot/html/resourceExternalActivity/admin/edit.jsp
+++ b/docroot/html/resourceExternalActivity/admin/edit.jsp
@@ -237,7 +237,7 @@
String mimeType = "video/";
if(videoCode.contains("vimeo.com")){
- videoCode += "?background=1&loop=0&mute=0";
+ videoCode += "?background=1&loop=0&mute=0&autoplay=1";
mimeType += "vimeo";
}else if(videoCode.contains("youtu")){
mimeType += "youtube";
@@ -288,7 +288,7 @@
renderRequest.setAttribute("isDLFileEntry", isDLFileEntry);
}%>
-
+
@@ -311,12 +311,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
+ src="https://cdn.jsdelivr.net/npm/mediaelement@4.2.9/build/mediaelement-and-player.min.js">
+ src="https://cdn.jsdelivr.net/npm/mediaelement@4.2.9/build/dailymotion.min.js">
+ src="https://cdn.jsdelivr.net/npm/mediaelement@4.2.9/build/facebook.min.js">
+ src="https://cdn.jsdelivr.net/npm/mediaelement@4.2.9/build/renderers/soundcloud.min.js">
+ src="https://cdn.jsdelivr.net/npm/mediaelement@4.2.9/build/renderers/twitch.min.js">
+ src="/liferaylms-portlet/js/mediaelement/renderers/vimeo.js">
@@ -56,13 +58,27 @@
var plays = 0;
var finished = false;
- player = new MediaElement("playervideo", {
- pluginPath: 'https://cdn.jsdelivr.net/npm/mediaelement@4.2.7/build/',
- shimScriptAccess: 'always',
- success: function (media, node) {
-
- }
- });
+
+ if('${isVimeoIframe}' == 'true' && '${controls}' == ''){
+ console.log("SIN CONTROLES");
+ $('#playervideo').mediaelementplayer({
+ features: ['playpause','volume'], //Adding the feature 'markers' enables this plugin
+ pluginPath: '/liferaylms-portlet/js/mediaelement/',
+ success: function (media) {
+ player = media;
+ }
+ });
+ }else{
+ console.log("CON CONTROLES");
+ player = new MediaElement("playervideo", {
+ pluginPath: '/liferaylms-portlet/js/mediaelement/',
+ shimScriptAccess: 'always',
+ success: function (media, node) {
+
+ }
+ });
+ }
+
var currentTime = parseInt('${currentTime}');
if(currentTime > 0){
@@ -76,8 +92,8 @@
$('#videoQuestionFeedback').html("");
finished = false;
if(plays > 0){
- if($('[id*^=question_]')!=null){
- $('[id*^=question_]').addClass("aui-helper-hidden");
+ if($('[id^=question_]')!=null){
+ $('[id^=question_]').addClass("aui-helper-hidden");
}
}
plays++;
@@ -85,29 +101,33 @@
});
-
- player.addEventListener('ended',function() {
-
- var duration = player.getDuration();
-
- finishTry(100,duration,plays);
-
- // Process Success - A LearningActivityResult returned
- finished = true;
- Liferay.Portlet.refresh('#p_p_id_activityNavigator_WAR_liferaylmsportlet_');
- Liferay.Portlet.refresh('#p_p_id_lmsactivitieslist_WAR_liferaylmsportlet_');
- player.setControls(true);
- if('${isVimeoIframe}' == 'true'){
- var src = document.getElementById("playervideo_vimeo_iframe").src;
- var index = src.indexOf("background");
- if(index > 0){
- src = src.substring(0,index-1);
- document.getElementById("playervideo_vimeo_iframe").src = src;
+
+ if('${!hasPermissionAccessCourseFinished}' == 'true'){
+
+ player.addEventListener('ended',function() {
+
+ var duration = player.getDuration();
+
+ finishTry(100,duration,plays);
+
+ // Process Success - A LearningActivityResult returned
+ finished = true;
+ Liferay.Portlet.refresh('#p_p_id_activityNavigator_WAR_liferaylmsportlet_');
+ Liferay.Portlet.refresh('#p_p_id_lmsactivitieslist_WAR_liferaylmsportlet_');
+ player.setControls(true);
+ if('${isVimeoIframe}' == 'true'){
+ var src = document.getElementById("playervideo_vimeo_iframe").src;
+ var index = src.indexOf("background");
+ if(index > 0){
+ src = src.substring(0,index-1);
+ document.getElementById("playervideo_vimeo_iframe").src = src;
+ }
}
- }
-
-
- });
+
+
+ });
+
+ }
//Creamos el array para las preguntas
var questions = [];
@@ -141,27 +161,29 @@
});
}
- var unloadEvent = function (e) {
- //console.log("unload event vimeo");
- if(!finished){
- var duration = player.getDuration();
- currentTime = player.getCurrentTime();
-
- var isDefaultScore = '${isDefaultScore}' == 'true';
- var positionToSave = parseFloat('${videoPosition}');
- var oldScore = parseInt('${oldScore}');
- if (currentTime > positionToSave)
- positionToSave = currentTime;
- var score = 100;
- if (!isDefaultScore) score = Math.round((currentTime/duration)*100);
- //debugger;
- finishTry(score, positionToSave,plays);
-
- }
- };
-
- window.addEventListener("beforeunload", unloadEvent);
-
+ if('${!hasPermissionAccessCourseFinished}' == 'true'){
+
+ var unloadEvent = function (e) {
+ //console.log("unload event vimeo");
+ if(!finished){
+ var duration = player.getDuration();
+ currentTime = player.getCurrentTime();
+
+ var isDefaultScore = '${isDefaultScore}' == 'true';
+ var positionToSave = parseFloat('${videoPosition}');
+ var oldScore = parseInt('${oldScore}');
+ if (currentTime > positionToSave)
+ positionToSave = currentTime;
+ var score = 100;
+ if (!isDefaultScore) score = Math.round((currentTime/duration)*100);
+ //debugger;
+ finishTry(score, positionToSave,plays);
+
+ }
+ };
+
+ window.addEventListener("beforeunload", unloadEvent);
+ }
});
function answerQuestion(questionId){
@@ -214,3 +236,7 @@
}
+
+
+
+
diff --git a/docroot/html/resourceExternalActivity/view.jsp b/docroot/html/resourceExternalActivity/view.jsp
index f9a46121d..6d039c3c2 100644
--- a/docroot/html/resourceExternalActivity/view.jsp
+++ b/docroot/html/resourceExternalActivity/view.jsp
@@ -29,17 +29,19 @@ if(isLinkTabletResourceExternal){
-
-
+
+
+
<%@ include file="/html/resourceExternalActivity/mediaelement.jsp" %>
@@ -48,13 +50,15 @@ if(isLinkTabletResourceExternal){
${video}
-
+
+
+
@@ -64,7 +68,7 @@ if(isLinkTabletResourceExternal){
-
+ <%=HtmlUtil.escape(documentVersion.getTitle()) %>
@@ -77,35 +81,35 @@ if(isLinkTabletResourceExternal){
-
-
-
+ });
+ }
+
+
diff --git a/docroot/html/resourceInternalActivity/admin/edit.jsp b/docroot/html/resourceInternalActivity/admin/edit.jsp
index b150f9bfe..31d9fdfed 100644
--- a/docroot/html/resourceInternalActivity/admin/edit.jsp
+++ b/docroot/html/resourceInternalActivity/admin/edit.jsp
@@ -65,6 +65,7 @@ if(LearningActivityLocalServiceUtil.canBeEdited(learningActivity, user.getUserId
+
@@ -82,18 +83,40 @@ if(LearningActivityLocalServiceUtil.canBeEdited(learningActivity, user.getUserId
diff --git a/docroot/html/resourceInternalActivity/admin/searchresource.jsp b/docroot/html/resourceInternalActivity/admin/searchresource.jsp
index 2ac6776de..4060df2c0 100644
--- a/docroot/html/resourceInternalActivity/admin/searchresource.jsp
+++ b/docroot/html/resourceInternalActivity/admin/searchresource.jsp
@@ -26,8 +26,6 @@ if(course!=null)
{
searchGroupId=course.getGroupId();
}
-//String assetTypes=PropsUtil.get("lms.internalresource.assettypes");
-//String[] allowedAssetTypes=assetTypes.split(",");
Properties props = PropsUtil.getProperties("lms.internalresource.assettypes", true);
List allowedAssetTypes = new ArrayList();
@@ -56,54 +54,56 @@ if(resId > 0){
-
-
+
+
+
+
+
-
-
-
-
+
-
-
-
-
-<%
+
+
+
+
-for(String className:allowedAssetTypes)
-{
- String assettypename=LanguageUtil.get(pageContext, "model.resource." + className);
- %>
-
- <%
+
+ <%
+
+ for(String className:allowedAssetTypes)
+ {
+ String assettypename=LanguageUtil.get(pageContext, "model.resource." + className);
+ %>
+
+ <%
+
+ }
+ %>
+
+
-}
-%>
-
-
-
-
-
-
- <%@ include file="/html/resourceInternalActivity/admin/catselector.jspf" %>
-
-
-
-
+
+
+
+ <%@ include file="/html/resourceInternalActivity/admin/catselector.jspf" %>
+
+
+
+
+
<%!
public PortletURL getAddPortletURL(long groupId,LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String className) throws Exception {
@@ -148,9 +148,7 @@ public PortletURL getAddPortletURL(long groupId,LiferayPortletRequest liferayPor
}
-
-
return addPortletURL;
}
diff --git a/docroot/html/resourceInternalActivity/admin/searchresults.jsp b/docroot/html/resourceInternalActivity/admin/searchresults.jsp
index a19b07cf1..403d47584 100644
--- a/docroot/html/resourceInternalActivity/admin/searchresults.jsp
+++ b/docroot/html/resourceInternalActivity/admin/searchresults.jsp
@@ -36,86 +36,87 @@ portletURL.setParameter("groupId",Long.toString(groupIdSelected));
portletURL.setParameter("actionEditing","true");
portletURL.setParameter("resModuleId",String.valueOf(resModuleId));
portletURL.setParameter("resId",String.valueOf(resId));
-portletURL.setParameter("title",String.valueOf(title));
-portletURL.setParameter("description",String.valueOf(description));
-
%>
-
-
-
-<%
-total=0;
-if(keywords.length()>0)
-{
-
- SearchContext searchContext=SearchContextFactory.getInstance(request);
- searchContext.setAssetCategoryIds(serviceContext.getAssetCategoryIds());
- searchContext.setUserId(themeDisplay.getUserId());
- searchContext.setGroupIds(groupIds);
- searchContext.setEntryClassNames(entryClassNames);
- searchContext.setKeywords(keywords);
- searchContext.setStart(searchContainer.getStart());
- searchContext.setEnd(searchContainer.getEnd());
-
- Indexer indexer=IndexerRegistryUtil.getIndexer(className);
-Hits hits = indexer.search(searchContext);
-
-
-results = new ArrayList();
-for(Document doc : hits.getDocs()) {
- Long classPK = Long.parseLong(doc.get(Field.ENTRY_CLASS_PK));
-
- AssetEntry asset = AssetEntryLocalServiceUtil.getEntry(className, classPK);
- results.add(asset);
- total=hits.getLength();
-}
-}
-else
-{
- AssetEntryQuery query=new AssetEntryQuery();
- query.setClassName(className);
- query.setGroupIds(groupIds);
- query.setEnablePermissions(true);
- query.setExcludeZeroViewCount(false);
- if(serviceContext.getAssetCategoryIds()!=null)
- {
- query.setAllCategoryIds(serviceContext.getAssetCategoryIds());
- }
- query.setVisible(true);
- total = AssetEntryServiceUtil.getEntriesCount(query);
- query.setStart(searchContainer.getStart());
- query.setEnd(searchContainer.getEnd());
- results = AssetEntryServiceUtil.getEntries(query);
-}
-
+
+
+
+ <%
+ total=0;
+ if(keywords.length()>0){
+
+ SearchContext searchContext=SearchContextFactory.getInstance(request);
+ searchContext.setAssetCategoryIds(serviceContext.getAssetCategoryIds());
+ searchContext.setUserId(themeDisplay.getUserId());
+ searchContext.setGroupIds(groupIds);
+ searchContext.setEntryClassNames(entryClassNames);
+ searchContext.setKeywords(keywords);
+ searchContext.setStart(searchContainer.getStart());
+ searchContext.setEnd(searchContainer.getEnd());
+
+ Indexer indexer=IndexerRegistryUtil.getIndexer(className);
+ Hits hits = indexer.search(searchContext);
+
+
+ results = new ArrayList();
+ for(Document doc : hits.getDocs()) {
+ Long classPK = Long.parseLong(doc.get(Field.ENTRY_CLASS_PK));
+
+ AssetEntry asset = AssetEntryLocalServiceUtil.getEntry(className, classPK);
+ results.add(asset);
+ total=hits.getLength();
+ }
+ } else {
+ AssetEntryQuery query=new AssetEntryQuery();
+ query.setClassName(className);
+ query.setGroupIds(groupIds);
+ query.setEnablePermissions(true);
+ query.setExcludeZeroViewCount(false);
+ if(serviceContext.getAssetCategoryIds()!=null)
+ {
+ query.setAllCategoryIds(serviceContext.getAssetCategoryIds());
+ }
+ query.setVisible(true);
+ total = AssetEntryServiceUtil.getEntriesCount(query);
+ query.setStart(searchContainer.getStart());
+ query.setEnd(searchContainer.getEnd());
+ results = AssetEntryServiceUtil.getEntries(query);
+ }
+
+ pageContext.setAttribute("results", results);
+ pageContext.setAttribute("total", total);
+ %>
+
+
+
+
+
+
+
+
+
+
-pageContext.setAttribute("results", results);
-pageContext.setAttribute("total", total);
-%>
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/docroot/html/studentmanage/config/config.jsp b/docroot/html/studentmanage/config/config.jsp
index f48df2d99..ecf1ca168 100644
--- a/docroot/html/studentmanage/config/config.jsp
+++ b/docroot/html/studentmanage/config/config.jsp
@@ -16,6 +16,7 @@
boolean showActionSocial = (preferences.getValue("showActionSocial", "false")).compareTo("true") == 0;
boolean showActionAudit = (preferences.getValue("showActionAudit", "false")).compareTo("true") == 0;
+ boolean showEmailAddress = (preferences.getValue("showEmailAddress", "false")).compareTo("true") == 0;
%>
@@ -23,6 +24,7 @@
+
diff --git a/docroot/html/studentmanage/view.jsp b/docroot/html/studentmanage/view.jsp
index af94e60ad..ad3fb976a 100644
--- a/docroot/html/studentmanage/view.jsp
+++ b/docroot/html/studentmanage/view.jsp
@@ -38,6 +38,7 @@
}
boolean showActionSocial = GetterUtil.getBoolean(preferences.getValue("showActionSocial", StringPool.FALSE),true);
boolean showActionAudit = GetterUtil.getBoolean(preferences.getValue("showActionAudit", StringPool.FALSE),true);
+ boolean showEmailAddress = GetterUtil.getBoolean(preferences.getValue("showEmailAddress", StringPool.FALSE), true);
CalificationType ct = new CalificationTypeRegistry().getCalificationType(course.getCalificationType());
%>
@@ -66,7 +67,9 @@
-
+
+
+
<%
CourseResult courseResult=CourseResultLocalServiceUtil.getCourseResultByCourseAndUser(course.getCourseId(), usr.getUserId());
diff --git a/docroot/js/mediaelement/lang/ca.js b/docroot/js/mediaelement/lang/ca.js
new file mode 100644
index 000000000..bf7e0a2fc
--- /dev/null
+++ b/docroot/js/mediaelement/lang/ca.js
@@ -0,0 +1,89 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Catalan
+ *
+ * @author
+ * Tongro
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.ca === undefined) {
+ exports.ca = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Descarregar arxiu',
+ 'mejs.install-flash': 'Esteu utilitzant un navegador que no tingui Flash Player activat o instal·lat. Activeu el vostre complement Flash Player o descarregueu la versió més recent de https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Pantalla completa',
+ 'mejs.play': 'Reproducció',
+ 'mejs.pause': 'Pausa',
+ 'mejs.time-slider': 'Control lliscant de temps',
+ 'mejs.time-help-text': 'Utilitzeu les tecles de fletxa esquerra / dreta per avançar un segon, fletxes amunt / avall per avançar deu segons.',
+ 'mejs.live-broadcast' : 'Transmissió en directe',
+ 'mejs.volume-help-text': 'Utilitzeu les tecles de fletxa amunt / avall per augmentar o disminuir el volum.',
+ 'mejs.unmute': 'Reactivar silenci',
+ 'mejs.mute': 'Silenci',
+ 'mejs.volume-slider': 'Control deslizador de volum',
+ 'mejs.video-player': 'Reproductor de vÃdeo',
+ 'mejs.audio-player': 'Reproductor d\'Ã udio',
+ 'mejs.captions-subtitles': 'Llegendes/SubtÃtols',
+ 'mejs.captions-chapters': 'CapÃtols',
+ 'mejs.none': 'Ningú',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanès',
+ 'mejs.arabic': 'Àrab',
+ 'mejs.belarusian': 'Bielorús',
+ 'mejs.bulgarian': 'Búlgar',
+ 'mejs.catalan': 'Català ',
+ 'mejs.chinese': 'Xinès',
+ 'mejs.chinese-simplified': 'Xinès (Simplificat)',
+ 'mejs.chinese-traditional': 'Xinès (Tradicional)',
+ 'mejs.croatian': 'Croat',
+ 'mejs.czech': 'Txec',
+ 'mejs.danish': 'Danès',
+ 'mejs.dutch': 'Holandès',
+ 'mejs.english': 'Anglès',
+ 'mejs.estonian': 'Estonià ',
+ 'mejs.filipino': 'FilipÃ',
+ 'mejs.finnish': 'Finlandès',
+ 'mejs.french': 'Francès',
+ 'mejs.galician': 'Gallec',
+ 'mejs.german': 'Alemany',
+ 'mejs.greek': 'Grec',
+ 'mejs.haitian-creole': 'Crioll haitià ',
+ 'mejs.hebrew': 'Hebreu',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Hongarès',
+ 'mejs.icelandic': 'Islandès',
+ 'mejs.indonesian': 'Indonesi',
+ 'mejs.irish': 'Irlandès',
+ 'mejs.italian': 'Italià ',
+ 'mejs.japanese': 'Japonès',
+ 'mejs.korean': 'Coreà ',
+ 'mejs.latvian': 'Letó',
+ 'mejs.lithuanian': 'Lituà ',
+ 'mejs.macedonian': 'Macedoni',
+ 'mejs.malay': 'Malai',
+ 'mejs.maltese': 'Maltès',
+ 'mejs.norwegian': 'Noruec',
+ 'mejs.persian': 'Persa',
+ 'mejs.polish': 'Polonès',
+ 'mejs.portuguese': 'Portuguès',
+ 'mejs.romanian': 'Romanès',
+ 'mejs.russian': 'Rus',
+ 'mejs.serbian': 'Serbi',
+ 'mejs.slovak': 'Eslovac',
+ 'mejs.slovenian': 'Eslovè',
+ 'mejs.spanish': 'Espanyol',
+ 'mejs.swahili': 'Suahili',
+ 'mejs.swedish': 'Suec',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Turc',
+ 'mejs.ukrainian': 'Ucraïnès',
+ 'mejs.vietnamese': 'Vietnamita',
+ 'mejs.welsh': 'Gal·lès',
+ 'mejs.yiddish': 'Yiddish'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/cs.js b/docroot/js/mediaelement/lang/cs.js
new file mode 100644
index 000000000..8e4d62cb0
--- /dev/null
+++ b/docroot/js/mediaelement/lang/cs.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Czech
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.cs === undefined) {
+ exports.cs = {
+ 'mejs.plural-form': 8,
+ 'mejs.download-file': 'Stáhnout soubor',
+ 'mejs.install-flash': 'PoužÃváte prohlÞeÄ, který nemá Flash Player povolen nebo nainstalován. ZapnÄ›te plugin Flash Player nebo stáhnÄ›te nejnovÄ›jÅ¡Ã verzi z adresy https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Celá obrazovka',
+ 'mejs.play': 'Přehrát',
+ 'mejs.pause': 'Pozastavit',
+ 'mejs.time-slider': 'Posuvný běžec nastavenà Äasu',
+ 'mejs.time-help-text': 'Použijte tlaÄÃtka se Å¡ipkami doleva / doprava pro posun o jednu vteÅ™inu, tlaÄÃtka se Å¡ipkami nahoru / dolů pro posun o deset vteÅ™in.',
+ 'mejs.live-broadcast' : 'Živé vysÃlánÃ',
+ 'mejs.volume-help-text': 'Použijte tlaÄÃtka se Å¡ipkami nahoru / dolů pro zesÃlenà nebo zeslabenà hlasitosti.',
+ 'mejs.unmute': 'Zapnout zvuk',
+ 'mejs.mute': 'Vypnout zvuk',
+ 'mejs.volume-slider': 'Posuvný běžec nastavenà hlasitosti',
+ 'mejs.video-player': 'PÅ™ehrávaÄ videa',
+ 'mejs.audio-player': 'PÅ™ehrávaÄ hudby',
+ 'mejs.captions-subtitles': 'Titulky',
+ 'mejs.captions-chapters': 'Kapitoly',
+ 'mejs.none': 'Žádný',
+ 'mejs.afrikaans': 'Afrikánština',
+ 'mejs.albanian': 'Albánský',
+ 'mejs.arabic': 'Arabština',
+ 'mejs.belarusian': 'Běloruské',
+ 'mejs.bulgarian': 'Bulharský',
+ 'mejs.catalan': 'Katalánština',
+ 'mejs.chinese': 'ÄÃnÅ¡tina',
+ 'mejs.chinese-simplified': 'ZjednoduÅ¡ená ÄÃnÅ¡tina)',
+ 'mejs.chinese-traditional': 'ÄŒÃnÅ¡tina (tradiÄnÃ)',
+ 'mejs.croatian': 'Chorvatský',
+ 'mejs.czech': 'ÄeÅ¡tina',
+ 'mejs.danish': 'Dánština',
+ 'mejs.dutch': 'Holandský',
+ 'mejs.english': 'AngliÄtina',
+ 'mejs.estonian': 'Estonština',
+ 'mejs.filipino': 'Filipino',
+ 'mejs.finnish': 'Finština',
+ 'mejs.french': 'Francouzština',
+ 'mejs.galician': 'Galicijština',
+ 'mejs.german': 'Němec',
+ 'mejs.greek': 'řecký',
+ 'mejs.haitian-creole': 'Haitian kreolský',
+ 'mejs.hebrew': 'Hebrejština',
+ 'mejs.hindi': 'Hindština',
+ 'mejs.hungarian': 'MaÄarský',
+ 'mejs.icelandic': 'Islandský',
+ 'mejs.indonesian': 'Indonéština',
+ 'mejs.irish': 'Irština',
+ 'mejs.italian': 'Italština',
+ 'mejs.japanese': 'Japonský',
+ 'mejs.korean': 'Korejština',
+ 'mejs.latvian': 'Lotyšský',
+ 'mejs.lithuanian': 'Lithuanian',
+ 'mejs.macedonian': 'Makedonština',
+ 'mejs.malay': 'Malay',
+ 'mejs.maltese': 'Maltština',
+ 'mejs.norwegian': 'Norština',
+ 'mejs.persian': 'Peršan',
+ 'mejs.polish': 'Polština',
+ 'mejs.portuguese': 'Portugalština',
+ 'mejs.romanian': 'Rumunština',
+ 'mejs.russian': 'Ruština',
+ 'mejs.serbian': 'Srbština',
+ 'mejs.slovak': 'Slovák',
+ 'mejs.slovenian': 'Slovinský',
+ 'mejs.spanish': 'španělština',
+ 'mejs.swahili': 'Svahilský',
+ 'mejs.swedish': 'švédský',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thajština',
+ 'mejs.turkish': 'TureÄtina',
+ 'mejs.ukrainian': 'Ukrajinština',
+ 'mejs.vietnamese': 'Vietnamština',
+ 'mejs.welsh': 'Velština',
+ 'mejs.yiddish': 'Jidiš'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/de.js b/docroot/js/mediaelement/lang/de.js
new file mode 100644
index 000000000..45a19b7f5
--- /dev/null
+++ b/docroot/js/mediaelement/lang/de.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * German
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.de === undefined) {
+ exports.de = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Datei herunterladen',
+ 'mejs.install-flash': 'Ihr Browser unterstützt kein Flash. Bitte aktivieren Sie Flash bzw. laden Sie die aktuellste Flash-Version herunter unter https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Vollbild',
+ 'mejs.play': 'Abspielen',
+ 'mejs.pause': 'Pause',
+ 'mejs.time-slider': 'Zeitschieberegler',
+ 'mejs.time-help-text': 'Verwende die Pfeiltaste nach links/rechts, um eine Sekunde zu spulen, hoch/runter um zehn Sekunden zu spulen.',
+ 'mejs.live-broadcast' : 'Live-Ãœbertragung',
+ 'mejs.volume-help-text': 'Verwende die Pfeiltaste nach oben/nach unten um die Lautstärke zu erhöhen oder zu verringern.',
+ 'mejs.unmute': 'Stummschaltung aufheben',
+ 'mejs.mute': 'Stummschalten',
+ 'mejs.volume-slider': 'Lautstärkeregler',
+ 'mejs.video-player': 'Video-Player',
+ 'mejs.audio-player': 'Audio-Player',
+ 'mejs.captions-subtitles': 'Ãœberschriften/Untertitel',
+ 'mejs.captions-chapters': 'Kapitel',
+ 'mejs.none': 'Keine',
+ 'mejs.afrikaans': 'Afrikanisch',
+ 'mejs.albanian': 'Albanisch',
+ 'mejs.arabic': 'Arabisch',
+ 'mejs.belarusian': 'Weißrussisch',
+ 'mejs.bulgarian': 'Bulgarisch',
+ 'mejs.catalan': 'Katalanisch',
+ 'mejs.chinese': 'Chinesisch',
+ 'mejs.chinese-simplified': 'Chinesisch (Vereinfacht)',
+ 'mejs.chinese-traditional': 'Chinesisch (Traditionell)',
+ 'mejs.croatian': 'Kroatisch',
+ 'mejs.czech': 'Tschechisch',
+ 'mejs.danish': 'Dänisch',
+ 'mejs.dutch': 'Niederländisch',
+ 'mejs.english': 'Englisch',
+ 'mejs.estonian': 'Estnisch',
+ 'mejs.filipino': 'Filipino',
+ 'mejs.finnish': 'Finnisch',
+ 'mejs.french': 'Französisch',
+ 'mejs.galician': 'Galicisch',
+ 'mejs.german': 'Deutsch',
+ 'mejs.greek': 'Griechisch',
+ 'mejs.haitian-creole': 'Haitianisch',
+ 'mejs.hebrew': 'Hebräisch',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Ungarisch',
+ 'mejs.icelandic': 'Isländisch',
+ 'mejs.indonesian': 'Indonesisch',
+ 'mejs.irish': 'Irisch',
+ 'mejs.italian': 'Italienisch',
+ 'mejs.japanese': 'Japanisch',
+ 'mejs.korean': 'Koreanisch',
+ 'mejs.latvian': 'Lettisch',
+ 'mejs.lithuanian': 'Litauisch',
+ 'mejs.macedonian': 'Mazedonisch',
+ 'mejs.malay': 'Malaysisch',
+ 'mejs.maltese': 'Maltesisch',
+ 'mejs.norwegian': 'Norwegisch',
+ 'mejs.persian': 'Persisch',
+ 'mejs.polish': 'Polnisch',
+ 'mejs.portuguese': 'Portugiesisch',
+ 'mejs.romanian': 'Rumänisch',
+ 'mejs.russian': 'Russisch',
+ 'mejs.serbian': 'Serbisch',
+ 'mejs.slovak': 'Slovakisch',
+ 'mejs.slovenian': 'Slovenisch',
+ 'mejs.spanish': 'Spanisch',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Schwedisch',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thailändisch',
+ 'mejs.turkish': 'Türkisch',
+ 'mejs.ukrainian': 'Ukrainisch',
+ 'mejs.vietnamese': 'Vietnamnesisch',
+ 'mejs.welsh': 'Walisisch',
+ 'mejs.yiddish': 'Jiddisch'
+ };
+ }
+})(mejs.i18n);
diff --git a/docroot/js/mediaelement/lang/es.js b/docroot/js/mediaelement/lang/es.js
new file mode 100644
index 000000000..fcefedca8
--- /dev/null
+++ b/docroot/js/mediaelement/lang/es.js
@@ -0,0 +1,90 @@
+/*!
+ * This is a `i18n` language object.
+ *
+ * Spanish
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ * Rafael Miranda (GitHub: @rafa8626)
+ *
+ * @see core/i18n.js
+ */(function (exports) {
+ if (exports.es === undefined) {
+ exports.es = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Descargar archivo',
+ 'mejs.install-flash': 'Esta usando un navegador que no tiene activado o instalado el reproductor de Flash. Por favor active el plugin del reproductor de Flash o descargue la versión más reciente en https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Pantalla completa',
+ 'mejs.play': 'Reproducción',
+ 'mejs.pause': 'Pausa',
+ 'mejs.time-slider': 'Control deslizante de tiempo',
+ 'mejs.time-help-text': 'Use las flechas Izquierda/Derecha para avanzar un segundo y las flechas Arriba/Abajo para avanzar diez segundos.',
+ 'mejs.live-broadcast': 'Transmisión en Vivo',
+ 'mejs.volume-help-text': 'Use las flechas Arriba/Abajo para subir o bajar el volumen.',
+ 'mejs.unmute': 'Reactivar silencio',
+ 'mejs.mute': 'Silencio',
+ 'mejs.volume-slider': 'Control deslizante de volumen',
+ 'mejs.video-player': 'Reproductor de video',
+ 'mejs.audio-player': 'Reproductor de audio',
+ 'mejs.captions-subtitles': 'Leyendas/SubtÃtulos',
+ 'mejs.captions-chapters': 'CapÃtulos',
+ 'mejs.none': 'Ninguno',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albano',
+ 'mejs.arabic': 'Ãrabe',
+ 'mejs.belarusian': 'Bielorruso',
+ 'mejs.bulgarian': 'Búlgaro',
+ 'mejs.catalan': 'Catalán',
+ 'mejs.chinese': 'Chino',
+ 'mejs.chinese-simplified': 'Chino (Simplificado)',
+ 'mejs.chinese-traditional': 'Chino (Tradicional)',
+ 'mejs.croatian': 'Croata',
+ 'mejs.czech': 'Checo',
+ 'mejs.danish': 'Danés',
+ 'mejs.dutch': 'Holandés',
+ 'mejs.english': 'Inglés',
+ 'mejs.estonian': 'Estoniano',
+ 'mejs.filipino': 'Filipino',
+ 'mejs.finnish': 'Finlandés',
+ 'mejs.french': 'Francés',
+ 'mejs.galician': 'Gallego',
+ 'mejs.german': 'Alemán',
+ 'mejs.greek': 'Griego',
+ 'mejs.haitian-creole': 'Haitiano Criollo',
+ 'mejs.hebrew': 'Hebreo',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Húngaro',
+ 'mejs.icelandic': 'Islandés',
+ 'mejs.indonesian': 'Indonesio',
+ 'mejs.irish': 'Irlandés',
+ 'mejs.italian': 'Italiano',
+ 'mejs.japanese': 'Japonés',
+ 'mejs.korean': 'Coreano',
+ 'mejs.latvian': 'Letón',
+ 'mejs.lithuanian': 'Lituano',
+ 'mejs.macedonian': 'Macedonio',
+ 'mejs.malay': 'Malayo',
+ 'mejs.maltese': 'Maltés',
+ 'mejs.norwegian': 'Noruego',
+ 'mejs.persian': 'Persa',
+ 'mejs.polish': 'Polaco',
+ 'mejs.portuguese': 'Portugués',
+ 'mejs.romanian': 'Rumano',
+ 'mejs.russian': 'Ruso',
+ 'mejs.serbian': 'Serbio',
+ 'mejs.slovak': 'Eslovaco',
+ 'mejs.slovenian': 'Eslovenio',
+ 'mejs.spanish': 'Español',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Suizo',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Tailandés',
+ 'mejs.turkish': 'Turco',
+ 'mejs.ukrainian': 'Ucraniano',
+ 'mejs.vietnamese': 'Vietnamita',
+ 'mejs.welsh': 'Galés',
+ 'mejs.yiddish': 'Yiddish'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/fa.js b/docroot/js/mediaelement/lang/fa.js
new file mode 100644
index 000000000..c665facde
--- /dev/null
+++ b/docroot/js/mediaelement/lang/fa.js
@@ -0,0 +1,90 @@
+/*!
+ * This is a `i18n` language object.
+ *
+ * Persian
+ *
+ * @author
+ * wmateam (GitHub: @wmateam)
+ *
+ * @see core/i18n.js
+ */(function (exports) {
+ 'use strict';
+
+ if (exports.fa === undefined) {
+ exports.fa = {
+ 'mejs.plural-form': 0,
+ 'mejs.download-file': 'دریاÙت Ùایل',
+ 'mejs.install-flash': 'اÙزونه Ùلش پلیر روی مرورگر شما نصب نیست یا غیر Ùعال است.اÙزونه را Ùعال کنید Ùˆ یا از https://get.adobe.com/flashplayer/ دریاÙت Ùˆ نصب کنید.',
+ 'mejs.fullscreen': 'تمام صÙØÙ‡',
+ 'mejs.play': 'پخش',
+ 'mejs.pause': 'توقÙ',
+ 'mejs.time-slider': 'تغییر زمان',
+ 'mejs.time-help-text': 'از کلید های Ú†Ù¾ Ùˆ راست کیبورد برای جا به جایی به میزان یک ثانیه استÙاده کنید.همچنین کلید های بالا Ùˆ پایین 10 ثانیه زمان را جا به جا Ù…ÛŒ کند.',
+ 'mejs.live-broadcast': 'پخش زنده',
+ 'mejs.volume-help-text': 'از دکمه های بالا Ùˆ پایین برای Ú©Ù… Ùˆ زیاد کردن Øجم صدا استÙاده کنید.',
+ 'mejs.unmute': 'صدا دار',
+ 'mejs.mute': 'بی صدا',
+ 'mejs.volume-slider': 'تغییر Øجم صدا',
+ 'mejs.video-player': 'پخش کننده ویدیو',
+ 'mejs.audio-player': 'پخش کننده صدا',
+ 'mejs.captions-subtitles': 'زیرنویس',
+ 'mejs.captions-chapters': 'قسمت',
+ 'mejs.none': 'هیچ',
+ 'mejs.afrikaans': 'Ø¢Ùریقایی',
+ 'mejs.albanian': 'آلبانیایی',
+ 'mejs.arabic': 'عربی',
+ 'mejs.belarusian': 'بلاروس',
+ 'mejs.bulgarian': 'بلغاری',
+ 'mejs.catalan': 'کاتالان',
+ 'mejs.chinese': 'چینی',
+ 'mejs.chinese-simplified': 'چینی (ساده شده)',
+ 'mejs.chinese-traditional': 'چینی (سنتی)',
+ 'mejs.croatian': 'کروات',
+ 'mejs.czech': 'Ú†Ú©',
+ 'mejs.danish': 'دانمارکی',
+ 'mejs.dutch': 'هلندی',
+ 'mejs.english': 'انگلیسی',
+ 'mejs.estonian': 'استونی',
+ 'mejs.filipino': 'Ùیلیپینی',
+ 'mejs.finnish': 'Ùنلاندری',
+ 'mejs.french': 'Ùرانسوی',
+ 'mejs.galician': 'گالیسی',
+ 'mejs.german': 'آلمانی',
+ 'mejs.greek': 'یونانی',
+ 'mejs.haitian-creole': 'کریول هائیتی',
+ 'mejs.hebrew': 'عبری',
+ 'mejs.hindi': 'هندی',
+ 'mejs.hungarian': 'مجارستانی',
+ 'mejs.icelandic': 'ایسلندی',
+ 'mejs.indonesian': 'اندونزی',
+ 'mejs.irish': 'ایرلندی',
+ 'mejs.italian': 'ایتالیایی',
+ 'mejs.japanese': 'ژاپنی',
+ 'mejs.korean': 'کره ای',
+ 'mejs.latvian': 'لتونی',
+ 'mejs.lithuanian': 'لیتوانی',
+ 'mejs.macedonian': 'مقدونی',
+ 'mejs.malay': 'مالایی',
+ 'mejs.maltese': 'مالتی',
+ 'mejs.norwegian': 'نروژی',
+ 'mejs.persian': 'Ùارسی',
+ 'mejs.polish': 'لهستانی',
+ 'mejs.portuguese': 'پرتغالی',
+ 'mejs.romanian': 'روانی',
+ 'mejs.russian': 'روسی',
+ 'mejs.serbian': 'صرب',
+ 'mejs.slovak': 'اسلواکی',
+ 'mejs.slovenian': 'اسلوونیایی',
+ 'mejs.spanish': 'اسپانیایی',
+ 'mejs.swahili': 'سواØیلی',
+ 'mejs.swedish': 'سوئد',
+ 'mejs.tagalog': 'تاگالوگ',
+ 'mejs.thai': 'تایلندی',
+ 'mejs.turkish': 'ترکی',
+ 'mejs.ukrainian': 'اوکراین',
+ 'mejs.vietnamese': 'ویتنامی',
+ 'mejs.welsh': 'ولزی',
+ 'mejs.yiddish': 'ییدیش'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/fr.js b/docroot/js/mediaelement/lang/fr.js
new file mode 100644
index 000000000..bdb35f382
--- /dev/null
+++ b/docroot/js/mediaelement/lang/fr.js
@@ -0,0 +1,91 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * French
+ *
+ * @author
+ * Luc Poupard (Twitter: @klohFR)
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.fr === undefined) {
+ exports.fr = {
+ 'mejs.plural-form': 2,
+ 'mejs.download-file': 'Télécharger le fichier',
+ 'mejs.install-flash': 'Vous utilisez un navigateur sur lequel Flash ne semble pas installé ou activé. Veuillez activer le plugin Flash ou télécharger la dernière version sur https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Plein écran',
+ 'mejs.play': 'Lecture',
+ 'mejs.pause': 'Pause',
+ 'mejs.time-slider': 'Curseur temporel',
+ 'mejs.time-help-text': 'Utilisez les flèches Gauche/Droite du clavier pour avancer d\'une seconde, les flèches Haut/Bas pour avancer de 10 secondes.',
+ 'mejs.live-broadcast' : 'Diffusion en direct',
+ 'mejs.volume-help-text': 'Utilisez les flèches Haut/Bas du clavier pour augmenter ou diminuer le volume.',
+ 'mejs.unmute': 'Activer le son',
+ 'mejs.mute': 'Désactiver le son',
+ 'mejs.volume-slider': 'Volume',
+ 'mejs.video-player': 'Lecteur Vidéo',
+ 'mejs.audio-player': 'Lecteur Audio',
+ 'mejs.captions-subtitles': 'Sous-titres',
+ 'mejs.captions-chapters': 'Chapitres',
+ 'mejs.none': 'Aucun',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanais',
+ 'mejs.arabic': 'Arabe',
+ 'mejs.belarusian': 'Biélorusse',
+ 'mejs.bulgarian': 'Bulgare',
+ 'mejs.catalan': 'Catalan',
+ 'mejs.chinese': 'Chinois',
+ 'mejs.chinese-simplified': 'Chinois (simplifié)',
+ 'mejs.chinese-traditional': 'Chinois (traditionnel)',
+ 'mejs.croatian': 'Croate',
+ 'mejs.czech': 'Tchèque',
+ 'mejs.danish': 'Danois',
+ 'mejs.dutch': 'Néerlandais',
+ 'mejs.english': 'Anglais',
+ 'mejs.estonian': 'Estonien',
+ 'mejs.filipino': 'Filipino',
+ 'mejs.finnish': 'Finnois',
+ 'mejs.french': 'Français',
+ 'mejs.galician': 'Galicien',
+ 'mejs.german': 'Allemand',
+ 'mejs.greek': 'Grec',
+ 'mejs.haitian-creole': 'Créole haïtien',
+ 'mejs.hebrew': 'Hébreu',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Hongrois',
+ 'mejs.icelandic': 'Islandais',
+ 'mejs.indonesian': 'Indonésien',
+ 'mejs.irish': 'Irlandais',
+ 'mejs.italian': 'Italien',
+ 'mejs.japanese': 'Japonais',
+ 'mejs.korean': 'Coréen',
+ 'mejs.latvian': 'Letton',
+ 'mejs.lithuanian': 'Lituanien',
+ 'mejs.macedonian': 'Macédonien',
+ 'mejs.malay': 'Malais',
+ 'mejs.maltese': 'Maltais',
+ 'mejs.norwegian': 'Norvégien',
+ 'mejs.persian': 'Perse',
+ 'mejs.polish': 'Polonais',
+ 'mejs.portuguese': 'Portugais',
+ 'mejs.romanian': 'Roumain',
+ 'mejs.russian': 'Russe',
+ 'mejs.serbian': 'Serbe',
+ 'mejs.slovak': 'Slovaque',
+ 'mejs.slovenian': 'Slovène',
+ 'mejs.spanish': 'Espagnol',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Suédois',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thaï',
+ 'mejs.turkish': 'Turque',
+ 'mejs.ukrainian': 'Ukrainien',
+ 'mejs.vietnamese': 'Vietnamien',
+ 'mejs.welsh': 'Gallois',
+ 'mejs.yiddish': 'Yiddish'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/hr.js b/docroot/js/mediaelement/lang/hr.js
new file mode 100644
index 000000000..fce7eee8d
--- /dev/null
+++ b/docroot/js/mediaelement/lang/hr.js
@@ -0,0 +1,87 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Croatian
+ *
+ * @author
+ * Hrvoj3e (hrvoj3e@gmail.com) * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.hr === undefined) {
+ exports.hr = {
+ 'mejs.plural-form': 7,
+ 'mejs.download-file': 'Preuzmi datoteku',
+ 'mejs.install-flash': 'Koristite preglednik koji nema omogućen ili instaliran Flash preglednik. Molimo Vas ukljuÄite Flash dodatak ili preuzmite najnoviju verziju s https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Puni zaslon',
+ 'mejs.play': 'Pokreni',
+ 'mejs.pause': 'Zaustavi',
+ 'mejs.time-slider': 'Vremenska traka',
+ 'mejs.time-help-text': 'Koristi strelice lijevo/desno za pomak naprijed za 1 sekundu te gore/dolje za pomak od 10 sekundi.',
+ 'mejs.live-broadcast' : 'Prijenos uživo',
+ 'mejs.volume-help-text': 'Koristi strelice gore/dolje za pojaÄavanje ili stiÅ¡avanje.',
+ 'mejs.unmute': 'UkljuÄi zvuk',
+ 'mejs.mute': 'IskljuÄi zvuk',
+ 'mejs.volume-slider': 'PokazivaÄ razine zvuka',
+ 'mejs.video-player': 'Video preglednik',
+ 'mejs.audio-player': 'Audio preglednik',
+ 'mejs.captions-subtitles': 'Opisi/Prijevodi',
+ 'mejs.captions-chapters': 'Poglavlja',
+ 'mejs.none': 'Ništa',
+ 'mejs.afrikaans': 'AfriÄki',
+ 'mejs.albanian': 'Albanski',
+ 'mejs.arabic': 'Arapski',
+ 'mejs.belarusian': 'Bjeloruski',
+ 'mejs.bulgarian': 'Bugarski',
+ 'mejs.catalan': 'Katalonski',
+ 'mejs.chinese': 'Kineski',
+ 'mejs.chinese-simplified': 'Kineski (jednostavni)',
+ 'mejs.chinese-traditional': 'Kineski (tradicionalni)',
+ 'mejs.croatian': 'Hrvatski',
+ 'mejs.czech': 'Češki',
+ 'mejs.danish': 'Danski',
+ 'mejs.dutch': 'Nizozemski',
+ 'mejs.english': 'Engleski',
+ 'mejs.estonian': 'Estonski',
+ 'mejs.filipino': 'Filipinski',
+ 'mejs.finnish': 'Finski',
+ 'mejs.french': 'Francuski',
+ 'mejs.galician': 'Galicijski',
+ 'mejs.german': 'NjemaÄki',
+ 'mejs.greek': 'GrÄki',
+ 'mejs.haitian-creole': 'Haićanski kreolski',
+ 'mejs.hebrew': 'Hebrejski',
+ 'mejs.hindi': 'Hindski',
+ 'mejs.hungarian': 'Mađarski',
+ 'mejs.icelandic': 'Islandski',
+ 'mejs.indonesian': 'Indonezijski',
+ 'mejs.irish': 'Irski',
+ 'mejs.italian': 'Talijanski',
+ 'mejs.japanese': 'Japanski',
+ 'mejs.korean': 'Korejski',
+ 'mejs.latvian': 'Latvijski',
+ 'mejs.lithuanian': 'Litvanski',
+ 'mejs.macedonian': 'Makedonski',
+ 'mejs.malay': 'Malajski',
+ 'mejs.maltese': 'Malteški',
+ 'mejs.norwegian': 'Norveški',
+ 'mejs.persian': 'Perzijski',
+ 'mejs.polish': 'Poljski',
+ 'mejs.portuguese': 'Portugalski',
+ 'mejs.romanian': 'Rumunjski',
+ 'mejs.russian': 'Ruski',
+ 'mejs.serbian': 'Srpski',
+ 'mejs.slovak': 'SlovaÄki',
+ 'mejs.slovenian': 'Slovenski',
+ 'mejs.spanish': 'Å panjolski',
+ 'mejs.swahili': 'Svahili',
+ 'mejs.swedish': 'Å vedski',
+ 'mejs.tagalog': 'Tagaloški',
+ 'mejs.thai': 'Tajski',
+ 'mejs.turkish': 'Turski',
+ 'mejs.ukrainian': 'Ukrajinski',
+ 'mejs.vietnamese': 'Vijetnamski',
+ 'mejs.welsh': 'Velški',
+ 'mejs.yiddish': 'Jidiški'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/hu.js b/docroot/js/mediaelement/lang/hu.js
new file mode 100644
index 000000000..d43863658
--- /dev/null
+++ b/docroot/js/mediaelement/lang/hu.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Hungarian
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.hu === undefined) {
+ exports.hu = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Fájl letöltése',
+ 'mejs.install-flash': 'Olyan böngészÅ‘t használ, amelyhez nincs engedélyezve vagy telepÃtve a Flash player. Kérjük, kapcsolja be a Flash-lejátszó bÅ‘vÃtményét, vagy töltse le a legfrissebb verziót a https://get.adobe.com/flashplayer/ cÃmen',
+ 'mejs.fullscreen': 'Teljes képernyő',
+ 'mejs.play': 'Lejátszás',
+ 'mejs.pause': 'Szünet',
+ 'mejs.time-slider': 'Idő csúszka',
+ 'mejs.time-help-text': 'Használja a Bal/Jobb nyÃl gombokat az egy másodperces léptetéshez, a Fel/Le nyÃl gombokat a tÃz másodperces léptetéshez.',
+ 'mejs.live-broadcast' : 'ÉlÅ‘ közvetÃtés',
+ 'mejs.volume-help-text': 'Használja a Fel/Le nyÃl gombokat a hangerÅ‘ növeléséhez vagy csökkentéséhez.',
+ 'mejs.unmute': 'NémÃtás feloldása',
+ 'mejs.mute': 'NémÃtás',
+ 'mejs.volume-slider': 'Hangerőcsúszka',
+ 'mejs.video-player': 'Videolejátszó',
+ 'mejs.audio-player': 'Audiolejátszó',
+ 'mejs.captions-subtitles': 'KépaláÃrás/Feliratok',
+ 'mejs.captions-chapters': 'Fejezetek',
+ 'mejs.none': 'Nincs',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albán',
+ 'mejs.arabic': 'Arab',
+ 'mejs.belarusian': 'Belorusz',
+ 'mejs.bulgarian': 'Bolgár',
+ 'mejs.catalan': 'Katalán',
+ 'mejs.chinese': 'KÃnai',
+ 'mejs.chinese-simplified': 'KÃnai (EgyszerűsÃtett)',
+ 'mejs.chinese-traditional': 'KÃnai (Hagyományos)',
+ 'mejs.croatian': 'Horvát',
+ 'mejs.czech': 'Cseh',
+ 'mejs.danish': 'Dán',
+ 'mejs.dutch': 'Holland',
+ 'mejs.english': 'Angol',
+ 'mejs.estonian': 'Észt',
+ 'mejs.filipino': 'FilippÃnó',
+ 'mejs.finnish': 'Finn',
+ 'mejs.french': 'Francia',
+ 'mejs.galician': 'GalÃciai',
+ 'mejs.german': 'Német',
+ 'mejs.greek': 'Görög',
+ 'mejs.haitian-creole': 'Haiti Kreol',
+ 'mejs.hebrew': 'Héber',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Magyar',
+ 'mejs.icelandic': 'Izlandi',
+ 'mejs.indonesian': 'Indonéz',
+ 'mejs.irish': 'Ãr',
+ 'mejs.italian': 'Olasz',
+ 'mejs.japanese': 'Japán',
+ 'mejs.korean': 'Koreai',
+ 'mejs.latvian': 'Lett',
+ 'mejs.lithuanian': 'Litván',
+ 'mejs.macedonian': 'Macedóniai',
+ 'mejs.malay': 'Maláj',
+ 'mejs.maltese': 'Máltai',
+ 'mejs.norwegian': 'Norvég',
+ 'mejs.persian': 'Perzsa',
+ 'mejs.polish': 'Lengyel',
+ 'mejs.portuguese': 'Portugál',
+ 'mejs.romanian': 'Román',
+ 'mejs.russian': 'Orosz',
+ 'mejs.serbian': 'Szerb',
+ 'mejs.slovak': 'Szlovák',
+ 'mejs.slovenian': 'Szlovén',
+ 'mejs.spanish': 'Spanyol',
+ 'mejs.swahili': 'Szuahéli',
+ 'mejs.swedish': 'Svéd',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Török',
+ 'mejs.ukrainian': 'Ukrán',
+ 'mejs.vietnamese': 'Vietnami',
+ 'mejs.welsh': 'Walesi',
+ 'mejs.yiddish': 'Jiddis'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/it.js b/docroot/js/mediaelement/lang/it.js
new file mode 100644
index 000000000..2442b6925
--- /dev/null
+++ b/docroot/js/mediaelement/lang/it.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Italian
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha 'SoftCreatR' Greuel
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.it === undefined) {
+ exports.it = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Scaricare il file',
+ 'mejs.install-flash': 'Stai utilizzando un browser che non dispone di Flash Player abilitato o installato. Accenda il tuo plug-in Flash Player o scarica la versione più recente da https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Schermo intero',
+ 'mejs.play': 'Eseguire',
+ 'mejs.pause': 'Pausa',
+ 'mejs.time-slider': 'Barra di scorrimento',
+ 'mejs.time-help-text': 'Utilizzare i tasti Freccia sinistra/Freccia destra per avanzare di un secondo, Freccia Su/Giù per avanzare dieci secondi.',
+ 'mejs.live-broadcast' : 'Trasmissione in diretta',
+ 'mejs.volume-help-text': 'Utilizzare i tasti Freccia Su/Giù per aumentare o diminuire il volume.',
+ 'mejs.unmute': 'Disattivare muto',
+ 'mejs.mute': 'Muto',
+ 'mejs.volume-slider': 'Barra del volume',
+ 'mejs.video-player': 'Lettore Video',
+ 'mejs.audio-player': 'Lettore Audio',
+ 'mejs.captions-subtitles': 'Acquisizioni/sottotitoli',
+ 'mejs.captions-chapters': 'Capitoli',
+ 'mejs.none': 'Nessuno',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanese',
+ 'mejs.arabic': 'Arabo',
+ 'mejs.belarusian': 'Bielorusso',
+ 'mejs.bulgarian': 'Bulgaro',
+ 'mejs.catalan': 'Catalano',
+ 'mejs.chinese': 'Cinese',
+ 'mejs.chinese-semplificato': 'Cinese (Semplificato)',
+ 'mejs.chinese-traditional': 'Cinese (Tradizionale)',
+ 'mejs.croatian': 'Croato',
+ 'mejs.czech': 'Ceco',
+ 'mejs.danish': 'Danese',
+ 'mejs.dutch': 'Olandese',
+ 'mejs.english': 'Inglese',
+ 'mejs.estonian': 'Estone',
+ 'mejs.filipino': 'Filippino',
+ 'mejs.finnish': 'Finlandese',
+ 'mejs.french': 'Francese',
+ 'mejs.galician': 'Galiziano',
+ 'mejs.german': 'Tedesco',
+ 'mejs.greek': 'Greco',
+ 'mejs.haitian-creole': 'Creolo Haitiano',
+ 'mejs.hebrew': 'Ebraico',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Ungherese',
+ 'mejs.icelandic': 'Islandese',
+ 'mejs.indonesian': 'Indonesiano',
+ 'mejs.irish': 'Irlandese',
+ 'mejs.italian': 'Italiano',
+ 'mejs.japanese': 'Giapponese',
+ 'mejs.korean': 'Coreano',
+ 'mejs.latvian': 'Lettone',
+ 'mejs.lithuanian': 'Lituano',
+ 'mejs.macedonian': 'Macedone',
+ 'mejs.malay': 'Malay',
+ 'mejs.maltese': 'Maltese',
+ 'mejs.norwegian': 'Norvegese',
+ 'mejs.persian': 'Persiano',
+ 'mejs.polish': 'Polacco',
+ 'mejs.portuguese': 'Portoghese',
+ 'mejs.romanian': 'Rumeno',
+ 'mejs.russian': 'Russo',
+ 'mejs.serbian': 'Serbo',
+ 'mejs.slovak': 'Slovacco',
+ 'mejs.slovenian': 'Sloveno',
+ 'mejs.spanish': 'Spagnolo',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Svedese',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Turco',
+ 'mejs.ukrainian': 'Ucraino',
+ 'mejs.vietnamese': 'Vietnamita',
+ 'mejs.welsh': 'Gallese',
+ 'mejs.yiddish': 'Yiddish'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/ja.js b/docroot/js/mediaelement/lang/ja.js
new file mode 100644
index 000000000..ab867849f
--- /dev/null
+++ b/docroot/js/mediaelement/lang/ja.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Japanese
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha 'SoftCreatR' Greuel
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.ja === undefined) {
+ exports.ja = {
+ 'mejs.plural-form': 0,
+ 'mejs.download-file': 'ファイルをダウンãƒãƒ¼ãƒ‰ã™ã‚‹',
+ 'mejs.install-flash': 'Flash PlayerãŒæœ‰åŠ¹ã¾ãŸã¯ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã¦ã„ãªã„ブラウザを使用ã—ã¦ã„ã¾ã™ã€‚Flash Playerプラグインをオンã«ã™ã‚‹ã‹,https://get.adobe.com/flashplayer/ã‹ã‚‰æœ€æ–°ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’ダウンãƒãƒ¼ãƒ‰ã—ã¦ãã ã•ã„。',
+ 'mejs.fullscreen': '全画é¢',
+ 'mejs.play': 'å†ç”Ÿ',
+ 'mejs.pause': '一時åœæ¢',
+ 'mejs.time-slider': 'タイムスライダー',
+ 'mejs.time-help-text': '1秒進ã‚ã‚‹ã«ã¯å·¦/å³çŸ¢å°ã‚’ã‚ーを,10秒進ã‚ã‚‹ã«ã¯ä¸Š/下矢å°ã‚’使ã„ã¾ã™ã€‚',
+ 'mejs.live-broadcast': 'ライブブãƒãƒ¼ãƒ‰ã‚ャスト',
+ 'mejs.volume-help-text': '音é‡ã‚’上ã’ãŸã‚Šä¸‹ã’ãŸã‚Šã™ã‚‹ã«ã¯,上/下矢å°ã‚’使ã„ã¾ã™ã€‚',
+ 'mejs.unmute': 'ミュートを解除',
+ 'mejs.mute': 'ミュート',
+ 'mejs.volume-slider': '音é‡ã‚¹ãƒ©ã‚¤ãƒ€ãƒ¼',
+ 'mejs.video-player': 'ビデオプレーヤー',
+ 'mejs.audio-player': 'オーディオプレーヤー',
+ 'mejs.captions-subtitles': 'ã‚ャプション/å—幕',
+ 'mejs.captions-chapters': 'ç« ',
+ 'mejs.none': 'ãªã—',
+ 'mejs.afrikaans': 'アフリカーンス語',
+ 'mejs.albanian': 'アルãƒãƒ‹ã‚¢èªž',
+ 'mejs.arabic': 'アラビア語',
+ 'mejs.belarusian': 'ベラルーシ語',
+ 'mejs.bulgarian': 'ブルガリア語',
+ 'mejs.catalan': 'ã‚«ã‚¿ãƒãƒ‹ã‚¢èªž',
+ 'mejs.chinese': 'ä¸å›½èªž',
+ 'mejs.chinese-simplified': 'ä¸å›½èªžï¼ˆç°¡ä½“å—)',
+ 'mejs.chinese-traditional': 'ä¸å›½èªžï¼ˆç¹ä½“å—)',
+ 'mejs.croatian': 'クãƒã‚¢ãƒã‚¢èªž',
+ 'mejs.czech': 'ãƒã‚§ã‚³èªž',
+ 'mejs.danish': 'デンマーク語',
+ 'mejs.dutch': 'オランダã®',
+ 'mejs.english': '英語',
+ 'mejs.estonian': 'エストニア語',
+ 'mejs.filipino': 'フィリピン人',
+ 'mejs.finnish': 'フィンランド語',
+ 'mejs.french': 'フランス語',
+ 'mejs.galician': 'ガリシア人',
+ 'mejs.german': 'ドイツ語',
+ 'mejs.greek': 'ギリシャ語',
+ 'mejs.haitian-creole': 'ãƒã‚¤ãƒã‚¯ãƒ¬ã‚ªãƒ¼ãƒ«',
+ 'mejs.hebrew': 'ヘブライ語',
+ 'mejs.hindi': 'ヒンディー語',
+ 'mejs.hungarian': 'ãƒãƒ³ã‚¬ãƒªãƒ¼èªž',
+ 'mejs.icelandic': 'アイスランド語',
+ 'mejs.indonesian': 'インドãƒã‚·ã‚¢èªž',
+ 'mejs.irish': 'アイルランド',
+ 'mejs.italian': 'イタリア語',
+ 'mejs.japanese': '日本語',
+ 'mejs.korean': '韓国語',
+ 'mejs.latvian': 'ラトビア語',
+ 'mejs.lithuanian': 'リトアニア語',
+ 'mejs.macedonian': 'マケドニアã®',
+ 'mejs.malay': 'マレー語',
+ 'mejs.maltese': 'マルタ',
+ 'mejs.norwegian': 'ノルウェー語',
+ 'mejs.persian': 'ペルシア語',
+ 'mejs.polish': 'ãƒãƒ¼ãƒ©ãƒ³ãƒ‰èªž',
+ 'mejs.portuguese': 'ãƒãƒ«ãƒˆã‚¬ãƒ«èªž',
+ 'mejs.romanian': 'ルーマニア語',
+ 'mejs.russian': 'ãƒã‚·ã‚¢èªž',
+ 'mejs.serbian': 'セルビア語',
+ 'mejs.slovak': 'スãƒãƒã‚ア語',
+ 'mejs.slovenian': 'スãƒãƒ™ãƒ‹ã‚¢èªž',
+ 'mejs.spanish': 'スペイン語',
+ 'mejs.swahili': 'スワヒリ語',
+ 'mejs.swedish': 'スウェーデン語',
+ 'mejs.tagalog': 'タガãƒã‚°',
+ 'mejs.thai': 'タイ',
+ 'mejs.turkish': 'トルコ語',
+ 'mejs.ukrainian': 'ウクライナ語',
+ 'mejs.vietnamese': 'ベトナム語',
+ 'mejs.welsh': 'ウェールズ',
+ 'mejs.yiddish': 'イディッシュ'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/ko.js b/docroot/js/mediaelement/lang/ko.js
new file mode 100644
index 000000000..7630e8cf6
--- /dev/null
+++ b/docroot/js/mediaelement/lang/ko.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Korean
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha 'SoftCreatR' Greuel
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.ko === undefined) {
+ exports.ko = {
+ 'mejs.plural-form': 0,
+ 'mejs.download-file': 'íŒŒì¼ ë‹¤ìš´ë¡œë“œ',
+ 'mejs.install-flash': 'Flash Playerê°€ 활성화ë˜ê±°ë‚˜ 설치ë˜ì§€ ì•Šì€ ë¸Œë¼ìš°ì €ë¥¼ 사용 중입니다. 플래시 í”Œë ˆì´ì–´ 플러그ì¸ì„ 켜거나 https://get.adobe.com/flashplayer/ì—ì„œ ìµœì‹ ë²„ì „ì„ ë‹¤ìš´ë¡œë“œí•˜ì‹ì‹œì˜¤.',
+ 'mejs.fullscreen': 'ì „ì²´í™”ë©´',
+ 'mejs.play': 'ìž‘ë™',
+ 'mejs.pause': 'ì •ì§€',
+ 'mejs.time-slider': '시간 슬ë¼ì´ë”',
+ 'mejs.time-help-text': '1ì´ˆ ì „ì§„í•˜ë ¤ë©´ 좌/우측 화살표를 ì‚¬ìš©í•˜ì‹œê³ 10ì´ˆ ì „ì§„í•˜ë ¤ë©´ 위/아래 화살표를 사용하세요.',
+ 'mejs.live-broadcast' : 'ìƒë°©ì†¡',
+ 'mejs.volume-help-text': 'ë³¼ë¥¨ì„ ë†’ì´ê±°ë‚˜ ë‚®ì¶”ë ¤ë©´ 위/아래 화살표를 ì´ìš©í•˜ì„¸ìš”.',
+ 'mejs.unmute': 'ìŒì†Œê±° í•´ì œ',
+ 'mejs.mute': 'ë§ ì—†ëŠ”',
+ 'mejs.volume-slider': '볼륨 슬ë¼ì´ë”',
+ 'mejs.video-player': '비디오 í”Œë ˆì´ì–´',
+ 'mejs.audio-player': '오디오 í”Œë ˆì´ì–´',
+ 'mejs.captions-subtitles': '캡션/ìžë§‰',
+ 'mejs.captions-chapters': '챕터',
+ 'mejs.none': 'ì—†ìŒ',
+ 'mejs.afrikaans': '아프리칸스어',
+ 'mejs.albanian': '알바니아',
+ 'mejs.arabic': 'ì•„ëžì–´',
+ 'mejs.belarusian': '벨로루시 어',
+ 'mejs.bulgarian': '불가리아',
+ 'mejs.catalan': '카탈로니아 어',
+ 'mejs.chinese': '중êµì–´',
+ 'mejs.chinese-simplified': '중êµì–´ (ê°„ì²´)',
+ 'mejs.chinese-traditional': '중êµì–´ (번체)',
+ 'mejs.croatian': 'í¬ë¡œì•„í‹°ì•„ì–´',
+ 'mejs.czech': 'ì²´ì½” ì–´',
+ 'mejs.danish': 'ë´ë§ˆí¬ì–´',
+ 'mejs.dutch': '네ëœëž€ë“œì–´',
+ 'mejs.english': 'ì˜ì–´',
+ 'mejs.estonian': 'ì—ìŠ¤í† ë‹ˆì•„',
+ 'mejs.filipino': '필리핀',
+ 'mejs.finnish': '핀란드어',
+ 'mejs.french': '프랑스어',
+ 'mejs.galician': '갈리시아ì¸',
+ 'mejs.german': 'ë…ì¼ì–´',
+ 'mejs.greek': '그리스어',
+ 'mejs.haitian-creole': 'ì•„ì´í‹° í¬ë¦¬ì˜¬',
+ 'mejs.hebrew': '히브리어',
+ 'mejs.hindi': '힌디어',
+ 'mejs.hungarian': 'í—가리어',
+ 'mejs.icelandic': 'ì•„ì´ìŠ¬ëž€ë“œ ì–´',
+ 'mejs.indonesian': 'ì¸ë„네시아어',
+ 'mejs.irish': 'ì•„ì¼ëžœë“œì–´',
+ 'mejs.italian': 'ì´íƒˆë¦¬ì•„ì–´',
+ 'mejs.japanese': 'ì¼ë³¸ì–´',
+ 'mejs.korean': 'í•œêµì–´',
+ 'mejs.latvian': 'ë¼íŠ¸ë¹„ì•„ì–´',
+ 'mejs.lithuanian': '리투아니아어',
+ 'mejs.macedonian': '마케ë„니아ì¸',
+ 'mejs.malay': 'ë§ë ˆì´',
+ 'mejs.maltese': '몰타어',
+ 'mejs.norwegian': '노르웨ì´ì–´',
+ 'mejs.persian': '페르시아어',
+ 'mejs.polish': 'í´ëž€ë“œì–´',
+ 'mejs.portuguese': 'í¬ë¥´íˆ¬ê°ˆì–´',
+ 'mejs.romanian': '루마니아어',
+ 'mejs.russian': '러시아어',
+ 'mejs.serbian': '세르비아어',
+ 'mejs.slovak': '슬로바키아어',
+ 'mejs.slovenian': 'ìŠ¬ë¡œë² ë‹ˆì•„ì–´',
+ 'mejs.spanish': '스페ì¸ì–´',
+ 'mejs.swahili': '스와ížë¦¬ì–´',
+ 'mejs.swedish': '스웨ë´ì–´',
+ 'mejs.tagalog': '타갈로그어',
+ 'mejs.thai': '태êµì–´',
+ 'mejs.turkish': '터키어',
+ 'mejs.ukrainian': 'ìš°í¬ë¼ì´ë‚˜ì–´',
+ 'mejs.vietnamese': 'ë² íŠ¸ë‚¨ì¸',
+ 'mejs.welsh': '웨ì¼ìŠ¤ ì–´',
+ 'mejs.yiddish': 'ì´ë””시어'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/ms.js b/docroot/js/mediaelement/lang/ms.js
new file mode 100644
index 000000000..844ba5cfb
--- /dev/null
+++ b/docroot/js/mediaelement/lang/ms.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Malay (for inter-country use - see the countries mentioned in infobox`s `native to` at https://en.wikipedia.org/wiki/Malay_language)
+ *
+ * @author
+ * muhdnurhidayat (Twitter: @mnh48com)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.ms === undefined) {
+ exports.ms = {
+ 'mejs.plural-form': 0,
+ 'mejs.download-file': 'Muat Turun Fail',
+ 'mejs.install-flash': 'Anda sedang menggunakan pelayar internet yang tidak mempunyai pemain Flash. Sila aktifkan pemalam pemain Flash anda atau muat turun versi terbaru dari https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Skrin penuh',
+ 'mejs.play': 'Main',
+ 'mejs.pause': 'Jeda',
+ 'mejs.time-slider': 'Lungsur Masa',
+ 'mejs.time-help-text': 'Gunakan kekunci Anak Panah Kiri/Kanan untuk bergerak satu saat, Anak Panah Atas/Bawah untuk bergerak sepuluh saat.',
+ 'mejs.live-broadcast' : 'Siaran Langsung',
+ 'mejs.volume-help-text': 'Gunakan kekunci Anak Panah Atas/Bawah untuk menguatkan atau memperlahankan bunyi.',
+ 'mejs.unmute': 'Nyahsenyap',
+ 'mejs.mute': 'Senyap',
+ 'mejs.volume-slider': 'Lungsur Bunyi',
+ 'mejs.video-player': 'Pemain Video',
+ 'mejs.audio-player': 'Pemain Audio',
+ 'mejs.captions-subtitles': 'Sarikata',
+ 'mejs.captions-chapters': 'Bab',
+ 'mejs.none': 'Tiada',
+ 'mejs.afrikaans': 'Bahasa Afrikaans',
+ 'mejs.albanian': 'Bahasa Albania',
+ 'mejs.arabic': 'Bahasa Arab',
+ 'mejs.belarusian': 'Bahasa Belarus',
+ 'mejs.bulgarian': 'Bahasa Bulgaria',
+ 'mejs.catalan': 'Bahasa Catalonia',
+ 'mejs.chinese': 'Bahasa Cina',
+ 'mejs.chinese-simplified': 'Bahasa Cina (Ringkas)',
+ 'mejs.chinese-traditional': 'Bahasa Cina (Tradisional)',
+ 'mejs.croatian': 'Bahasa Croatia',
+ 'mejs.czech': 'Bahasa Czech',
+ 'mejs.danish': 'Bahasa Denmark',
+ 'mejs.dutch': 'Bahasa Belanda',
+ 'mejs.english': 'Bahasa Inggeris',
+ 'mejs.estonian': 'Bahasa Estonia',
+ 'mejs.filipino': 'Bahasa Filipino',
+ 'mejs.finnish': 'Bahasa Finland',
+ 'mejs.french': 'Bahasa Perancis',
+ 'mejs.galician': 'Bahasa Galicia',
+ 'mejs.german': 'Bahasa Jerman',
+ 'mejs.greek': 'Bahasa Greek',
+ 'mejs.haitian-creole': 'Bahasa Kreol Haiti',
+ 'mejs.hebrew': 'Bahasa Ibrani',
+ 'mejs.hindi': 'Bahasa Hindi',
+ 'mejs.hungarian': 'Bahasa Hungary',
+ 'mejs.icelandic': 'Bahasa Iceland',
+ 'mejs.indonesian': 'Bahasa Indonesia',
+ 'mejs.irish': 'Bahasa Ireland',
+ 'mejs.italian': 'Bahasa Itali',
+ 'mejs.japanese': 'Bahasa Jepun',
+ 'mejs.korean': 'Bahasa Korea',
+ 'mejs.latvian': 'Bahasa Latvia',
+ 'mejs.lithuanian': 'Bahasa Lithuania',
+ 'mejs.macedonian': 'Bahasa Macedonia',
+ 'mejs.malay': 'Bahasa Melayu',
+ 'mejs.maltese': 'Bahasa Malta',
+ 'mejs.norwegian': 'Bahasa Norway',
+ 'mejs.persian': 'Bahasa Parsi',
+ 'mejs.polish': 'Bahasa Poland',
+ 'mejs.portuguese': 'Bahasa Portugis',
+ 'mejs.romanian': 'Bahasa Romania',
+ 'mejs.russian': 'Bahasa Rusia',
+ 'mejs.serbian': 'Bahasa Serbia',
+ 'mejs.slovak': 'Bahasa Slovak',
+ 'mejs.slovenian': 'Bahasa Slovene',
+ 'mejs.spanish': 'Bahasa Sepanyol',
+ 'mejs.swahili': 'Bahasa Swahili',
+ 'mejs.swedish': 'Bahasa Sweden',
+ 'mejs.tagalog': 'Bahasa Tagalog',
+ 'mejs.thai': 'Bahasa Thai',
+ 'mejs.turkish': 'Bahasa Turki',
+ 'mejs.ukrainian': 'Bahasa Ukraine',
+ 'mejs.vietnamese': 'Bahasa Vietnam',
+ 'mejs.welsh': 'Bahasa Wales',
+ 'mejs.yiddish': 'Bahasa Yiddish'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/nl.js b/docroot/js/mediaelement/lang/nl.js
new file mode 100644
index 000000000..9c11dd0f4
--- /dev/null
+++ b/docroot/js/mediaelement/lang/nl.js
@@ -0,0 +1,91 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Dutch
+ *
+ * @author
+ * Leonard de Ruijter, Twitter: @LeonarddR
+ * Jalios (Twitter: @Jalios)
+ * Sascha 'SoftCreatR' Greuel
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.nl === undefined) {
+ exports.nl = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Bestand downloaden',
+ 'mejs.install-flash': 'U gebruikt een browser die geen Flash Player heeft ingeschakeld of geïnstalleerd. Zet de Flash Player plug-in of download de nieuwste versie van https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Volledig scherm',
+ 'mejs.play': 'Afspelen',
+ 'mejs.pause': 'Pauzeren',
+ 'mejs.time-slider': 'Tijd schuifbalk',
+ 'mejs.time-help-text': 'Gebruik pijl naar links/rechts om per seconde te springen, pijl omhoog/omlaag om per tien seconden te springen.',
+ 'mejs.live-broadcast' : 'Live uitzending',
+ 'mejs.volume-help-text': 'Gebruik pijl omhoog/omlaag om het volume te verhogen/verlagen.',
+ 'mejs.unmute': 'Dempen opheffen',
+ 'mejs.mute': 'Dempen',
+ 'mejs.volume-slider': 'Volume schuifbalk',
+ 'mejs.video-player': 'Videospeler',
+ 'mejs.audio-player': 'Audiospeler',
+ 'mejs.captions-subtitles': 'Bijschriften/ondertiteling',
+ 'mejs.captions-chapters': 'Hoofdstukken',
+ 'mejs.none': 'Geen',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanees',
+ 'mejs.arabic': 'Arabisch',
+ 'mejs.belarusian': 'Wit-Russisch',
+ 'mejs.bulgarian': 'Bulgaars',
+ 'mejs.catalan': 'Catalaans',
+ 'mejs.chinese': 'Chinees',
+ 'mejs.chinese-simplified': 'Chinees (Vereenvoudigd)',
+ 'mejs.chinese-traditional': 'Chinees (Traditioneel)',
+ 'mejs.croatian': 'Kroatisch',
+ 'mejs.czech': 'Tsjechisch',
+ 'mejs.danish': 'Deens',
+ 'mejs.dutch': 'Nederlands',
+ 'mejs.english': 'Engels',
+ 'mejs.estonian': 'Estlands',
+ 'mejs.filipino': 'Filipijns',
+ 'mejs.finnish': 'Finse',
+ 'mejs.french': 'Frans',
+ 'mejs.galician': 'Galicisch',
+ 'mejs.german': 'Duits',
+ 'mejs.greek': 'Grieks',
+ 'mejs.haitian-creole': 'Haïtiaanse Creoolse',
+ 'mejs.hebrew': 'Hebreeuws',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Hongaars',
+ 'mejs.icelandic': 'Icelandic',
+ 'mejs.indonesian': 'Indonesisch',
+ 'mejs.irish': 'Iers',
+ 'mejs.italian': 'Italiaans',
+ 'mejs.japanese': 'Japans',
+ 'mejs.korean': 'Koreaans',
+ 'mejs.latvian': 'Letlands',
+ 'mejs.lithuanian': 'Litouws',
+ 'mejs.macedonian': 'Macedonisch',
+ 'mejs.malay': 'Maleis',
+ 'mejs.maltese': 'Maltese',
+ 'mejs.norwegian': 'Noors',
+ 'mejs.persian': 'Perzisch',
+ 'mejs.polish': 'Pools',
+ 'mejs.portuguese': 'Portugees',
+ 'mejs.romanian': 'Roemeens',
+ 'mejs.russian': 'Russisch',
+ 'mejs.serbian': 'Servisch',
+ 'mejs.slovak': 'Slowaaks',
+ 'mejs.slovenian': 'Sloveens',
+ 'mejs.spanish': 'Spaans',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Zweeds',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Turks',
+ 'mejs.ukrainian': 'Oekraïens',
+ 'mejs.vietnamese': 'Vietnamese',
+ 'mejs.welsh': 'Welsh',
+ 'mejs.yiddish': 'Jiddisch'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/pl.js b/docroot/js/mediaelement/lang/pl.js
new file mode 100644
index 000000000..4fe044610
--- /dev/null
+++ b/docroot/js/mediaelement/lang/pl.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Polish
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.pl === undefined) {
+ exports.pl = {
+ 'mejs.plural-form': 9,
+ 'mejs.download-file': 'Pobierz plik',
+ 'mejs.install-flash': 'Twoja przeglądarka nie ma włączonej lub zainstalowanej wtyczki Flash Player. Prosimy ją włączyć lub pobrać najnowszą wersję ze strony https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Pełny ekran',
+ 'mejs.play': 'Odtwarzaj',
+ 'mejs.pause': 'Wstrzymaj',
+ 'mejs.time-slider': 'Suwak czasu',
+ 'mejs.time-help-text': 'Strzałki w lewo/w prawo powodują przewijanie o sekundę, strzałki w górę/w dół o dziesięć sekund.',
+ 'mejs.live-broadcast': 'Transmisja na żywo',
+ 'mejs.volume-help-text': 'Aby zwiększyć lub zmniejszyć głośność, użyj strzałek w górę/w dół.',
+ 'mejs.unmute': 'Wyłącz wyciszenie',
+ 'mejs.mute': 'Wycisz',
+ 'mejs.volume-slider': 'Suwak głośności',
+ 'mejs.video-player': 'Odtwarzacz wideo',
+ 'mejs.audio-player': 'Odtwarzacz audio',
+ 'mejs.captions-subtitles': 'Podpisy/napisy',
+ 'mejs.captions-chapters': 'Rozdziały',
+ 'mejs.none': 'Brak',
+ 'mejs.afrikaans': 'Afrykański',
+ 'mejs.albanian': 'Albański',
+ 'mejs.arabic': 'Arabski',
+ 'mejs.belarusian': 'Białoruski',
+ 'mejs.bulgarian': 'Bułgarski',
+ 'mejs.catalan': 'Kataloński',
+ 'mejs.chinese': 'Chiński',
+ 'mejs.chinese-simplified': 'Chiński (uproszczony)',
+ 'mejs.chinese-traditional': 'Chiński (tradycyjny)',
+ 'mejs.croatian': 'Chorwacki',
+ 'mejs.czech': 'Czeski',
+ 'mejs.danish': 'Duński',
+ 'mejs.dutch': 'Holenderski',
+ 'mejs.english': 'Angielski',
+ 'mejs.estonian': 'Estoński',
+ 'mejs.filipino': 'Filipiński',
+ 'mejs.finnish': 'Fiński',
+ 'mejs.french': 'Francuski',
+ 'mejs.galician': 'Galicyjski',
+ 'mejs.german': 'Niemiecki',
+ 'mejs.greek': 'Grecki',
+ 'mejs.haitian-creole': 'Haitański',
+ 'mejs.hebrew': 'Hebrajski',
+ 'mejs.hindi': 'Hinduski',
+ 'mejs.hungarian': 'Węgierski',
+ 'mejs.icelandic': 'Islandzki',
+ 'mejs.indonesian': 'Indonezyjski',
+ 'mejs.irish': 'Irlandzki',
+ 'mejs.italian': 'WÅ‚oski',
+ 'mejs.japanese': 'Japoński',
+ 'mejs.korean': 'Koreański',
+ 'mejs.latvian': 'Åotewski',
+ 'mejs.lithuanian': 'Litewski',
+ 'mejs.macedonian': 'Macedoński',
+ 'mejs.malay': 'Malajski',
+ 'mejs.maltese': 'Maltański',
+ 'mejs.norwegian': 'Norweski',
+ 'mejs.persian': 'Perski',
+ 'mejs.polish': 'Polski',
+ 'mejs.portuguese': 'Portugalski',
+ 'mejs.romanian': 'Rumuński',
+ 'mejs.russian': 'Rosyjski',
+ 'mejs.serbian': 'Serbski',
+ 'mejs.slovak': 'SÅ‚owacki',
+ 'mejs.slovenian': 'Słoweński',
+ 'mejs.spanish': 'Hiszpański',
+ 'mejs.swahili': 'Suahili',
+ 'mejs.swedish': 'Szwedzki',
+ 'mejs.tagalog': 'Tagalski',
+ 'mejs.thai': 'Tajski',
+ 'mejs.turkish': 'Turecki',
+ 'mejs.ukrainian': 'Ukraiński',
+ 'mejs.vietnamese': 'Wietnamski',
+ 'mejs.welsh': 'Walijski',
+ 'mejs.yiddish': 'Jidysz'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/pt.js b/docroot/js/mediaelement/lang/pt.js
new file mode 100644
index 000000000..3d5a6c944
--- /dev/null
+++ b/docroot/js/mediaelement/lang/pt.js
@@ -0,0 +1,92 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Portuguese
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.pt === undefined) {
+ exports.pt = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Descarregar o ficheiro',
+ 'mejs.install-flash': 'Você está usando um navegador que não possui o player Flash ativado ou instalado. Por favor, ligue o plugin do Flash Player ou baixe a versão mais recente de https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Ecrã completo',
+ 'mejs.play': 'Reprodução',
+ 'mejs.pause': 'Pausa',
+ 'mejs.time-slider': 'Deslizador do tempo',
+ 'mejs.time-help-text': 'Use as teclas das setas para a esquerda/direita para avançar um segundo, e as setas para cima/baixo para avançar dez segundos.',
+ 'mejs.live-broadcast' : 'Transmissão ao vivo',
+
+
+ 'mejs.volume-help-text': 'Use as teclas das setas para cima/baixo para aumentar ou diminuir o volume.',
+ 'mejs.unmute': 'Voltar ao som',
+ 'mejs.mute': 'Silêncio',
+ 'mejs.volume-slider': 'Deslizador do volume',
+ 'mejs.video-player': 'Leitor de vÃdeo',
+ 'mejs.audio-player': 'Leitor de áudio',
+ 'mejs.captions-subtitles': 'Legendas',
+ 'mejs.captions-chapters': 'CapÃtulos',
+ 'mejs.none': 'Nenhum',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanês',
+ 'mejs.arabic': 'Ãrabe',
+ 'mejs.belarusian': 'Bielorrusso',
+ 'mejs.bulgarian': 'Búlgaro',
+ 'mejs.catalan': 'Catalão',
+ 'mejs.chinese': 'Chinês',
+ 'mejs.chinese-simplified': 'Chinese (Simplified)',
+ 'mejs.chinese-traditional': 'Chinese (Traditional)',
+ 'mejs.croatian': 'Croata',
+ 'mejs.czech': 'Checo',
+ 'mejs.danish': 'Danish',
+ 'mejs.dutch': 'Dutch',
+ 'mejs.english': 'Inglês',
+ 'mejs.estonian': 'Estoniano',
+ 'mejs.filipino': 'Filipino',
+ 'mejs.finnish': 'Finlandês',
+ 'mejs.french': 'French',
+ 'mejs.galician': 'Galego',
+ 'mejs.german': 'Alemão',
+ 'mejs.greek': 'Grego',
+ 'mejs.haitian-creole': 'Crioulo Haitiano',
+ 'mejs.hebrew': 'Hebraico',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Húngaro',
+ 'mejs.icelandic': 'Islandês',
+ 'mejs.indonesian': 'Indonésio',
+ 'mejs.irish': 'Irish',
+ 'mejs.italian': 'Italiano',
+ 'mejs.japanese': 'Japonês',
+ 'mejs.korean': 'Coreano',
+ 'mejs.latvian': 'Letão',
+ 'mejs.lithuanian': 'Lithuanian',
+ 'mejs.macedonian': 'Macedônio',
+ 'mejs.malay': 'Malaio',
+ 'mejs.maltese': 'Maltês',
+ 'mejs.norwegian': 'Norwegian',
+ 'mejs.persian': 'Persa',
+ 'mejs.polish': 'Polish',
+ 'mejs.portuguese': 'Português',
+ 'mejs.romanian': 'Romanian',
+ 'mejs.russian': 'Russian',
+ 'mejs.serbian': 'Sérvio',
+ 'mejs.slovak': 'Slovak',
+ 'mejs.slovenian': 'Slovenian',
+ 'mejs.spanish': 'Espanhol',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'sueco',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Turco',
+ 'mejs.ukrainian': 'Ucraniano',
+ 'mejs.vietnamese': 'Vietnamita',
+ 'mejs.welsh': 'Welsh',
+ 'mejs.yiddish': 'IÃdiche'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/ro.js b/docroot/js/mediaelement/lang/ro.js
new file mode 100644
index 000000000..5ad186a29
--- /dev/null
+++ b/docroot/js/mediaelement/lang/ro.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Romanian
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.ro === undefined) {
+ exports.ro = {
+ 'mejs.plural-form': 5,
+ 'mejs.download-file': 'Descarcă fişierul',
+ 'mejs.install-flash': 'Utilizați un browser care nu are activat sau instalat playerul Flash. Porniți pluginul Flash player sau descărcați cea mai recentă versiune de la https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Ecran complet',
+ 'mejs.play': 'Redare',
+ 'mejs.pause': 'Pauză',
+ 'mejs.time-slider': 'Cursor timp',
+ 'mejs.time-help-text': 'Utilizează tastele săgeată Stânga/Dreapta pentru a avansa o secundă şi săgeţile Sus/Jos pentru a avansa zece secunde.',
+ 'mejs.live-broadcast' : 'Difuzare în direct',
+ 'mejs.volume-help-text': 'Utilizează tastele de săgeată Sus/Jos pentru a creşte/micşora volumul',
+ 'mejs.unmute': 'Cu sunet',
+ 'mejs.mute': 'Fără sunet',
+ 'mejs.volume-slider': 'Cursor volum',
+ 'mejs.video-player': 'Player video',
+ 'mejs.audio-player': 'Player audio',
+ 'mejs.captions-subtitles': 'Legende/Subtitrări',
+ 'mejs.captions-chapters': 'Capitolele',
+ 'mejs.none': 'Niciunul',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanez',
+ 'mejs.arabic': 'Arabă',
+ 'mejs.belarusian': 'Belarusian',
+ 'mejs.bulgarian': 'Bulgară',
+ 'mejs.catalan': 'Catalană',
+ 'mejs.chinese': 'Chinezesc',
+ 'mejs.chinese-simplified': 'Chineză (Simplificată)',
+ 'mejs.chinese-traditional': 'Chineză (Tradițională)',
+ 'mejs.croatian': 'Croată',
+ 'mejs.czech': 'Cehă',
+ 'mejs.danish': 'Daneză',
+ 'mejs.dutch': 'Olandeză',
+ 'mejs.english': 'Engleză',
+ 'mejs.estonian': 'Estonă',
+ 'mejs.filipino': 'Filipinez',
+ 'mejs.finnish': 'Finlandeză',
+ 'mejs.french': 'Franceză',
+ 'mejs.galician': 'Galiciană',
+ 'mejs.german': 'Germană',
+ 'mejs.greek': 'Greacă',
+ 'mejs.haitian-creole': 'Creolele Haitiene',
+ 'mejs.hebrew': 'Ebraică',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Maghiar',
+ 'mejs.icelandic': 'Islandeză',
+ 'mejs.indonesian': 'Indonezian',
+ 'mejs.irish': 'Irlandeză',
+ 'mejs.italian': 'Italiană',
+ 'mejs.japanese': 'Japoneză',
+ 'mejs.korean': 'Coreeană',
+ 'mejs.latvian': 'Letonă',
+ 'mejs.lithuanian': 'Lituanian',
+ 'mejs.macedonian': 'Macedonean',
+ 'mejs.malay': 'Malay',
+ 'mejs.maltese': 'Malteză',
+ 'mejs.norwegian': 'Norvegiană',
+ 'mejs.persian': 'Persană',
+ 'mejs.polish': 'Polonez',
+ 'mejs.portuguese': 'Portugheză',
+ 'mejs.romanian': 'Română',
+ 'mejs.russian': 'Rusă',
+ 'mejs.serbian': 'Sârbă',
+ 'mejs.slovak': 'Slovacă',
+ 'mejs.slovenian': 'Slovenă',
+ 'mejs.spanish': 'Spaniolă',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Suedeză',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Turcă',
+ 'mejs.ukrainian': 'Ucrainean',
+ 'mejs.vietnamese': 'Vietnamez',
+ 'mejs.welsh': 'Welsh',
+ 'mejs.yiddish': 'IdiÈ™'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/ru.js b/docroot/js/mediaelement/lang/ru.js
new file mode 100644
index 000000000..a67a410d4
--- /dev/null
+++ b/docroot/js/mediaelement/lang/ru.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Russian
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.ru === undefined) {
+ exports.ru = {
+ 'mejs.plural-form': 7,
+ 'mejs.download-file': 'Скачать файл',
+ 'mejs.install-flash': 'Flash player в вашем браузере не уÑтановлен или отключен. ПожалуйÑта включите ваш Flash player или Ñкачайте поÑледнюю верÑию Ñ https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'ПолноÑкранный режим',
+ 'mejs.play': 'ВоÑпроизвеÑти',
+ 'mejs.pause': 'Пауза',
+ 'mejs.time-slider': 'Слайдер времени',
+ 'mejs.time-help-text': 'ИÑпользуйте Левую/Правую клавиши Ñо Ñтрелками, чтобы продвинутьÑÑ Ð½Ð° одну Ñекунду, клавиши Ñо Ñтрелками Вверх/Вниз, чтобы продвинутьÑÑ Ð½Ð° деÑÑÑ‚ÑŒ Ñекунд.',
+ 'mejs.live-broadcast' : 'ПрÑÐ¼Ð°Ñ Ñ‚Ñ€Ð°Ð½ÑлÑциÑ',
+ 'mejs.volume-help-text': 'ИÑпользуйте клавиши Ñо Ñтрелками Вверх/Вниз, чтобы увеличить или уменьшить громкоÑÑ‚ÑŒ.',
+ 'mejs.unmute': 'Включить звук',
+ 'mejs.mute': 'Отключить звук',
+ 'mejs.volume-slider': 'Слайдер громкоÑти',
+ 'mejs.video-player': 'Видеоплеер',
+ 'mejs.audio-player': 'Ðудиоплеер',
+ 'mejs.captions-subtitles': 'Титры/Субтитры',
+ 'mejs.captions-chapters': 'Главы',
+ 'mejs.none': 'Ðет',
+ 'mejs.afrikaans': 'ÐфриканÑкий',
+ 'mejs.albanian': 'ÐлбанÑкий',
+ 'mejs.arabic': 'ÐрабÑкий',
+ 'mejs.belarusian': 'БелоруÑÑкий',
+ 'mejs.bulgarian': 'БолгарÑкий',
+ 'mejs.catalan': 'КаталонÑкий',
+ 'mejs.chinese': 'КитайÑкий',
+ 'mejs.chinese-simplified': 'КитайÑкий (упрощенный)',
+ 'mejs.chinese-traditional': 'Chinese (традиционный)',
+ 'mejs.croatian': 'ХорватÑкий',
+ 'mejs.czech': 'ЧешÑкий',
+ 'mejs.danish': 'ДатÑкий',
+ 'mejs.dutch': 'ГолландÑкий',
+ 'mejs.english': 'ÐнглийÑкий',
+ 'mejs.estonian': 'ÐÑтонÑкий',
+ 'mejs.filipino': 'ФилиппинÑкий',
+ 'mejs.finnish': 'ФинÑкий',
+ 'mejs.french': 'ФранцузÑкий',
+ 'mejs.galician': 'ГалиÑийÑкий',
+ 'mejs.german': 'Ðемецкий',
+ 'mejs.greek': 'ГречеÑкий',
+ 'mejs.haitian-creole': 'ГаитÑнÑкий креольÑкий',
+ 'mejs.hebrew': 'Иврит',
+ 'mejs.hindi': 'Хинди',
+ 'mejs.hungarian': 'ВенгерÑкий',
+ 'mejs.icelandic': 'ИÑландÑкий',
+ 'mejs.indonesian': 'ИндонезийÑкий',
+ 'mejs.irish': 'ИрландÑкий',
+ 'mejs.italian': 'ИтальÑнÑкий',
+ 'mejs.japanese': 'ЯпонÑкий',
+ 'mejs.korean': 'КорейÑкий',
+ 'mejs.latvian': 'ЛатышÑкий',
+ 'mejs.lithuanian': 'ЛитовÑкий',
+ 'mejs.macedonian': 'МакедонÑкий',
+ 'mejs.malay': 'МалайÑкий',
+ 'mejs.maltese': 'МальтийÑкий',
+ 'mejs.norwegian': 'ÐорвежÑкий',
+ 'mejs.persian': 'ПерÑидÑкий',
+ 'mejs.polish': 'ПольÑкий',
+ 'mejs.portuguese': 'ПортугальÑкий',
+ 'mejs.romanian': 'РумынÑкий',
+ 'mejs.russian': 'РуÑÑкий',
+ 'mejs.serbian': 'СербÑкий',
+ 'mejs.slovak': 'Словацкий',
+ 'mejs.slovenian': 'СловенÑкий',
+ 'mejs.spanish': 'ИÑпанÑкий',
+ 'mejs.swahili': 'Суахили',
+ 'mejs.swedish': 'ШведÑкий',
+ 'mejs.tagalog': 'ТагальÑкий',
+ 'mejs.thai': 'ТайÑкий',
+ 'mejs.turkish': 'Турецкий',
+ 'mejs.ukrainian': 'УкраинÑкий',
+ 'mejs.vietnamese': 'ВьетнамÑкий',
+ 'mejs.welsh': 'ВаллийÑкий',
+ 'mejs.yiddish': 'Идиш'
+ };
+ }
+})(mejs.i18n);
diff --git a/docroot/js/mediaelement/lang/sk.js b/docroot/js/mediaelement/lang/sk.js
new file mode 100644
index 000000000..bbc97f960
--- /dev/null
+++ b/docroot/js/mediaelement/lang/sk.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Slovak
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.sk === undefined) {
+ exports.sk = {
+ 'mejs.plural-form': 8,
+ 'mejs.download-file': 'Prevziať súbor',
+ 'mejs.install-flash': 'PoužÃvate prehliadaÄ, ktorý nemá povolený alebo nainÅ¡talovaný prehrávaÄ Flash. Zapnite doplnok prehrávaÄa Flash alebo si prevezmite najnovÅ¡iu verziu zo stránky https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Celá obrazovka',
+ 'mejs.play': 'Prehrať',
+ 'mejs.pause': 'Pozastaviť',
+ 'mejs.time-slider': 'PosúvaÄ Äasu',
+ 'mejs.time-help-text': 'Klávesmi so Å¡Ãpkou doľava/doprava posuniete o jednu sekundu, Å¡Ãpkami nahor/ nadol posuniete o desaÅ¥ sekúnd.',
+ 'mejs.live-broadcast' : 'Živé vysielanie',
+ 'mejs.volume-help-text': 'Klávesmi so Å¡Ãpkou nahor/nadol zvýšite alebo znÞite hlasitosÅ¥.',
+ 'mejs.unmute': 'Zrušiť stlmenie',
+ 'mejs.mute': 'Stlmiť',
+ 'mejs.volume-slider': 'PosúvaÄ hlasitosti',
+ 'mejs.video-player': 'PrehrávaÄ videa',
+ 'mejs.audio-player': 'PrehrávaÄ zvuku',
+ 'mejs.captions-subtitles': 'Skryté titulky/Titulky',
+ 'mejs.captions-chapters': 'Kapitoly',
+ 'mejs.none': 'Žiadne',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albánsky',
+ 'mejs.arabic': 'ArabÄina',
+ 'mejs.belarusian': 'Bieloruský',
+ 'mejs.bulgarian': 'BulharÄina',
+ 'mejs.catalan': 'Katalánsky',
+ 'mejs.chinese': 'ÄÃnÅ¡tina',
+ 'mejs.chinese-simplified': 'ÄŒÃnsky (ZjednoduÅ¡ený)',
+ 'mejs.chinese-traditional': 'ÄÃnsky (TradiÄný)',
+ 'mejs.croatian': 'ChorvátÄina',
+ 'mejs.czech': 'ÄeÅ¡tina',
+ 'mejs.danish': 'Dánsky',
+ 'mejs.dutch': 'Holandský',
+ 'mejs.english': 'AngliÄtina',
+ 'mejs.estonian': 'EstónÄina',
+ 'mejs.filipino': 'FilipÃnsky',
+ 'mejs.finnish': 'FÃnÄina',
+ 'mejs.french': 'Francúzština',
+ 'mejs.galician': 'GalicijÄan',
+ 'mejs.german': 'NemÄina',
+ 'mejs.greek': 'GréÄtina',
+ 'mejs.haitian-creole': 'Haitian Kreolský',
+ 'mejs.hebrew': 'HebrejÄina',
+ 'mejs.hindi': 'HindÄina',
+ 'mejs.hungarian': 'MaÄarÄina',
+ 'mejs.icelandic': 'Islandský',
+ 'mejs.indonesian': 'Indonézsky',
+ 'mejs.irish': 'Ãrsky',
+ 'mejs.italian': 'TalianÄina',
+ 'mejs.japanese': 'Japonský',
+ 'mejs.korean': 'Kórejský',
+ 'mejs.latvian': 'Lotyština',
+ 'mejs.lithuanian': 'Litovský',
+ 'mejs.macedonian': 'Macedónsky',
+ 'mejs.malay': 'Malajský',
+ 'mejs.maltese': 'MaltÄina',
+ 'mejs.norwegian': 'Nórsky',
+ 'mejs.persian': 'Perzský',
+ 'mejs.polish': 'poľština',
+ 'mejs.portuguese': 'PortugalÄina',
+ 'mejs.romanian': 'RumunÄina',
+ 'mejs.russian': 'Ruský',
+ 'mejs.serbian': 'Srbský',
+ 'mejs.slovak': 'Slovenský',
+ 'mejs.slovenian': 'Slovinský',
+ 'mejs.spanish': 'Å¡panielÄina',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Å¡védÄina',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Turecký',
+ 'mejs.ukrainian': 'Ukrajinský',
+ 'mejs.vietnamese': 'VietnamÄina',
+ 'mejs.welsh': 'Welsh',
+ 'mejs.yiddish': 'Jidiš'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/sv.js b/docroot/js/mediaelement/lang/sv.js
new file mode 100644
index 000000000..f2f27c190
--- /dev/null
+++ b/docroot/js/mediaelement/lang/sv.js
@@ -0,0 +1,89 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Swedish
+ *
+ * @author
+ * Petter (Twitter: @petter_j)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.sv === undefined) {
+ exports.sv = {
+ 'mejs.plural-form': 1,
+ 'mejs.download-file': 'Ladda ner fil',
+ 'mejs.install-flash': 'Du använder en webbläsare som inte har Flash Player aktiverat eller installerad. Aktivera Flash Player eller hämta den senaste versionen från https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Fullskärm',
+ 'mejs.play': 'Spela',
+ 'mejs.pause': 'Pausa',
+ 'mejs.time-slider': 'Tidslinje',
+ 'mejs.time-help-text': 'Använd Vänster/Höger piltangent för att spola en sekund, Upp/Ner piltangent spola tio sekunder.',
+ 'mejs.live-broadcast': 'Livesändning',
+ 'mejs.volume-help-text': 'Använd Upp/Ner piltangent för att öka eller minska volymen.',
+ 'mejs.unmute': 'Ljud på',
+ 'mejs.mute': 'Ljud av',
+ 'mejs.volume-slider': 'Volymkontroll',
+ 'mejs.video-player': 'Videospelare',
+ 'mejs.audio-player': 'Ljudspelare',
+ 'mejs.captions-subtitles': 'Textning/Undertexter',
+ 'mejs.captions-chapters': 'Kapitel',
+ 'mejs.none': 'Ingen',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanska',
+ 'mejs.arabic': 'Arabiska',
+ 'mejs.belarusian': 'Nederländska',
+ 'mejs.bulgarian': 'Bulgariska',
+ 'mejs.catalan': 'Katalanska',
+ 'mejs.chinese': 'Kinesiska',
+ 'mejs.chinese-simplified': 'Kinesiska (Förenklad)',
+ 'mejs.chinese-traditional': 'Kinesiska (Traditionell)',
+ 'mejs.croatian': 'Kroatiska',
+ 'mejs.czech': 'Tjeckiska',
+ 'mejs.danish': 'Danska',
+ 'mejs.dutch': 'Holländska',
+ 'mejs.english': 'Engelska',
+ 'mejs.estonian': 'Estniska',
+ 'mejs.filipino': 'Filipinska',
+ 'mejs.finnish': 'Finska',
+ 'mejs.french': 'Franska',
+ 'mejs.galician': 'Galiciska',
+ 'mejs.german': 'Tyska',
+ 'mejs.greek': 'Grekiska',
+ 'mejs.haitian-creole': 'Haitisk kreolsk',
+ 'mejs.hebrew': 'Hebreiska',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Ungerska',
+ 'mejs.icelandic': 'Isländska',
+ 'mejs.indonesian': 'Indonesiska',
+ 'mejs.irish': 'Irländska',
+ 'mejs.italian': 'Italienska',
+ 'mejs.japanese': 'Japanska',
+ 'mejs.korean': 'Koreanska',
+ 'mejs.latvian': 'Lettiska',
+ 'mejs.lithuanian': 'Litauiska',
+ 'mejs.macedonian': 'Makedonska',
+ 'mejs.malay': 'Malaysiska',
+ 'mejs.maltese': 'Maltesiska',
+ 'mejs.norwegian': 'Norska',
+ 'mejs.persian': 'Persiska',
+ 'mejs.polish': 'Polska',
+ 'mejs.portuguese': 'Portugisiska',
+ 'mejs.romanian': 'Romänska',
+ 'mejs.russian': 'Ryska',
+ 'mejs.serbian': 'Serbiska',
+ 'mejs.slovak': 'Slovakiska',
+ 'mejs.slovenian': 'Slovenska',
+ 'mejs.spanish': 'Spanska',
+ 'mejs.swahili': 'Swahiliska',
+ 'mejs.swedish': 'Svenska',
+ 'mejs.tagalog': 'Tagalogiska',
+ 'mejs.thai': 'Thailänska',
+ 'mejs.turkish': 'Turkiska',
+ 'mejs.ukrainian': 'Ukrainska',
+ 'mejs.vietnamese': 'Vietnamesiska',
+ 'mejs.welsh': 'Skotska',
+ 'mejs.yiddish': 'Jiddisch'
+ };
+ }
+})(mejs.i18n);
diff --git a/docroot/js/mediaelement/lang/uk.js b/docroot/js/mediaelement/lang/uk.js
new file mode 100644
index 000000000..ca032491d
--- /dev/null
+++ b/docroot/js/mediaelement/lang/uk.js
@@ -0,0 +1,89 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Ukrainian
+ *
+ * @author
+ * Dmitry Krekota (dmitry.krekota@gmail.com)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.uk === undefined) {
+ exports.uk = {
+ 'mejs.plural-form': 7,
+ 'mejs.download-file': 'Завантажити файл',
+ 'mejs.install-flash': 'Flash Player у вашому браузері не вÑтановлений або відключений. Будь лаÑка включіть Flash Player або Ñкачайте оÑтанню верÑÑ–ÑŽ із https://get.adobe.com/flashplayer/',
+ 'mejs.fullscreen': 'Повноекранний режим',
+ 'mejs.play': 'ПуÑк',
+ 'mejs.pause': 'Пауза',
+ 'mejs.time-slider': 'Повзунок чаÑу',
+ 'mejs.time-help-text': 'ВикориÑтовуйте ліву/праву клавіші зі Ñтрілками, щоб переміÑтитиÑÑ Ð½Ð° одну Ñекунду, або клавіші вверх/вниз, щоб переміÑтитиÑÑ Ð½Ð° деÑÑÑ‚ÑŒ Ñекунд.',
+ 'mejs.live-broadcast' : 'ПрÑма транÑлÑціÑ',
+ 'mejs.volume-help-text': 'ВикориÑтовуйте клавіші зі Ñтрілками вверх/вниз, щоб збільшити або зменшити звук.',
+ 'mejs.unmute': 'Включити звук',
+ 'mejs.mute': 'Відключити звук',
+ 'mejs.volume-slider': 'Повзунок звуку',
+ 'mejs.video-player': 'Відеоплеєр',
+ 'mejs.audio-player': 'Ðудіоплеєр',
+ 'mejs.captions-subtitles': 'Титри/Субтитри',
+ 'mejs.captions-chapters': 'Глави',
+ 'mejs.none': 'Ðемає',
+ 'mejs.afrikaans': 'ÐфрикаанÑ',
+ 'mejs.albanian': 'ÐлбанÑька',
+ 'mejs.arabic': 'ÐрабÑька',
+ 'mejs.belarusian': 'БілоруÑька',
+ 'mejs.bulgarian': 'БолгарÑька',
+ 'mejs.catalan': 'КаталонÑька',
+ 'mejs.chinese': 'КитайÑька',
+ 'mejs.chinese-simplified': 'КитайÑька (Ñпрощена)',
+ 'mejs.chinese-traditional': 'КитайÑька (традиційна)',
+ 'mejs.croatian': 'ХорватÑка',
+ 'mejs.czech': 'ЧеÑька',
+ 'mejs.danish': 'Дацька',
+ 'mejs.dutch': 'ГолландÑька',
+ 'mejs.english': 'ÐнглийÑька',
+ 'mejs.estonian': 'ЕÑтонÑька',
+ 'mejs.filipino': 'ФіліппінÑька',
+ 'mejs.finnish': 'ФінÑька',
+ 'mejs.french': 'Французька',
+ 'mejs.galician': 'ГаліÑійÑька',
+ 'mejs.german': 'Ðімецька',
+ 'mejs.greek': 'Грецька',
+ 'mejs.haitian-creole': 'ГаїтÑнÑька креольÑька',
+ 'mejs.hebrew': 'Іврит',
+ 'mejs.hindi': 'Хінді',
+ 'mejs.hungarian': 'УгорÑька',
+ 'mejs.icelandic': 'ІÑландÑька',
+ 'mejs.indonesian': 'ІндонезійÑька',
+ 'mejs.irish': 'ІрландÑька',
+ 'mejs.italian': 'ІталійÑька',
+ 'mejs.japanese': 'ЯпонÑька',
+ 'mejs.korean': 'КорейÑька',
+ 'mejs.latvian': 'ЛатвійÑька',
+ 'mejs.lithuanian': 'ЛитовÑька',
+ 'mejs.macedonian': 'МакедонÑька',
+ 'mejs.malay': 'МалайÑька',
+ 'mejs.maltese': 'МальтійÑька',
+ 'mejs.norwegian': 'Ðорвезька',
+ 'mejs.persian': 'ПерÑька',
+ 'mejs.polish': 'ПольÑька',
+ 'mejs.portuguese': 'ПортугальÑька',
+ 'mejs.romanian': 'РумунÑька',
+ 'mejs.russian': 'РоÑійÑька',
+ 'mejs.serbian': 'СербÑька',
+ 'mejs.slovak': 'Словацька',
+ 'mejs.slovenian': 'СловенÑька',
+ 'mejs.spanish': 'ІÑпанÑька',
+ 'mejs.swahili': 'Суахілі',
+ 'mejs.swedish': 'ШведÑька',
+ 'mejs.tagalog': 'ТагальÑька',
+ 'mejs.thai': 'ТайÑька',
+ 'mejs.turkish': 'Турецька',
+ 'mejs.ukrainian': 'УкраїнÑька',
+ 'mejs.vietnamese': 'Ð’\'єтнамÑька',
+ 'mejs.welsh': 'ВаллійÑька',
+ 'mejs.yiddish': 'Ідиш'
+ };
+ }
+})(mejs.i18n);
diff --git a/docroot/js/mediaelement/lang/zh-cn.js b/docroot/js/mediaelement/lang/zh-cn.js
new file mode 100644
index 000000000..322157c2d
--- /dev/null
+++ b/docroot/js/mediaelement/lang/zh-cn.js
@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Chinese (Simplified)
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports['zh-CN'] === undefined) {
+ exports['zh-CN'] = {
+ 'mejs.plural-form': 0,
+ 'mejs.download-file': '下载文件',
+ 'mejs.install-flash': '您æ£åœ¨ä½¿ç”¨æœªå¯ç”¨æˆ–安装Flashæ’放器的æµè§ˆå™¨ã€‚请打开您的Flash Playeræ’件,或从https://get.adobe.com/flashplayer/下载最新版本',
+ 'mejs.fullscreen': 'å…¨å±',
+ 'mejs.play': 'æ’放',
+ 'mejs.pause': 'æš‚åœ',
+ 'mejs.time-slider': '时间滑动棒',
+ 'mejs.time-help-text': '使用作/å³ç®å¤´å¿«è¿›1秒,使用上/下ç®å¤´å¿«è¿›10秒。',
+ 'mejs.live-broadcast' : '现场直æ’',
+ 'mejs.volume-help-text': '使用上/下ç®å¤´æ高或é™ä½ŽéŸ³é‡ã€‚',
+ 'mejs.unmute': 'å–消é™éŸ³',
+ 'mejs.mute': 'é™éŸ³',
+ 'mejs.volume-slider': '音é‡é€‰æ‹©é”®',
+ 'mejs.video-player': '视频æ’放器',
+ 'mejs.audio-player': '音频æ’放器',
+ 'mejs.captions-subtitles': 'å—幕/æ ‡é¢˜',
+ 'mejs.captions-chapters': 'ç« ',
+ 'mejs.none': 'æ— ',
+ 'mejs.afrikaans': 'å—éžè·å…°è¯',
+ 'mejs.albanian': '阿尔巴尼亚人',
+ 'mejs.arabic': '阿拉伯è¯',
+ 'mejs.belarusian': '白俄罗斯',
+ 'mejs.bulgarian': 'ä¿åŠ 利亚è¯',
+ 'mejs.catalan': 'åŠ æ³°ç½—å°¼äºšè¯',
+ 'mejs.chinese': 'ä¸å›½',
+ 'mejs.chinese-simplified': 'ä¸æ–‡ï¼ˆç®€ä½“)',
+ 'mejs.chinese-traditional': 'ä¸å›½ï¼ˆä¼ 统)',
+ 'mejs.croatian': '克罗地亚è¯',
+ 'mejs.czech': 'æ·å…‹',
+ 'mejs.danish': '丹麦è¯',
+ 'mejs.dutch': 'è·å…°äºº',
+ 'mejs.english': '英è¯',
+ 'mejs.estonian': '爱沙尼亚è¯',
+ 'mejs.filipino': 'è²å¾‹å®¾',
+ 'mejs.finnish': '芬兰è¯',
+ 'mejs.french': '法è¯',
+ 'mejs.galician': 'åŠ åˆ©è¥¿äºš',
+ 'mejs.german': 'å¾·è¯',
+ 'mejs.greek': '希腊è¯',
+ 'mejs.haitian-creole': '海地克里奥尔人',
+ 'mejs.hebrew': '希伯æ¥è¯',
+ 'mejs.hindi': 'å°åœ°è¯',
+ 'mejs.hungarian': '匈牙利',
+ 'mejs.icelandic': '冰岛',
+ 'mejs.indonesian': 'å°å°¼è¯',
+ 'mejs.irish': '爱尔兰',
+ 'mejs.italian': 'æ„大利è¯',
+ 'mejs.japanese': '日本',
+ 'mejs.korean': '韩国人',
+ 'mejs.latvian': '拉脱维亚人',
+ 'mejs.lithuanian': '立陶宛è¯',
+ 'mejs.macedonian': '马其顿',
+ 'mejs.malay': '马æ¥è¯',
+ 'mejs.maltese': '马耳他',
+ 'mejs.norwegian': '挪å¨è¯',
+ 'mejs.persian': '波斯人',
+ 'mejs.polish': '波兰è¯',
+ 'mejs.portuguese': 'è‘¡è„牙è¯',
+ 'mejs.romanian': '罗马尼亚è¯',
+ 'mejs.russian': 'ä¿„ç½—æ–¯',
+ 'mejs.serbian': '塞尔维亚人',
+ 'mejs.slovak': '斯洛ä¼å…‹è¯',
+ 'mejs.slovenian': '斯洛文尼亚è¯',
+ 'mejs.spanish': '西ç牙è¯',
+ 'mejs.swahili': '斯瓦希里è¯',
+ 'mejs.swedish': 'ç‘žå…¸è¯',
+ 'mejs.tagalog': 'ä»–åŠ ç¦„è¯',
+ 'mejs.thai': '泰国',
+ 'mejs.turkish': '土耳其è¯',
+ 'mejs.ukrainian': '乌克兰',
+ 'mejs.vietnamese': '越å—人',
+ 'mejs.welsh': 'å¨å°”士',
+ 'mejs.yiddish': 'æ„第绪è¯'
+ };
+ }
+})(mejs.i18n);
\ No newline at end of file
diff --git a/docroot/js/mediaelement/lang/zh.js b/docroot/js/mediaelement/lang/zh.js
new file mode 100644
index 000000000..59d68b7a0
--- /dev/null
+++ b/docroot/js/mediaelement/lang/zh.js
@@ -0,0 +1,91 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Chinese (Traditional)
+ *
+ * @author
+ * Jalios (Twitter: @Jalios)
+ * Sascha Greuel (Twitter: @SoftCreatR)
+ * Peter Dave Hello (Twitter: @PeterDaveHello)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+ if (exports.zh === undefined) {
+ exports.zh = {
+ 'mejs.plural-form': 0,
+ 'mejs.download-file': '下載檔案',
+ 'mejs.install-flash': '您æ£åœ¨ä½¿ç”¨æœªå•Ÿç”¨æˆ–安è£Flashæ’放器的ç€è¦½å™¨ã€‚請打開您的Flash Playeræ’件,或從https://get.adobe.com/flashplayer/下載最新版本',
+ 'mejs.fullscreen': '全螢幕',
+ 'mejs.play': 'æ’放',
+ 'mejs.pause': 'æš«åœ',
+ 'mejs.time-slider': '時間軸',
+ 'mejs.time-help-text': '使用左/å³ç®é 快轉1秒,上/下ç®é 快轉10秒。',
+ 'mejs.live-broadcast' : 'ç¾å ´ç›´æ’',
+ 'mejs.volume-help-text': '使用上/下ç®é æ高或é™ä½ŽéŸ³é‡ã€‚',
+ 'mejs.unmute': 'å–消éœéŸ³',
+ 'mejs.mute': 'éœéŸ³',
+ 'mejs.volume-slider': '音é‡æŽ§åˆ¶éµ',
+ 'mejs.video-player': '影片æ’放器',
+ 'mejs.audio-player': '音樂æ’放器',
+ 'mejs.captions-subtitles': 'å—幕/標題',
+ 'mejs.captions-chapters': 'ç« ç¯€',
+ 'mejs.none': 'ç„¡',
+ 'mejs.afrikaans': 'å—éžè·è˜èªž',
+ 'mejs.albanian': '阿爾巴尼亞人',
+ 'mejs.arabic': '阿拉伯語',
+ 'mejs.belarusian': '白俄羅斯',
+ 'mejs.bulgarian': 'ä¿åŠ 利亞語',
+ 'mejs.catalan': 'åŠ æ³°ç¾…å°¼äºžèªž',
+ 'mejs.chinese': 'ä¸æ–‡',
+ 'mejs.chinese-simplified': '简体ä¸æ–‡',
+ 'mejs.chinese-traditional': 'æ£é«”ä¸æ–‡',
+ 'mejs.croatian': '克羅地亞語',
+ 'mejs.czech': 'æ·å…‹',
+ 'mejs.danish': '丹麥語',
+ 'mejs.dutch': 'è·è˜äºº',
+ 'mejs.english': '英語',
+ 'mejs.estonian': '愛沙尼亞語',
+ 'mejs.filipino': 'è²å¾‹è³“',
+ 'mejs.finnish': '芬è˜èªž',
+ 'mejs.french': '法語',
+ 'mejs.galician': 'åŠ åˆ©è¥¿äºž',
+ 'mejs.german': '德語',
+ 'mejs.greek': '希臘語',
+ 'mejs.haitian-creole': '海地克里奧爾人',
+ 'mejs.hebrew': '希伯來語',
+ 'mejs.hindi': 'å°åœ°èªž',
+ 'mejs.hungarian': '匈牙利',
+ 'mejs.icelandic': '冰島',
+ 'mejs.indonesian': 'å°å°¼èªž',
+ 'mejs.irish': '愛爾è˜',
+ 'mejs.italian': 'æ„大利語',
+ 'mejs.japanese': '日本',
+ 'mejs.korean': '韓國人',
+ 'mejs.latvian': '拉脫ç¶äºžäºº',
+ 'mejs.lithuanian': '立陶宛語',
+ 'mejs.macedonian': 'é¦¬å…¶é “',
+ 'mejs.malay': '馬來語',
+ 'mejs.maltese': '馬耳他',
+ 'mejs.norwegian': '挪å¨èªž',
+ 'mejs.persian': '波斯人',
+ 'mejs.polish': 'æ³¢è˜èªž',
+ 'mejs.portuguese': 'è‘¡è„牙語',
+ 'mejs.romanian': '羅馬尼亞語',
+ 'mejs.russian': 'ä¿„ç¾…æ–¯',
+ 'mejs.serbian': '塞爾ç¶äºžäºº',
+ 'mejs.slovak': '斯洛ä¼å…‹èªž',
+ 'mejs.slovenian': '斯洛文尼亞語',
+ 'mejs.spanish': '西ç牙語',
+ 'mejs.swahili': '斯瓦希里語',
+ 'mejs.swedish': '瑞典語',
+ 'mejs.tagalog': 'ä»–åŠ ç¥¿èªž',
+ 'mejs.thai': '泰國',
+ 'mejs.turkish': '土耳其語',
+ 'mejs.ukrainian': 'çƒå…‹è˜',
+ 'mejs.vietnamese': '越å—人',
+ 'mejs.welsh': 'å¨çˆ¾å£«',
+ 'mejs.yiddish': 'æ„第緒語'
+ };
+ }
+})(mejs.i18n);
diff --git a/docroot/js/mediaelement/mediaelement-and-player.js b/docroot/js/mediaelement/mediaelement-and-player.js
new file mode 100644
index 000000000..1abdce244
--- /dev/null
+++ b/docroot/js/mediaelement/mediaelement-and-player.js
@@ -0,0 +1,8522 @@
+/*!
+ * MediaElement.js
+ * http://www.mediaelementjs.com/
+ *
+ * Wrapper that mimics native HTML5 MediaElement (audio and video)
+ * using a variety of technologies (pure JavaScript, Flash, iframe)
+ *
+ * Copyright 2010-2017, John Dyer (http://j.hn/)
+ * License: MIT
+ *
+ */(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 1 && arguments[1] !== undefined ? arguments[1] : null;
+
+
+ if (typeof message === 'string' && message.length) {
+
+ var str = void 0,
+ pluralForm = void 0;
+
+ var language = i18n.language();
+
+ var _plural = function _plural(input, number, form) {
+
+ if ((typeof input === 'undefined' ? 'undefined' : _typeof(input)) !== 'object' || typeof number !== 'number' || typeof form !== 'number') {
+ return input;
+ }
+
+ var _pluralForms = function () {
+ return [function () {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ }, function () {
+ return (arguments.length <= 0 ? undefined : arguments[0]) === 1 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2];
+ }, function () {
+ return (arguments.length <= 0 ? undefined : arguments[0]) === 0 || (arguments.length <= 0 ? undefined : arguments[0]) === 1 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2];
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 !== 11) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) !== 0) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1 || (arguments.length <= 0 ? undefined : arguments[0]) === 11) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2 || (arguments.length <= 0 ? undefined : arguments[0]) === 12) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) > 2 && (arguments.length <= 0 ? undefined : arguments[0]) < 20) {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ } else {
+ return arguments.length <= 4 ? undefined : arguments[4];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 0 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 > 0 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 < 20) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 !== 11) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return [3];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 !== 11) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 <= 4 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) <= 4) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 <= 4 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 === 1) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 === 2) {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 === 3 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 === 4) {
+ return arguments.length <= 4 ? undefined : arguments[4];
+ } else {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) > 2 && (arguments.length <= 0 ? undefined : arguments[0]) < 7) {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) > 6 && (arguments.length <= 0 ? undefined : arguments[0]) < 11) {
+ return arguments.length <= 4 ? undefined : arguments[4];
+ } else {
+ return arguments.length <= 5 ? undefined : arguments[5];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 0) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 3 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 <= 10) {
+ return arguments.length <= 4 ? undefined : arguments[4];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 11) {
+ return arguments.length <= 5 ? undefined : arguments[5];
+ } else {
+ return arguments.length <= 6 ? undefined : arguments[6];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 0 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 > 1 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 < 11) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 100 > 10 && (arguments.length <= 0 ? undefined : arguments[0]) % 100 < 20) {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ } else {
+ return arguments.length <= 4 ? undefined : arguments[4];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 === 2) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }, function () {
+ return (arguments.length <= 0 ? undefined : arguments[0]) !== 11 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 === 1 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2];
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) % 10 >= 2 && (arguments.length <= 0 ? undefined : arguments[0]) % 10 <= 4 && ((arguments.length <= 0 ? undefined : arguments[0]) % 100 < 10 || (arguments.length <= 0 ? undefined : arguments[0]) % 100 >= 20)) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) !== 8 && (arguments.length <= 0 ? undefined : arguments[0]) !== 11) {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ } else {
+ return arguments.length <= 4 ? undefined : arguments[4];
+ }
+ }, function () {
+ return (arguments.length <= 0 ? undefined : arguments[0]) === 0 ? arguments.length <= 1 ? undefined : arguments[1] : arguments.length <= 2 ? undefined : arguments[2];
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 2) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 3) {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ } else {
+ return arguments.length <= 4 ? undefined : arguments[4];
+ }
+ }, function () {
+ if ((arguments.length <= 0 ? undefined : arguments[0]) === 0) {
+ return arguments.length <= 1 ? undefined : arguments[1];
+ } else if ((arguments.length <= 0 ? undefined : arguments[0]) === 1) {
+ return arguments.length <= 2 ? undefined : arguments[2];
+ } else {
+ return arguments.length <= 3 ? undefined : arguments[3];
+ }
+ }];
+ }();
+
+ return _pluralForms[form].apply(null, [number].concat(input));
+ };
+
+ if (i18n[language] !== undefined) {
+ str = i18n[language][message];
+ if (pluralParam !== null && typeof pluralParam === 'number') {
+ pluralForm = i18n[language]['mejs.plural-form'];
+ str = _plural.apply(null, [str, pluralParam, pluralForm]);
+ }
+ }
+
+ if (!str && i18n.en) {
+ str = i18n.en[message];
+ if (pluralParam !== null && typeof pluralParam === 'number') {
+ pluralForm = i18n.en['mejs.plural-form'];
+ str = _plural.apply(null, [str, pluralParam, pluralForm]);
+ }
+ }
+
+ str = str || message;
+
+ if (pluralParam !== null && typeof pluralParam === 'number') {
+ str = str.replace('%1', pluralParam);
+ }
+
+ return (0, _general.escapeHTML)(str);
+ }
+
+ return message;
+};
+
+_mejs2.default.i18n = i18n;
+
+if (typeof mejsL10n !== 'undefined') {
+ _mejs2.default.i18n.language(mejsL10n.language, mejsL10n.strings);
+}
+
+exports.default = i18n;
+
+},{"15":15,"27":27,"7":7}],6:[function(_dereq_,module,exports){
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _mejs = _dereq_(7);
+
+var _mejs2 = _interopRequireDefault(_mejs);
+
+var _general = _dereq_(27);
+
+var _media2 = _dereq_(28);
+
+var _renderer = _dereq_(8);
+
+var _constants = _dereq_(25);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var MediaElement = function MediaElement(idOrNode, options, sources) {
+ var _this = this;
+
+ _classCallCheck(this, MediaElement);
+
+ var t = this;
+
+ sources = Array.isArray(sources) ? sources : null;
+
+ t.defaults = {
+ renderers: [],
+
+ fakeNodeName: 'mediaelementwrapper',
+
+ pluginPath: 'build/',
+
+ shimScriptAccess: 'sameDomain'
+ };
+
+ options = Object.assign(t.defaults, options);
+
+ t.mediaElement = _document2.default.createElement(options.fakeNodeName);
+
+ var id = idOrNode,
+ error = false;
+
+ if (typeof idOrNode === 'string') {
+ t.mediaElement.originalNode = _document2.default.getElementById(idOrNode);
+ } else {
+ t.mediaElement.originalNode = idOrNode;
+ id = idOrNode.id;
+ }
+
+ if (t.mediaElement.originalNode === undefined || t.mediaElement.originalNode === null) {
+ return null;
+ }
+
+ t.mediaElement.options = options;
+ id = id || 'mejs_' + Math.random().toString().slice(2);
+
+ t.mediaElement.originalNode.setAttribute('id', id + '_from_mejs');
+
+ var tagName = t.mediaElement.originalNode.tagName.toLowerCase();
+ if (['video', 'audio'].indexOf(tagName) > -1 && !t.mediaElement.originalNode.getAttribute('preload')) {
+ t.mediaElement.originalNode.setAttribute('preload', 'none');
+ }
+
+ t.mediaElement.originalNode.parentNode.insertBefore(t.mediaElement, t.mediaElement.originalNode);
+
+ t.mediaElement.appendChild(t.mediaElement.originalNode);
+
+ var processURL = function processURL(url, type) {
+ if (_window2.default.location.protocol === 'https:' && url.indexOf('http:') === 0 && _constants.IS_IOS && _mejs2.default.html5media.mediaTypes.indexOf(type) > -1) {
+ var xhr = new XMLHttpRequest();
+ xhr.onreadystatechange = function () {
+ if (this.readyState === 4 && this.status === 200) {
+ var _url = _window2.default.URL || _window2.default.webkitURL,
+ blobUrl = _url.createObjectURL(this.response);
+ t.mediaElement.originalNode.setAttribute('src', blobUrl);
+ return blobUrl;
+ }
+ return url;
+ };
+ xhr.open('GET', url);
+ xhr.responseType = 'blob';
+ xhr.send();
+ }
+
+ return url;
+ };
+
+ var mediaFiles = void 0;
+
+ if (sources !== null) {
+ mediaFiles = sources;
+ } else if (t.mediaElement.originalNode !== null) {
+
+ mediaFiles = [];
+
+ switch (t.mediaElement.originalNode.nodeName.toLowerCase()) {
+ case 'iframe':
+ mediaFiles.push({
+ type: '',
+ src: t.mediaElement.originalNode.getAttribute('src')
+ });
+ break;
+ case 'audio':
+ case 'video':
+ var _sources = t.mediaElement.originalNode.children.length,
+ nodeSource = t.mediaElement.originalNode.getAttribute('src');
+
+ if (nodeSource) {
+ var node = t.mediaElement.originalNode,
+ type = (0, _media2.formatType)(nodeSource, node.getAttribute('type'));
+ mediaFiles.push({
+ type: type,
+ src: processURL(nodeSource, type)
+ });
+ }
+
+ for (var i = 0; i < _sources; i++) {
+ var n = t.mediaElement.originalNode.children[i];
+ if (n.tagName.toLowerCase() === 'source') {
+ var src = n.getAttribute('src'),
+ _type = (0, _media2.formatType)(src, n.getAttribute('type'));
+ mediaFiles.push({ type: _type, src: processURL(src, _type) });
+ }
+ }
+ break;
+ }
+ }
+
+ t.mediaElement.id = id;
+ t.mediaElement.renderers = {};
+ t.mediaElement.events = {};
+ t.mediaElement.promises = [];
+ t.mediaElement.renderer = null;
+ t.mediaElement.rendererName = null;
+
+ t.mediaElement.changeRenderer = function (rendererName, mediaFiles) {
+
+ var t = _this,
+ media = Object.keys(mediaFiles[0]).length > 2 ? mediaFiles[0] : mediaFiles[0].src;
+
+ if (t.mediaElement.renderer !== undefined && t.mediaElement.renderer !== null && t.mediaElement.renderer.name === rendererName) {
+ t.mediaElement.renderer.pause();
+ if (t.mediaElement.renderer.stop) {
+ t.mediaElement.renderer.stop();
+ }
+ t.mediaElement.renderer.show();
+ t.mediaElement.renderer.setSrc(media);
+ return true;
+ }
+
+ if (t.mediaElement.renderer !== undefined && t.mediaElement.renderer !== null) {
+ t.mediaElement.renderer.pause();
+ if (t.mediaElement.renderer.stop) {
+ t.mediaElement.renderer.stop();
+ }
+ t.mediaElement.renderer.hide();
+ }
+
+ var newRenderer = t.mediaElement.renderers[rendererName],
+ newRendererType = null;
+
+ if (newRenderer !== undefined && newRenderer !== null) {
+ newRenderer.show();
+ newRenderer.setSrc(media);
+ t.mediaElement.renderer = newRenderer;
+ t.mediaElement.rendererName = rendererName;
+ return true;
+ }
+
+ var rendererArray = t.mediaElement.options.renderers.length ? t.mediaElement.options.renderers : _renderer.renderer.order;
+
+ for (var _i = 0, total = rendererArray.length; _i < total; _i++) {
+ var index = rendererArray[_i];
+
+ if (index === rendererName) {
+ var rendererList = _renderer.renderer.renderers;
+ newRendererType = rendererList[index];
+
+ var renderOptions = Object.assign(newRendererType.options, t.mediaElement.options);
+ newRenderer = newRendererType.create(t.mediaElement, renderOptions, mediaFiles);
+ newRenderer.name = rendererName;
+
+ t.mediaElement.renderers[newRendererType.name] = newRenderer;
+ t.mediaElement.renderer = newRenderer;
+ t.mediaElement.rendererName = rendererName;
+ newRenderer.show();
+ return true;
+ }
+ }
+
+ return false;
+ };
+
+ t.mediaElement.setSize = function (width, height) {
+ if (t.mediaElement.renderer !== undefined && t.mediaElement.renderer !== null) {
+ t.mediaElement.renderer.setSize(width, height);
+ }
+ };
+
+ t.mediaElement.generateError = function (message, urlList) {
+ message = message || '';
+ urlList = Array.isArray(urlList) ? urlList : [];
+ var event = (0, _general.createEvent)('error', t.mediaElement);
+ event.message = message;
+ event.urls = urlList;
+ t.mediaElement.dispatchEvent(event);
+ error = true;
+ };
+
+ var props = _mejs2.default.html5media.properties,
+ methods = _mejs2.default.html5media.methods,
+ addProperty = function addProperty(obj, name, onGet, onSet) {
+ var oldValue = obj[name];
+ var getFn = function getFn() {
+ return onGet.apply(obj, [oldValue]);
+ },
+ setFn = function setFn(newValue) {
+ oldValue = onSet.apply(obj, [newValue]);
+ return oldValue;
+ };
+
+ Object.defineProperty(obj, name, {
+ get: getFn,
+ set: setFn
+ });
+ },
+ assignGettersSetters = function assignGettersSetters(propName) {
+ if (propName !== 'src') {
+
+ var capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1),
+ getFn = function getFn() {
+ return t.mediaElement.renderer !== undefined && t.mediaElement.renderer !== null && typeof t.mediaElement.renderer['get' + capName] === 'function' ? t.mediaElement.renderer['get' + capName]() : null;
+ },
+ setFn = function setFn(value) {
+ if (t.mediaElement.renderer !== undefined && t.mediaElement.renderer !== null && typeof t.mediaElement.renderer['set' + capName] === 'function') {
+ t.mediaElement.renderer['set' + capName](value);
+ }
+ };
+
+ addProperty(t.mediaElement, propName, getFn, setFn);
+ t.mediaElement['get' + capName] = getFn;
+ t.mediaElement['set' + capName] = setFn;
+ }
+ },
+ getSrc = function getSrc() {
+ return t.mediaElement.renderer !== undefined && t.mediaElement.renderer !== null ? t.mediaElement.renderer.getSrc() : null;
+ },
+ setSrc = function setSrc(value) {
+ var mediaFiles = [];
+
+ if (typeof value === 'string') {
+ mediaFiles.push({
+ src: value,
+ type: value ? (0, _media2.getTypeFromFile)(value) : ''
+ });
+ } else if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.src !== undefined) {
+ var _src = (0, _media2.absolutizeUrl)(value.src),
+ _type2 = value.type,
+ media = Object.assign(value, {
+ src: _src,
+ type: (_type2 === '' || _type2 === null || _type2 === undefined) && _src ? (0, _media2.getTypeFromFile)(_src) : _type2
+ });
+ mediaFiles.push(media);
+ } else if (Array.isArray(value)) {
+ for (var _i2 = 0, total = value.length; _i2 < total; _i2++) {
+
+ var _src2 = (0, _media2.absolutizeUrl)(value[_i2].src),
+ _type3 = value[_i2].type,
+ _media = Object.assign(value[_i2], {
+ src: _src2,
+ type: (_type3 === '' || _type3 === null || _type3 === undefined) && _src2 ? (0, _media2.getTypeFromFile)(_src2) : _type3
+ });
+
+ mediaFiles.push(_media);
+ }
+ }
+
+ var renderInfo = _renderer.renderer.select(mediaFiles, t.mediaElement.options.renderers.length ? t.mediaElement.options.renderers : []),
+ event = void 0;
+
+ if (!t.mediaElement.paused) {
+ t.mediaElement.pause();
+ event = (0, _general.createEvent)('pause', t.mediaElement);
+ t.mediaElement.dispatchEvent(event);
+ }
+ t.mediaElement.originalNode.src = mediaFiles[0].src || '';
+
+ if (renderInfo === null && mediaFiles[0].src) {
+ t.mediaElement.generateError('No renderer found', mediaFiles);
+ return;
+ }
+
+ return mediaFiles[0].src ? t.mediaElement.changeRenderer(renderInfo.rendererName, mediaFiles) : null;
+ },
+ triggerAction = function triggerAction(methodName, args) {
+ try {
+ if (methodName === 'play' && t.mediaElement.rendererName === 'native_dash') {
+ var response = t.mediaElement.renderer[methodName](args);
+ if (response && typeof response.then === 'function') {
+ response.catch(function () {
+ if (t.mediaElement.paused) {
+ setTimeout(function () {
+ var tmpResponse = t.mediaElement.renderer.play();
+ if (tmpResponse !== undefined) {
+ tmpResponse.catch(function () {
+ if (!t.mediaElement.renderer.paused) {
+ t.mediaElement.renderer.pause();
+ }
+ });
+ }
+ }, 150);
+ }
+ });
+ }
+ } else {
+ t.mediaElement.renderer[methodName](args);
+ }
+ } catch (e) {
+ t.mediaElement.generateError(e, mediaFiles);
+ }
+ },
+ assignMethods = function assignMethods(methodName) {
+ t.mediaElement[methodName] = function () {
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ if (t.mediaElement.renderer !== undefined && t.mediaElement.renderer !== null && typeof t.mediaElement.renderer[methodName] === 'function') {
+ if (t.mediaElement.promises.length) {
+ Promise.all(t.mediaElement.promises).then(function () {
+ triggerAction(methodName, args);
+ }).catch(function (e) {
+ t.mediaElement.generateError(e, mediaFiles);
+ });
+ } else {
+ triggerAction(methodName, args);
+ }
+ }
+ return null;
+ };
+ };
+
+ addProperty(t.mediaElement, 'src', getSrc, setSrc);
+ t.mediaElement.getSrc = getSrc;
+ t.mediaElement.setSrc = setSrc;
+
+ for (var _i3 = 0, total = props.length; _i3 < total; _i3++) {
+ assignGettersSetters(props[_i3]);
+ }
+
+ for (var _i4 = 0, _total = methods.length; _i4 < _total; _i4++) {
+ assignMethods(methods[_i4]);
+ }
+
+ t.mediaElement.addEventListener = function (eventName, callback) {
+ t.mediaElement.events[eventName] = t.mediaElement.events[eventName] || [];
+
+ t.mediaElement.events[eventName].push(callback);
+ };
+ t.mediaElement.removeEventListener = function (eventName, callback) {
+ if (!eventName) {
+ t.mediaElement.events = {};
+ return true;
+ }
+
+ var callbacks = t.mediaElement.events[eventName];
+
+ if (!callbacks) {
+ return true;
+ }
+
+ if (!callback) {
+ t.mediaElement.events[eventName] = [];
+ return true;
+ }
+
+ for (var _i5 = 0; _i5 < callbacks.length; _i5++) {
+ if (callbacks[_i5] === callback) {
+ t.mediaElement.events[eventName].splice(_i5, 1);
+ return true;
+ }
+ }
+ return false;
+ };
+
+ t.mediaElement.dispatchEvent = function (event) {
+ var callbacks = t.mediaElement.events[event.type];
+ if (callbacks) {
+ for (var _i6 = 0; _i6 < callbacks.length; _i6++) {
+ callbacks[_i6].apply(null, [event]);
+ }
+ }
+ };
+
+ t.mediaElement.destroy = function () {
+ var mediaElement = t.mediaElement.originalNode.cloneNode(true);
+ var wrapper = t.mediaElement.parentElement;
+ mediaElement.removeAttribute('id');
+ mediaElement.remove();
+ t.mediaElement.remove();
+ wrapper.append(mediaElement);
+ };
+
+ if (mediaFiles.length) {
+ t.mediaElement.src = mediaFiles;
+ }
+
+ if (t.mediaElement.promises.length) {
+ Promise.all(t.mediaElement.promises).then(function () {
+ if (t.mediaElement.options.success) {
+ t.mediaElement.options.success(t.mediaElement, t.mediaElement.originalNode);
+ }
+ }).catch(function () {
+ if (error && t.mediaElement.options.error) {
+ t.mediaElement.options.error(t.mediaElement, t.mediaElement.originalNode);
+ }
+ });
+ } else {
+ if (t.mediaElement.options.success) {
+ t.mediaElement.options.success(t.mediaElement, t.mediaElement.originalNode);
+ }
+
+ if (error && t.mediaElement.options.error) {
+ t.mediaElement.options.error(t.mediaElement, t.mediaElement.originalNode);
+ }
+ }
+
+ return t.mediaElement;
+};
+
+_window2.default.MediaElement = MediaElement;
+_mejs2.default.MediaElement = MediaElement;
+
+exports.default = MediaElement;
+
+},{"2":2,"25":25,"27":27,"28":28,"3":3,"7":7,"8":8}],7:[function(_dereq_,module,exports){
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var mejs = {};
+
+mejs.version = '4.2.9';
+
+mejs.html5media = {
+ properties: ['volume', 'src', 'currentTime', 'muted', 'duration', 'paused', 'ended', 'buffered', 'error', 'networkState', 'readyState', 'seeking', 'seekable', 'currentSrc', 'preload', 'bufferedBytes', 'bufferedTime', 'initialTime', 'startOffsetTime', 'defaultPlaybackRate', 'playbackRate', 'played', 'autoplay', 'loop', 'controls'],
+ readOnlyProperties: ['duration', 'paused', 'ended', 'buffered', 'error', 'networkState', 'readyState', 'seeking', 'seekable'],
+
+ methods: ['load', 'play', 'pause', 'canPlayType'],
+
+ events: ['loadstart', 'durationchange', 'loadedmetadata', 'loadeddata', 'progress', 'canplay', 'canplaythrough', 'suspend', 'abort', 'error', 'emptied', 'stalled', 'play', 'playing', 'pause', 'waiting', 'seeking', 'seeked', 'timeupdate', 'ended', 'ratechange', 'volumechange'],
+
+ mediaTypes: ['audio/mp3', 'audio/ogg', 'audio/oga', 'audio/wav', 'audio/x-wav', 'audio/wave', 'audio/x-pn-wav', 'audio/mpeg', 'audio/mp4', 'video/mp4', 'video/webm', 'video/ogg', 'video/ogv']
+};
+
+_window2.default.mejs = mejs;
+
+exports.default = mejs;
+
+},{"3":3}],8:[function(_dereq_,module,exports){
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.renderer = undefined;
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _mejs = _dereq_(7);
+
+var _mejs2 = _interopRequireDefault(_mejs);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var Renderer = function () {
+ function Renderer() {
+ _classCallCheck(this, Renderer);
+
+ this.renderers = {};
+ this.order = [];
+ }
+
+ _createClass(Renderer, [{
+ key: 'add',
+ value: function add(renderer) {
+ if (renderer.name === undefined) {
+ throw new TypeError('renderer must contain at least `name` property');
+ }
+
+ this.renderers[renderer.name] = renderer;
+ this.order.push(renderer.name);
+ }
+ }, {
+ key: 'select',
+ value: function select(mediaFiles) {
+ var renderers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
+
+ var renderersLength = renderers.length;
+
+ renderers = renderers.length ? renderers : this.order;
+
+ if (!renderersLength) {
+ var rendererIndicator = [/^(html5|native)/i, /^flash/i, /iframe$/i],
+ rendererRanking = function rendererRanking(renderer) {
+ for (var i = 0, total = rendererIndicator.length; i < total; i++) {
+ if (rendererIndicator[i].test(renderer)) {
+ return i;
+ }
+ }
+ return rendererIndicator.length;
+ };
+
+ renderers.sort(function (a, b) {
+ return rendererRanking(a) - rendererRanking(b);
+ });
+ }
+
+ for (var i = 0, total = renderers.length; i < total; i++) {
+ var key = renderers[i],
+ _renderer = this.renderers[key];
+
+ if (_renderer !== null && _renderer !== undefined) {
+ for (var j = 0, jl = mediaFiles.length; j < jl; j++) {
+ if (typeof _renderer.canPlayType === 'function' && typeof mediaFiles[j].type === 'string' && _renderer.canPlayType(mediaFiles[j].type)) {
+ return {
+ rendererName: _renderer.name,
+ src: mediaFiles[j].src
+ };
+ }
+ }
+ }
+ }
+
+ return null;
+ }
+ }, {
+ key: 'order',
+ set: function set(order) {
+ if (!Array.isArray(order)) {
+ throw new TypeError('order must be an array of strings.');
+ }
+
+ this._order = order;
+ },
+ get: function get() {
+ return this._order;
+ }
+ }, {
+ key: 'renderers',
+ set: function set(renderers) {
+ if (renderers !== null && (typeof renderers === 'undefined' ? 'undefined' : _typeof(renderers)) !== 'object') {
+ throw new TypeError('renderers must be an array of objects.');
+ }
+
+ this._renderers = renderers;
+ },
+ get: function get() {
+ return this._renderers;
+ }
+ }]);
+
+ return Renderer;
+}();
+
+var renderer = exports.renderer = new Renderer();
+
+_mejs2.default.Renderers = renderer;
+
+},{"7":7}],9:[function(_dereq_,module,exports){
+'use strict';
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _i18n = _dereq_(5);
+
+var _i18n2 = _interopRequireDefault(_i18n);
+
+var _player = _dereq_(16);
+
+var _player2 = _interopRequireDefault(_player);
+
+var _constants = _dereq_(25);
+
+var Features = _interopRequireWildcard(_constants);
+
+var _general = _dereq_(27);
+
+var _dom = _dereq_(26);
+
+var _media = _dereq_(28);
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+Object.assign(_player.config, {
+ usePluginFullScreen: true,
+
+ fullscreenText: null,
+
+ useFakeFullscreen: false
+});
+
+Object.assign(_player2.default.prototype, {
+ isFullScreen: false,
+
+ isNativeFullScreen: false,
+
+ isInIframe: false,
+
+ isPluginClickThroughCreated: false,
+
+ fullscreenMode: '',
+
+ containerSizeTimeout: null,
+
+ buildfullscreen: function buildfullscreen(player) {
+ if (!player.isVideo) {
+ return;
+ }
+
+ player.isInIframe = _window2.default.location !== _window2.default.parent.location;
+
+ player.detectFullscreenMode();
+
+ var t = this,
+ fullscreenTitle = (0, _general.isString)(t.options.fullscreenText) ? t.options.fullscreenText : _i18n2.default.t('mejs.fullscreen'),
+ fullscreenBtn = _document2.default.createElement('div');
+
+ fullscreenBtn.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'fullscreen-button';
+ fullscreenBtn.innerHTML = '';
+ t.addControlElement(fullscreenBtn, 'fullscreen');
+
+ fullscreenBtn.addEventListener('click', function () {
+ var isFullScreen = Features.HAS_TRUE_NATIVE_FULLSCREEN && Features.IS_FULLSCREEN || player.isFullScreen;
+
+ if (isFullScreen) {
+ player.exitFullScreen();
+ } else {
+ player.enterFullScreen();
+ }
+ });
+
+ player.fullscreenBtn = fullscreenBtn;
+
+ t.options.keyActions.push({
+ keys: [70],
+ action: function action(player, media, key, event) {
+ if (!event.ctrlKey) {
+ if (typeof player.enterFullScreen !== 'undefined') {
+ if (player.isFullScreen) {
+ player.exitFullScreen();
+ } else {
+ player.enterFullScreen();
+ }
+ }
+ }
+ }
+ });
+
+ t.exitFullscreenCallback = function (e) {
+ var key = e.which || e.keyCode || 0;
+ if (t.options.enableKeyboard && key === 27 && (Features.HAS_TRUE_NATIVE_FULLSCREEN && Features.IS_FULLSCREEN || t.isFullScreen)) {
+ player.exitFullScreen();
+ }
+ };
+
+ t.globalBind('keydown', t.exitFullscreenCallback);
+
+ t.normalHeight = 0;
+ t.normalWidth = 0;
+
+ if (Features.HAS_TRUE_NATIVE_FULLSCREEN) {
+ var fullscreenChanged = function fullscreenChanged() {
+ if (player.isFullScreen) {
+ if (Features.isFullScreen()) {
+ player.isNativeFullScreen = true;
+
+ player.setControlsSize();
+ } else {
+ player.isNativeFullScreen = false;
+
+ player.exitFullScreen();
+ }
+ }
+ };
+
+ player.globalBind(Features.FULLSCREEN_EVENT_NAME, fullscreenChanged);
+ }
+ },
+ cleanfullscreen: function cleanfullscreen(player) {
+ player.exitFullScreen();
+ player.globalUnbind('keydown', player.exitFullscreenCallback);
+ },
+ detectFullscreenMode: function detectFullscreenMode() {
+ var t = this,
+ isNative = t.media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName);
+
+ var mode = '';
+
+ if (Features.HAS_TRUE_NATIVE_FULLSCREEN && isNative) {
+ mode = 'native-native';
+ } else if (Features.HAS_TRUE_NATIVE_FULLSCREEN && !isNative) {
+ mode = 'plugin-native';
+ } else if (t.usePluginFullScreen && Features.SUPPORT_POINTER_EVENTS) {
+ mode = 'plugin-click';
+ }
+
+ t.fullscreenMode = mode;
+ return mode;
+ },
+ enterFullScreen: function enterFullScreen() {
+ var t = this,
+ isNative = t.media.rendererName !== null && /(html5|native)/i.test(t.media.rendererName),
+ containerStyles = getComputedStyle(t.getElement(t.container));
+
+ if (!t.isVideo) {
+ return;
+ }
+
+ if (t.options.useFakeFullscreen === false && Features.IS_IOS && Features.HAS_IOS_FULLSCREEN && typeof t.media.originalNode.webkitEnterFullscreen === 'function' && t.media.originalNode.canPlayType((0, _media.getTypeFromFile)(t.media.getSrc()))) {
+ t.media.originalNode.webkitEnterFullscreen();
+ return;
+ }
+
+ (0, _dom.addClass)(_document2.default.documentElement, t.options.classPrefix + 'fullscreen');
+ (0, _dom.addClass)(t.getElement(t.container), t.options.classPrefix + 'container-fullscreen');
+
+ t.normalHeight = parseFloat(containerStyles.height);
+ t.normalWidth = parseFloat(containerStyles.width);
+
+ if (t.fullscreenMode === 'native-native' || t.fullscreenMode === 'plugin-native') {
+ Features.requestFullScreen(t.getElement(t.container));
+
+ if (t.isInIframe) {
+ setTimeout(function checkFullscreen() {
+
+ if (t.isNativeFullScreen) {
+ var percentErrorMargin = 0.002,
+ windowWidth = _window2.default.innerWidth || _document2.default.documentElement.clientWidth || _document2.default.body.clientWidth,
+ screenWidth = screen.width,
+ absDiff = Math.abs(screenWidth - windowWidth),
+ marginError = screenWidth * percentErrorMargin;
+
+ if (absDiff > marginError) {
+ t.exitFullScreen();
+ } else {
+ setTimeout(checkFullscreen, 500);
+ }
+ }
+ }, 1000);
+ }
+ }
+
+ t.getElement(t.container).style.width = '100%';
+ t.getElement(t.container).style.height = '100%';
+
+ t.containerSizeTimeout = setTimeout(function () {
+ t.getElement(t.container).style.width = '100%';
+ t.getElement(t.container).style.height = '100%';
+ t.setControlsSize();
+ }, 500);
+
+ if (isNative) {
+ t.node.style.width = '100%';
+ t.node.style.height = '100%';
+ } else {
+ var elements = t.getElement(t.container).querySelectorAll('embed, object, video'),
+ _total = elements.length;
+ for (var i = 0; i < _total; i++) {
+ elements[i].style.width = '100%';
+ elements[i].style.height = '100%';
+ }
+ }
+
+ if (t.options.setDimensions && typeof t.media.setSize === 'function') {
+ t.media.setSize(screen.width, screen.height);
+ }
+
+ var layers = t.getElement(t.layers).children,
+ total = layers.length;
+ for (var _i = 0; _i < total; _i++) {
+ layers[_i].style.width = '100%';
+ layers[_i].style.height = '100%';
+ }
+
+ if (t.fullscreenBtn) {
+ (0, _dom.removeClass)(t.fullscreenBtn, t.options.classPrefix + 'fullscreen');
+ (0, _dom.addClass)(t.fullscreenBtn, t.options.classPrefix + 'unfullscreen');
+ }
+
+ t.setControlsSize();
+ t.isFullScreen = true;
+
+ var zoomFactor = Math.min(screen.width / t.width, screen.height / t.height),
+ captionText = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'captions-text');
+ if (captionText) {
+ captionText.style.fontSize = zoomFactor * 100 + '%';
+ captionText.style.lineHeight = 'normal';
+ t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'captions-position').style.bottom = (screen.height - t.normalHeight) / 2 - t.getElement(t.controls).offsetHeight / 2 + zoomFactor + 15 + 'px';
+ }
+ var event = (0, _general.createEvent)('enteredfullscreen', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ },
+ exitFullScreen: function exitFullScreen() {
+ var t = this,
+ isNative = t.media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName);
+
+ if (!t.isVideo) {
+ return;
+ }
+
+ clearTimeout(t.containerSizeTimeout);
+
+ if (Features.HAS_TRUE_NATIVE_FULLSCREEN && (Features.IS_FULLSCREEN || t.isFullScreen)) {
+ Features.cancelFullScreen();
+ }
+
+ (0, _dom.removeClass)(_document2.default.documentElement, t.options.classPrefix + 'fullscreen');
+ (0, _dom.removeClass)(t.getElement(t.container), t.options.classPrefix + 'container-fullscreen');
+
+ if (t.options.setDimensions) {
+ t.getElement(t.container).style.width = t.normalWidth + 'px';
+ t.getElement(t.container).style.height = t.normalHeight + 'px';
+
+ if (isNative) {
+ t.node.style.width = t.normalWidth + 'px';
+ t.node.style.height = t.normalHeight + 'px';
+ } else {
+ var elements = t.getElement(t.container).querySelectorAll('embed, object, video'),
+ _total2 = elements.length;
+ for (var i = 0; i < _total2; i++) {
+ elements[i].style.width = t.normalWidth + 'px';
+ elements[i].style.height = t.normalHeight + 'px';
+ }
+ }
+
+ if (typeof t.media.setSize === 'function') {
+ t.media.setSize(t.normalWidth, t.normalHeight);
+ }
+
+ var layers = t.getElement(t.layers).children,
+ total = layers.length;
+ for (var _i2 = 0; _i2 < total; _i2++) {
+ layers[_i2].style.width = t.normalWidth + 'px';
+ layers[_i2].style.height = t.normalHeight + 'px';
+ }
+ }
+
+ if (t.fullscreenBtn) {
+ (0, _dom.removeClass)(t.fullscreenBtn, t.options.classPrefix + 'unfullscreen');
+ (0, _dom.addClass)(t.fullscreenBtn, t.options.classPrefix + 'fullscreen');
+ }
+
+ t.setControlsSize();
+ t.isFullScreen = false;
+
+ var captionText = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'captions-text');
+ if (captionText) {
+ captionText.style.fontSize = '';
+ captionText.style.lineHeight = '';
+ t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'captions-position').style.bottom = '';
+ }
+ var event = (0, _general.createEvent)('exitedfullscreen', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ }
+});
+
+},{"16":16,"2":2,"25":25,"26":26,"27":27,"28":28,"3":3,"5":5}],10:[function(_dereq_,module,exports){
+'use strict';
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _player = _dereq_(16);
+
+var _player2 = _interopRequireDefault(_player);
+
+var _i18n = _dereq_(5);
+
+var _i18n2 = _interopRequireDefault(_i18n);
+
+var _general = _dereq_(27);
+
+var _dom = _dereq_(26);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+Object.assign(_player.config, {
+ playText: null,
+
+ pauseText: null
+});
+
+Object.assign(_player2.default.prototype, {
+ buildplaypause: function buildplaypause(player, controls, layers, media) {
+ var t = this,
+ op = t.options,
+ playTitle = (0, _general.isString)(op.playText) ? op.playText : _i18n2.default.t('mejs.play'),
+ pauseTitle = (0, _general.isString)(op.pauseText) ? op.pauseText : _i18n2.default.t('mejs.pause'),
+ play = _document2.default.createElement('div');
+
+ play.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'playpause-button ' + t.options.classPrefix + 'play';
+ play.innerHTML = '';
+ play.addEventListener('click', function () {
+ if (t.paused) {
+ t.play();
+ } else {
+ t.pause();
+ }
+ });
+
+ var playBtn = play.querySelector('button');
+ t.addControlElement(play, 'playpause');
+
+ function togglePlayPause(which) {
+ if ('play' === which) {
+ (0, _dom.removeClass)(play, t.options.classPrefix + 'play');
+ (0, _dom.removeClass)(play, t.options.classPrefix + 'replay');
+ (0, _dom.addClass)(play, t.options.classPrefix + 'pause');
+ playBtn.setAttribute('title', pauseTitle);
+ playBtn.setAttribute('aria-label', pauseTitle);
+ } else {
+
+ (0, _dom.removeClass)(play, t.options.classPrefix + 'pause');
+ (0, _dom.removeClass)(play, t.options.classPrefix + 'replay');
+ (0, _dom.addClass)(play, t.options.classPrefix + 'play');
+ playBtn.setAttribute('title', playTitle);
+ playBtn.setAttribute('aria-label', playTitle);
+ }
+ }
+
+ togglePlayPause('pse');
+
+ media.addEventListener('loadedmetadata', function () {
+ if (media.rendererName.indexOf('flash') === -1) {
+ togglePlayPause('pse');
+ }
+ });
+ media.addEventListener('play', function () {
+ togglePlayPause('play');
+ });
+ media.addEventListener('playing', function () {
+ togglePlayPause('play');
+ });
+ media.addEventListener('pause', function () {
+ togglePlayPause('pse');
+ });
+ media.addEventListener('ended', function () {
+ if (!player.options.loop) {
+ (0, _dom.removeClass)(play, t.options.classPrefix + 'pause');
+ (0, _dom.removeClass)(play, t.options.classPrefix + 'play');
+ (0, _dom.addClass)(play, t.options.classPrefix + 'replay');
+ playBtn.setAttribute('title', playTitle);
+ playBtn.setAttribute('aria-label', playTitle);
+ }
+ });
+ }
+});
+
+},{"16":16,"2":2,"26":26,"27":27,"5":5}],11:[function(_dereq_,module,exports){
+'use strict';
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _player = _dereq_(16);
+
+var _player2 = _interopRequireDefault(_player);
+
+var _i18n = _dereq_(5);
+
+var _i18n2 = _interopRequireDefault(_i18n);
+
+var _constants = _dereq_(25);
+
+var _time = _dereq_(30);
+
+var _dom = _dereq_(26);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+Object.assign(_player.config, {
+ enableProgressTooltip: true,
+
+ useSmoothHover: true,
+
+ forceLive: false
+});
+
+Object.assign(_player2.default.prototype, {
+ buildprogress: function buildprogress(player, controls, layers, media) {
+
+ var lastKeyPressTime = 0,
+ mouseIsDown = false,
+ startedPaused = false;
+
+ var t = this,
+ autoRewindInitial = player.options.autoRewind,
+ tooltip = player.options.enableProgressTooltip ? '' + ('00:00') + ('') + '' : '',
+ rail = _document2.default.createElement('div');
+
+ rail.className = t.options.classPrefix + 'time-rail';
+ rail.innerHTML = '' + ('') + ('') + ('') + ('') + ('') + ('' + tooltip) + '';
+
+ t.addControlElement(rail, 'progress');
+
+ t.options.keyActions.push({
+ keys: [37, 227],
+ action: function action(player) {
+ if (!isNaN(player.duration) && player.duration > 0) {
+ if (player.isVideo) {
+ player.showControls();
+ player.startControlsTimer();
+ }
+
+ player.getElement(player.container).querySelector('.' + _player.config.classPrefix + 'time-total').focus();
+
+ var newTime = Math.max(player.currentTime - player.options.defaultSeekBackwardInterval(player), 0);
+ player.setCurrentTime(newTime);
+ }
+ }
+ }, {
+ keys: [39, 228],
+ action: function action(player) {
+
+ if (!isNaN(player.duration) && player.duration > 0) {
+ if (player.isVideo) {
+ player.showControls();
+ player.startControlsTimer();
+ }
+
+ player.getElement(player.container).querySelector('.' + _player.config.classPrefix + 'time-total').focus();
+
+ var newTime = Math.min(player.currentTime + player.options.defaultSeekForwardInterval(player), player.duration);
+ player.setCurrentTime(newTime);
+ }
+ }
+ });
+
+ t.rail = controls.querySelector('.' + t.options.classPrefix + 'time-rail');
+ t.total = controls.querySelector('.' + t.options.classPrefix + 'time-total');
+ t.loaded = controls.querySelector('.' + t.options.classPrefix + 'time-loaded');
+ t.current = controls.querySelector('.' + t.options.classPrefix + 'time-current');
+ t.handle = controls.querySelector('.' + t.options.classPrefix + 'time-handle');
+ t.timefloat = controls.querySelector('.' + t.options.classPrefix + 'time-float');
+ t.timefloatcurrent = controls.querySelector('.' + t.options.classPrefix + 'time-float-current');
+ t.slider = controls.querySelector('.' + t.options.classPrefix + 'time-slider');
+ t.hovered = controls.querySelector('.' + t.options.classPrefix + 'time-hovered');
+ t.buffer = controls.querySelector('.' + t.options.classPrefix + 'time-buffering');
+ t.newTime = 0;
+ t.forcedHandlePause = false;
+ t.setTransformStyle = function (element, value) {
+ element.style.transform = value;
+ element.style.webkitTransform = value;
+ element.style.MozTransform = value;
+ element.style.msTransform = value;
+ element.style.OTransform = value;
+ };
+
+ t.buffer.style.display = 'none';
+
+ var handleMouseMove = function handleMouseMove(e) {
+ var totalStyles = getComputedStyle(t.total),
+ offsetStyles = (0, _dom.offset)(t.total),
+ width = t.total.offsetWidth,
+ transform = function () {
+ if (totalStyles.webkitTransform !== undefined) {
+ return 'webkitTransform';
+ } else if (totalStyles.mozTransform !== undefined) {
+ return 'mozTransform ';
+ } else if (totalStyles.oTransform !== undefined) {
+ return 'oTransform';
+ } else if (totalStyles.msTransform !== undefined) {
+ return 'msTransform';
+ } else {
+ return 'transform';
+ }
+ }(),
+ cssMatrix = function () {
+ if ('WebKitCSSMatrix' in window) {
+ return 'WebKitCSSMatrix';
+ } else if ('MSCSSMatrix' in window) {
+ return 'MSCSSMatrix';
+ } else if ('CSSMatrix' in window) {
+ return 'CSSMatrix';
+ }
+ }();
+
+ var percentage = 0,
+ leftPos = 0,
+ pos = 0,
+ x = void 0;
+
+ if (e.originalEvent && e.originalEvent.changedTouches) {
+ x = e.originalEvent.changedTouches[0].pageX;
+ } else if (e.changedTouches) {
+ x = e.changedTouches[0].pageX;
+ } else {
+ x = e.pageX;
+ }
+
+ if (t.getDuration()) {
+ if (x < offsetStyles.left) {
+ x = offsetStyles.left;
+ } else if (x > width + offsetStyles.left) {
+ x = width + offsetStyles.left;
+ }
+
+ pos = x - offsetStyles.left;
+ percentage = pos / width;
+ t.newTime = percentage <= 0.02 ? 0 : percentage * t.getDuration();
+
+ if (mouseIsDown && t.getCurrentTime() !== null && t.newTime.toFixed(4) !== t.getCurrentTime().toFixed(4)) {
+ t.setCurrentRailHandle(t.newTime);
+ t.updateCurrent(t.newTime);
+ }
+
+ if (!_constants.IS_IOS && !_constants.IS_ANDROID) {
+ if (pos < 0) {
+ pos = 0;
+ }
+ if (t.options.useSmoothHover && cssMatrix !== null && typeof window[cssMatrix] !== 'undefined') {
+ var matrix = new window[cssMatrix](getComputedStyle(t.handle)[transform]),
+ handleLocation = matrix.m41,
+ hoverScaleX = pos / parseFloat(getComputedStyle(t.total).width) - handleLocation / parseFloat(getComputedStyle(t.total).width);
+
+ t.hovered.style.left = handleLocation + 'px';
+ t.setTransformStyle(t.hovered, 'scaleX(' + hoverScaleX + ')');
+ t.hovered.setAttribute('pos', pos);
+
+ if (hoverScaleX >= 0) {
+ (0, _dom.removeClass)(t.hovered, 'negative');
+ } else {
+ (0, _dom.addClass)(t.hovered, 'negative');
+ }
+ }
+
+ if (t.timefloat) {
+ var half = t.timefloat.offsetWidth / 2,
+ offsetContainer = mejs.Utils.offset(t.getElement(t.container)),
+ tooltipStyles = getComputedStyle(t.timefloat);
+
+ if (x - offsetContainer.left < t.timefloat.offsetWidth) {
+ leftPos = half;
+ } else if (x - offsetContainer.left >= t.getElement(t.container).offsetWidth - half) {
+ leftPos = t.total.offsetWidth - half;
+ } else {
+ leftPos = pos;
+ }
+
+ if ((0, _dom.hasClass)(t.getElement(t.container), t.options.classPrefix + 'long-video')) {
+ leftPos += parseFloat(tooltipStyles.marginLeft) / 2 + t.timefloat.offsetWidth / 2;
+ }
+
+ t.timefloat.style.left = leftPos + 'px';
+ t.timefloatcurrent.innerHTML = (0, _time.secondsToTimeCode)(t.newTime, player.options.alwaysShowHours, player.options.showTimecodeFrameCount, player.options.framesPerSecond, player.options.secondsDecimalLength, player.options.timeFormat);
+ t.timefloat.style.display = 'block';
+ }
+ }
+ } else if (!_constants.IS_IOS && !_constants.IS_ANDROID && t.timefloat) {
+ leftPos = t.timefloat.offsetWidth + width >= t.getElement(t.container).offsetWidth ? t.timefloat.offsetWidth / 2 : 0;
+ t.timefloat.style.left = leftPos + 'px';
+ t.timefloat.style.left = leftPos + 'px';
+ t.timefloat.style.display = 'block';
+ }
+ },
+ updateSlider = function updateSlider() {
+ var seconds = t.getCurrentTime(),
+ timeSliderText = _i18n2.default.t('mejs.time-slider'),
+ time = (0, _time.secondsToTimeCode)(seconds, player.options.alwaysShowHours, player.options.showTimecodeFrameCount, player.options.framesPerSecond, player.options.secondsDecimalLength, player.options.timeFormat),
+ duration = t.getDuration();
+
+ t.slider.setAttribute('role', 'slider');
+ t.slider.tabIndex = 0;
+
+ if (media.paused) {
+ t.slider.setAttribute('aria-label', timeSliderText);
+ t.slider.setAttribute('aria-valuemin', 0);
+ t.slider.setAttribute('aria-valuemax', duration);
+ t.slider.setAttribute('aria-valuenow', seconds);
+ t.slider.setAttribute('aria-valuetext', time);
+ } else {
+ t.slider.removeAttribute('aria-label');
+ t.slider.removeAttribute('aria-valuemin');
+ t.slider.removeAttribute('aria-valuemax');
+ t.slider.removeAttribute('aria-valuenow');
+ t.slider.removeAttribute('aria-valuetext');
+ }
+ },
+ restartPlayer = function restartPlayer() {
+ if (new Date() - lastKeyPressTime >= 1000) {
+ t.play();
+ }
+ },
+ handleMouseup = function handleMouseup() {
+ if (mouseIsDown && t.getCurrentTime() !== null && t.newTime.toFixed(4) !== t.getCurrentTime().toFixed(4)) {
+ t.setCurrentTime(t.newTime);
+ t.setCurrentRailHandle(t.newTime);
+ t.updateCurrent(t.newTime);
+ }
+ if (t.forcedHandlePause) {
+ t.slider.focus();
+ t.play();
+ }
+ t.forcedHandlePause = false;
+ };
+
+ t.slider.addEventListener('focus', function () {
+ player.options.autoRewind = false;
+ });
+ t.slider.addEventListener('blur', function () {
+ player.options.autoRewind = autoRewindInitial;
+ });
+ t.slider.addEventListener('keydown', function (e) {
+ if (new Date() - lastKeyPressTime >= 1000) {
+ startedPaused = t.paused;
+ }
+
+ if (t.options.enableKeyboard && t.options.keyActions.length) {
+
+ var keyCode = e.which || e.keyCode || 0,
+ duration = t.getDuration(),
+ seekForward = player.options.defaultSeekForwardInterval(media),
+ seekBackward = player.options.defaultSeekBackwardInterval(media);
+
+ var seekTime = t.getCurrentTime();
+ var volume = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'volume-slider');
+
+ if (keyCode === 38 || keyCode === 40) {
+ if (volume) {
+ volume.style.display = 'block';
+ }
+ if (t.isVideo) {
+ t.showControls();
+ t.startControlsTimer();
+ }
+
+ var newVolume = keyCode === 38 ? Math.min(t.volume + 0.1, 1) : Math.max(t.volume - 0.1, 0),
+ mutePlayer = newVolume <= 0;
+ t.setVolume(newVolume);
+ t.setMuted(mutePlayer);
+ return;
+ } else {
+ if (volume) {
+ volume.style.display = 'none';
+ }
+ }
+
+ switch (keyCode) {
+ case 37:
+ if (t.getDuration() !== Infinity) {
+ seekTime -= seekBackward;
+ }
+ break;
+ case 39:
+ if (t.getDuration() !== Infinity) {
+ seekTime += seekForward;
+ }
+ break;
+ case 36:
+ seekTime = 0;
+ break;
+ case 35:
+ seekTime = duration;
+ break;
+ case 13:
+ case 32:
+ if (_constants.IS_FIREFOX) {
+ if (t.paused) {
+ t.play();
+ } else {
+ t.pause();
+ }
+ }
+ return;
+ default:
+ return;
+ }
+
+ seekTime = seekTime < 0 ? 0 : seekTime >= duration ? duration : Math.floor(seekTime);
+ lastKeyPressTime = new Date();
+ if (!startedPaused) {
+ player.pause();
+ }
+
+ if (seekTime < t.getDuration() && !startedPaused) {
+ setTimeout(restartPlayer, 1100);
+ }
+
+ t.setCurrentTime(seekTime);
+ player.showControls();
+
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ });
+
+ var events = ['mousedown', 'touchstart'];
+
+ t.slider.addEventListener('dragstart', function () {
+ return false;
+ });
+
+ for (var i = 0, total = events.length; i < total; i++) {
+ t.slider.addEventListener(events[i], function (e) {
+ t.forcedHandlePause = false;
+ if (t.getDuration() !== Infinity) {
+ if (e.which === 1 || e.which === 0) {
+ if (!t.paused) {
+ t.pause();
+ t.forcedHandlePause = true;
+ }
+
+ mouseIsDown = true;
+ handleMouseMove(e);
+ var endEvents = ['mouseup', 'touchend'];
+
+ for (var j = 0, totalEvents = endEvents.length; j < totalEvents; j++) {
+ t.getElement(t.container).addEventListener(endEvents[j], function (event) {
+ var target = event.target;
+ if (target === t.slider || target.closest('.' + t.options.classPrefix + 'time-slider')) {
+ handleMouseMove(event);
+ }
+ });
+ }
+ t.globalBind('mouseup.dur touchend.dur', function () {
+ handleMouseup();
+ mouseIsDown = false;
+ if (t.timefloat) {
+ t.timefloat.style.display = 'none';
+ }
+ });
+ }
+ }
+ }, _constants.SUPPORT_PASSIVE_EVENT && events[i] === 'touchstart' ? { passive: true } : false);
+ }
+ t.slider.addEventListener('mouseenter', function (e) {
+ if (e.target === t.slider && t.getDuration() !== Infinity) {
+ t.getElement(t.container).addEventListener('mousemove', function (event) {
+ var target = event.target;
+ if (target === t.slider || target.closest('.' + t.options.classPrefix + 'time-slider')) {
+ handleMouseMove(event);
+ }
+ });
+ if (t.timefloat && !_constants.IS_IOS && !_constants.IS_ANDROID) {
+ t.timefloat.style.display = 'block';
+ }
+ if (t.hovered && !_constants.IS_IOS && !_constants.IS_ANDROID && t.options.useSmoothHover) {
+ (0, _dom.removeClass)(t.hovered, 'no-hover');
+ }
+ }
+ });
+ t.slider.addEventListener('mouseleave', function () {
+ if (t.getDuration() !== Infinity) {
+ if (!mouseIsDown) {
+ if (t.timefloat) {
+ t.timefloat.style.display = 'none';
+ }
+ if (t.hovered && t.options.useSmoothHover) {
+ (0, _dom.addClass)(t.hovered, 'no-hover');
+ }
+ }
+ }
+ });
+
+ t.broadcastCallback = function (e) {
+ var broadcast = controls.querySelector('.' + t.options.classPrefix + 'broadcast');
+ if (!t.options.forceLive && t.getDuration() !== Infinity) {
+ if (broadcast) {
+ t.slider.style.display = '';
+ broadcast.remove();
+ }
+
+ player.setProgressRail(e);
+ if (!t.forcedHandlePause) {
+ player.setCurrentRail(e);
+ }
+ updateSlider();
+ } else if (!broadcast || t.options.forceLive) {
+ var label = _document2.default.createElement('span');
+ label.className = t.options.classPrefix + 'broadcast';
+ label.innerText = _i18n2.default.t('mejs.live-broadcast');
+ t.slider.style.display = 'none';
+ t.rail.appendChild(label);
+ }
+ };
+
+ media.addEventListener('progress', t.broadcastCallback);
+ media.addEventListener('timeupdate', t.broadcastCallback);
+ media.addEventListener('play', function () {
+ t.buffer.style.display = 'none';
+ });
+ media.addEventListener('playing', function () {
+ t.buffer.style.display = 'none';
+ });
+ media.addEventListener('seeking', function () {
+ t.buffer.style.display = '';
+ });
+ media.addEventListener('seeked', function () {
+ t.buffer.style.display = 'none';
+ });
+ media.addEventListener('pause', function () {
+ t.buffer.style.display = 'none';
+ });
+ media.addEventListener('waiting', function () {
+ t.buffer.style.display = '';
+ });
+ media.addEventListener('loadeddata', function () {
+ t.buffer.style.display = '';
+ });
+ media.addEventListener('canplay', function () {
+ t.buffer.style.display = 'none';
+ });
+ media.addEventListener('error', function () {
+ t.buffer.style.display = 'none';
+ });
+
+ t.getElement(t.container).addEventListener('controlsresize', function (e) {
+ if (t.getDuration() !== Infinity) {
+ player.setProgressRail(e);
+ if (!t.forcedHandlePause) {
+ player.setCurrentRail(e);
+ }
+ }
+ });
+ },
+ cleanprogress: function cleanprogress(player, controls, layers, media) {
+ media.removeEventListener('progress', player.broadcastCallback);
+ media.removeEventListener('timeupdate', player.broadcastCallback);
+ if (player.rail) {
+ player.rail.remove();
+ }
+ },
+ setProgressRail: function setProgressRail(e) {
+ var t = this,
+ target = e !== undefined ? e.detail.target || e.target : t.media;
+
+ var percent = null;
+
+ if (target && target.buffered && target.buffered.length > 0 && target.buffered.end && t.getDuration()) {
+ percent = target.buffered.end(target.buffered.length - 1) / t.getDuration();
+ } else if (target && target.bytesTotal !== undefined && target.bytesTotal > 0 && target.bufferedBytes !== undefined) {
+ percent = target.bufferedBytes / target.bytesTotal;
+ } else if (e && e.lengthComputable && e.total !== 0) {
+ percent = e.loaded / e.total;
+ }
+
+ if (percent !== null) {
+ percent = Math.min(1, Math.max(0, percent));
+
+ if (t.loaded) {
+ t.setTransformStyle(t.loaded, 'scaleX(' + percent + ')');
+ }
+ }
+ },
+ setCurrentRailHandle: function setCurrentRailHandle(fakeTime) {
+ var t = this;
+ t.setCurrentRailMain(t, fakeTime);
+ },
+ setCurrentRail: function setCurrentRail() {
+ var t = this;
+ t.setCurrentRailMain(t);
+ },
+ setCurrentRailMain: function setCurrentRailMain(t, fakeTime) {
+ if (t.getCurrentTime() !== undefined && t.getDuration()) {
+ var nTime = typeof fakeTime === 'undefined' ? t.getCurrentTime() : fakeTime;
+
+ if (t.total && t.handle) {
+ var tW = parseFloat(getComputedStyle(t.total).width);
+
+ var newWidth = Math.round(tW * nTime / t.getDuration()),
+ handlePos = newWidth - Math.round(t.handle.offsetWidth / 2);
+
+ handlePos = handlePos < 0 ? 0 : handlePos;
+ t.setTransformStyle(t.current, 'scaleX(' + newWidth / tW + ')');
+ t.setTransformStyle(t.handle, 'translateX(' + handlePos + 'px)');
+
+ if (t.options.useSmoothHover && !(0, _dom.hasClass)(t.hovered, 'no-hover')) {
+ var pos = parseInt(t.hovered.getAttribute('pos'), 10);
+ pos = isNaN(pos) ? 0 : pos;
+
+ var hoverScaleX = pos / tW - handlePos / tW;
+
+ t.hovered.style.left = handlePos + 'px';
+ t.setTransformStyle(t.hovered, 'scaleX(' + hoverScaleX + ')');
+
+ if (hoverScaleX >= 0) {
+ (0, _dom.removeClass)(t.hovered, 'negative');
+ } else {
+ (0, _dom.addClass)(t.hovered, 'negative');
+ }
+ }
+ }
+ }
+ }
+});
+
+},{"16":16,"2":2,"25":25,"26":26,"30":30,"5":5}],12:[function(_dereq_,module,exports){
+'use strict';
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _player = _dereq_(16);
+
+var _player2 = _interopRequireDefault(_player);
+
+var _time = _dereq_(30);
+
+var _dom = _dereq_(26);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+Object.assign(_player.config, {
+ duration: 0,
+
+ timeAndDurationSeparator: ' | '
+});
+
+Object.assign(_player2.default.prototype, {
+ buildcurrent: function buildcurrent(player, controls, layers, media) {
+ var t = this,
+ time = _document2.default.createElement('div');
+
+ time.className = t.options.classPrefix + 'time';
+ time.setAttribute('role', 'timer');
+ time.setAttribute('aria-live', 'off');
+ time.innerHTML = '' + (0, _time.secondsToTimeCode)(0, player.options.alwaysShowHours, player.options.showTimecodeFrameCount, player.options.framesPerSecond, player.options.secondsDecimalLength, player.options.timeFormat) + '';
+
+ t.addControlElement(time, 'current');
+ player.updateCurrent();
+ t.updateTimeCallback = function () {
+ if (t.controlsAreVisible) {
+ player.updateCurrent();
+ }
+ };
+ media.addEventListener('timeupdate', t.updateTimeCallback);
+ },
+ cleancurrent: function cleancurrent(player, controls, layers, media) {
+ media.removeEventListener('timeupdate', player.updateTimeCallback);
+ },
+ buildduration: function buildduration(player, controls, layers, media) {
+ var t = this,
+ currTime = controls.lastChild.querySelector('.' + t.options.classPrefix + 'currenttime');
+
+ if (currTime) {
+ controls.querySelector('.' + t.options.classPrefix + 'time').innerHTML += t.options.timeAndDurationSeparator + '' + ((0, _time.secondsToTimeCode)(t.options.duration, t.options.alwaysShowHours, t.options.showTimecodeFrameCount, t.options.framesPerSecond, t.options.secondsDecimalLength, t.options.timeFormat) + '');
+ } else {
+ if (controls.querySelector('.' + t.options.classPrefix + 'currenttime')) {
+ (0, _dom.addClass)(controls.querySelector('.' + t.options.classPrefix + 'currenttime').parentNode, t.options.classPrefix + 'currenttime-container');
+ }
+
+ var duration = _document2.default.createElement('div');
+ duration.className = t.options.classPrefix + 'time ' + t.options.classPrefix + 'duration-container';
+ duration.innerHTML = '' + ((0, _time.secondsToTimeCode)(t.options.duration, t.options.alwaysShowHours, t.options.showTimecodeFrameCount, t.options.framesPerSecond, t.options.secondsDecimalLength, t.options.timeFormat) + '');
+
+ t.addControlElement(duration, 'duration');
+ }
+
+ t.updateDurationCallback = function () {
+ if (t.controlsAreVisible) {
+ player.updateDuration();
+ }
+ };
+
+ media.addEventListener('timeupdate', t.updateDurationCallback);
+ },
+ cleanduration: function cleanduration(player, controls, layers, media) {
+ media.removeEventListener('timeupdate', player.updateDurationCallback);
+ },
+ updateCurrent: function updateCurrent() {
+ var t = this;
+
+ var currentTime = t.getCurrentTime();
+
+ if (isNaN(currentTime)) {
+ currentTime = 0;
+ }
+
+ var timecode = (0, _time.secondsToTimeCode)(currentTime, t.options.alwaysShowHours, t.options.showTimecodeFrameCount, t.options.framesPerSecond, t.options.secondsDecimalLength, t.options.timeFormat);
+
+ if (timecode.length > 5) {
+ (0, _dom.addClass)(t.getElement(t.container), t.options.classPrefix + 'long-video');
+ } else {
+ (0, _dom.removeClass)(t.getElement(t.container), t.options.classPrefix + 'long-video');
+ }
+
+ if (t.getElement(t.controls).querySelector('.' + t.options.classPrefix + 'currenttime')) {
+ t.getElement(t.controls).querySelector('.' + t.options.classPrefix + 'currenttime').innerText = timecode;
+ }
+ },
+ updateDuration: function updateDuration() {
+ var t = this;
+
+ var duration = t.getDuration();
+
+ if (t.media !== undefined && (isNaN(duration) || duration === Infinity || duration < 0)) {
+ t.media.duration = t.options.duration = duration = 0;
+ }
+
+ if (t.options.duration > 0) {
+ duration = t.options.duration;
+ }
+
+ var timecode = (0, _time.secondsToTimeCode)(duration, t.options.alwaysShowHours, t.options.showTimecodeFrameCount, t.options.framesPerSecond, t.options.secondsDecimalLength, t.options.timeFormat);
+
+ if (timecode.length > 5) {
+ (0, _dom.addClass)(t.getElement(t.container), t.options.classPrefix + 'long-video');
+ } else {
+ (0, _dom.removeClass)(t.getElement(t.container), t.options.classPrefix + 'long-video');
+ }
+
+ if (t.getElement(t.controls).querySelector('.' + t.options.classPrefix + 'duration') && duration > 0) {
+ t.getElement(t.controls).querySelector('.' + t.options.classPrefix + 'duration').innerHTML = timecode;
+ }
+ }
+});
+
+},{"16":16,"2":2,"26":26,"30":30}],13:[function(_dereq_,module,exports){
+'use strict';
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _mejs = _dereq_(7);
+
+var _mejs2 = _interopRequireDefault(_mejs);
+
+var _i18n = _dereq_(5);
+
+var _i18n2 = _interopRequireDefault(_i18n);
+
+var _player = _dereq_(16);
+
+var _player2 = _interopRequireDefault(_player);
+
+var _time = _dereq_(30);
+
+var _general = _dereq_(27);
+
+var _dom = _dereq_(26);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+Object.assign(_player.config, {
+ startLanguage: '',
+
+ tracksText: null,
+
+ chaptersText: null,
+
+ tracksAriaLive: false,
+
+ hideCaptionsButtonWhenEmpty: true,
+
+ toggleCaptionsButtonWhenOnlyOne: false,
+
+ slidesSelector: ''
+});
+
+Object.assign(_player2.default.prototype, {
+ hasChapters: false,
+
+ buildtracks: function buildtracks(player, controls, layers, media) {
+
+ this.findTracks();
+
+ if (!player.tracks.length && (!player.trackFiles || !player.trackFiles.length === 0)) {
+ return;
+ }
+
+ var t = this,
+ attr = t.options.tracksAriaLive ? ' role="log" aria-live="assertive" aria-atomic="false"' : '',
+ tracksTitle = (0, _general.isString)(t.options.tracksText) ? t.options.tracksText : _i18n2.default.t('mejs.captions-subtitles'),
+ chaptersTitle = (0, _general.isString)(t.options.chaptersText) ? t.options.chaptersText : _i18n2.default.t('mejs.captions-chapters'),
+ total = player.trackFiles === null ? player.tracks.length : player.trackFiles.length;
+
+ if (t.domNode.textTracks) {
+ for (var i = t.domNode.textTracks.length - 1; i >= 0; i--) {
+ t.domNode.textTracks[i].mode = 'hidden';
+ }
+ }
+
+ t.cleartracks(player);
+
+ player.captions = _document2.default.createElement('div');
+ player.captions.className = t.options.classPrefix + 'captions-layer ' + t.options.classPrefix + 'layer';
+ player.captions.innerHTML = '' + ('') + '
';
+ player.captions.style.display = 'none';
+ layers.insertBefore(player.captions, layers.firstChild);
+
+ player.captionsText = player.captions.querySelector('.' + t.options.classPrefix + 'captions-text');
+
+ player.captionsButton = _document2.default.createElement('div');
+ player.captionsButton.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'captions-button';
+ player.captionsButton.innerHTML = '' + ('';
+
+ t.addControlElement(player.captionsButton, 'tracks');
+
+ player.captionsButton.querySelector('.' + t.options.classPrefix + 'captions-selector-input').disabled = false;
+
+ player.chaptersButton = _document2.default.createElement('div');
+ player.chaptersButton.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'chapters-button';
+ player.chaptersButton.innerHTML = '' + ('';
+
+ var subtitleCount = 0;
+
+ for (var _i = 0; _i < total; _i++) {
+ var kind = player.tracks[_i].kind,
+ src = player.tracks[_i].src;
+ if (src.trim()) {
+ if (kind === 'subtitles' || kind === 'captions') {
+ subtitleCount++;
+ } else if (kind === 'chapters' && !controls.querySelector('.' + t.options.classPrefix + 'chapter-selector')) {
+ player.captionsButton.parentNode.insertBefore(player.chaptersButton, player.captionsButton);
+ }
+ }
+ }
+
+ player.trackToLoad = -1;
+ player.selectedTrack = null;
+ player.isLoadingTrack = false;
+
+ for (var _i2 = 0; _i2 < total; _i2++) {
+ var _kind = player.tracks[_i2].kind;
+ if (player.tracks[_i2].src.trim() && (_kind === 'subtitles' || _kind === 'captions')) {
+ player.addTrackButton(player.tracks[_i2].trackId, player.tracks[_i2].srclang, player.tracks[_i2].label);
+ }
+ }
+
+ player.loadNextTrack();
+
+ var inEvents = ['mouseenter', 'focusin'],
+ outEvents = ['mouseleave', 'focusout'];
+
+ if (t.options.toggleCaptionsButtonWhenOnlyOne && subtitleCount === 1) {
+ player.captionsButton.addEventListener('click', function (e) {
+ var trackId = 'none';
+ if (player.selectedTrack === null) {
+ trackId = player.tracks[0].trackId;
+ }
+ var keyboard = e.keyCode || e.which;
+ player.setTrack(trackId, typeof keyboard !== 'undefined');
+ });
+ } else {
+ var labels = player.captionsButton.querySelectorAll('.' + t.options.classPrefix + 'captions-selector-label'),
+ captions = player.captionsButton.querySelectorAll('input[type=radio]');
+
+ for (var _i3 = 0, _total = inEvents.length; _i3 < _total; _i3++) {
+ player.captionsButton.addEventListener(inEvents[_i3], function () {
+ (0, _dom.removeClass)(this.querySelector('.' + t.options.classPrefix + 'captions-selector'), t.options.classPrefix + 'offscreen');
+ });
+ }
+
+ for (var _i4 = 0, _total2 = outEvents.length; _i4 < _total2; _i4++) {
+ player.captionsButton.addEventListener(outEvents[_i4], function () {
+ (0, _dom.addClass)(this.querySelector('.' + t.options.classPrefix + 'captions-selector'), t.options.classPrefix + 'offscreen');
+ });
+ }
+
+ for (var _i5 = 0, _total3 = captions.length; _i5 < _total3; _i5++) {
+ captions[_i5].addEventListener('click', function (e) {
+ var keyboard = e.keyCode || e.which;
+ player.setTrack(this.value, typeof keyboard !== 'undefined');
+ });
+ }
+
+ for (var _i6 = 0, _total4 = labels.length; _i6 < _total4; _i6++) {
+ labels[_i6].addEventListener('click', function (e) {
+ var radio = (0, _dom.siblings)(this, function (el) {
+ return el.tagName === 'INPUT';
+ })[0],
+ event = (0, _general.createEvent)('click', radio);
+ radio.dispatchEvent(event);
+ e.preventDefault();
+ });
+ }
+
+ player.captionsButton.addEventListener('keydown', function (e) {
+ e.stopPropagation();
+ });
+ }
+
+ for (var _i7 = 0, _total5 = inEvents.length; _i7 < _total5; _i7++) {
+ player.chaptersButton.addEventListener(inEvents[_i7], function () {
+ if (this.querySelector('.' + t.options.classPrefix + 'chapters-selector-list').children.length) {
+ (0, _dom.removeClass)(this.querySelector('.' + t.options.classPrefix + 'chapters-selector'), t.options.classPrefix + 'offscreen');
+ }
+ });
+ }
+
+ for (var _i8 = 0, _total6 = outEvents.length; _i8 < _total6; _i8++) {
+ player.chaptersButton.addEventListener(outEvents[_i8], function () {
+ (0, _dom.addClass)(this.querySelector('.' + t.options.classPrefix + 'chapters-selector'), t.options.classPrefix + 'offscreen');
+ });
+ }
+
+ player.chaptersButton.addEventListener('keydown', function (e) {
+ e.stopPropagation();
+ });
+
+ if (!player.options.alwaysShowControls) {
+ player.getElement(player.container).addEventListener('controlsshown', function () {
+ (0, _dom.addClass)(player.getElement(player.container).querySelector('.' + t.options.classPrefix + 'captions-position'), t.options.classPrefix + 'captions-position-hover');
+ });
+
+ player.getElement(player.container).addEventListener('controlshidden', function () {
+ if (!media.paused) {
+ (0, _dom.removeClass)(player.getElement(player.container).querySelector('.' + t.options.classPrefix + 'captions-position'), t.options.classPrefix + 'captions-position-hover');
+ }
+ });
+ } else {
+ (0, _dom.addClass)(player.getElement(player.container).querySelector('.' + t.options.classPrefix + 'captions-position'), t.options.classPrefix + 'captions-position-hover');
+ }
+
+ media.addEventListener('timeupdate', function () {
+ player.displayCaptions();
+ });
+
+ if (player.options.slidesSelector !== '') {
+ player.slidesContainer = _document2.default.querySelectorAll(player.options.slidesSelector);
+
+ media.addEventListener('timeupdate', function () {
+ player.displaySlides();
+ });
+ }
+ },
+ cleartracks: function cleartracks(player) {
+ if (player) {
+ if (player.captions) {
+ player.captions.remove();
+ }
+ if (player.chapters) {
+ player.chapters.remove();
+ }
+ if (player.captionsText) {
+ player.captionsText.remove();
+ }
+ if (player.captionsButton) {
+ player.captionsButton.remove();
+ }
+ if (player.chaptersButton) {
+ player.chaptersButton.remove();
+ }
+ }
+ },
+ rebuildtracks: function rebuildtracks() {
+ var t = this;
+ t.findTracks();
+ t.buildtracks(t, t.getElement(t.controls), t.getElement(t.layers), t.media);
+ },
+ findTracks: function findTracks() {
+ var t = this,
+ tracktags = t.trackFiles === null ? t.node.querySelectorAll('track') : t.trackFiles,
+ total = tracktags.length;
+
+ t.tracks = [];
+ for (var i = 0; i < total; i++) {
+ var track = tracktags[i],
+ srclang = track.getAttribute('srclang').toLowerCase() || '',
+ trackId = t.id + '_track_' + i + '_' + track.getAttribute('kind') + '_' + srclang;
+ t.tracks.push({
+ trackId: trackId,
+ srclang: srclang,
+ src: track.getAttribute('src'),
+ kind: track.getAttribute('kind'),
+ label: track.getAttribute('label') || '',
+ entries: [],
+ isLoaded: false
+ });
+ }
+ },
+ setTrack: function setTrack(trackId, setByKeyboard) {
+
+ var t = this,
+ radios = t.captionsButton.querySelectorAll('input[type="radio"]'),
+ captions = t.captionsButton.querySelectorAll('.' + t.options.classPrefix + 'captions-selected'),
+ track = t.captionsButton.querySelector('input[value="' + trackId + '"]');
+
+ for (var i = 0, total = radios.length; i < total; i++) {
+ radios[i].checked = false;
+ }
+
+ for (var _i9 = 0, _total7 = captions.length; _i9 < _total7; _i9++) {
+ (0, _dom.removeClass)(captions[_i9], t.options.classPrefix + 'captions-selected');
+ }
+
+ track.checked = true;
+ var labels = (0, _dom.siblings)(track, function (el) {
+ return (0, _dom.hasClass)(el, t.options.classPrefix + 'captions-selector-label');
+ });
+ for (var _i10 = 0, _total8 = labels.length; _i10 < _total8; _i10++) {
+ (0, _dom.addClass)(labels[_i10], t.options.classPrefix + 'captions-selected');
+ }
+
+ if (trackId === 'none') {
+ t.selectedTrack = null;
+ (0, _dom.removeClass)(t.captionsButton, t.options.classPrefix + 'captions-enabled');
+ } else {
+ for (var _i11 = 0, _total9 = t.tracks.length; _i11 < _total9; _i11++) {
+ var _track = t.tracks[_i11];
+ if (_track.trackId === trackId) {
+ if (t.selectedTrack === null) {
+ (0, _dom.addClass)(t.captionsButton, t.options.classPrefix + 'captions-enabled');
+ }
+ t.selectedTrack = _track;
+ t.captions.setAttribute('lang', t.selectedTrack.srclang);
+ t.displayCaptions();
+ break;
+ }
+ }
+ }
+
+ var event = (0, _general.createEvent)('captionschange', t.media);
+ event.detail.caption = t.selectedTrack;
+ t.media.dispatchEvent(event);
+
+ if (!setByKeyboard) {
+ setTimeout(function () {
+ t.getElement(t.container).focus();
+ }, 500);
+ }
+ },
+ loadNextTrack: function loadNextTrack() {
+ var t = this;
+
+ t.trackToLoad++;
+ if (t.trackToLoad < t.tracks.length) {
+ t.isLoadingTrack = true;
+ t.loadTrack(t.trackToLoad);
+ } else {
+ t.isLoadingTrack = false;
+ t.checkForTracks();
+ }
+ },
+ loadTrack: function loadTrack(index) {
+ var t = this,
+ track = t.tracks[index];
+
+ if (track !== undefined && (track.src !== undefined || track.src !== "")) {
+ (0, _dom.ajax)(track.src, 'text', function (d) {
+ track.entries = typeof d === 'string' && /' + ('') + ('') + '';
+ },
+ checkForTracks: function checkForTracks() {
+ var t = this;
+
+ var hasSubtitles = false;
+
+ if (t.options.hideCaptionsButtonWhenEmpty) {
+ for (var i = 0, total = t.tracks.length; i < total; i++) {
+ var kind = t.tracks[i].kind;
+ if ((kind === 'subtitles' || kind === 'captions') && t.tracks[i].isLoaded) {
+ hasSubtitles = true;
+ break;
+ }
+ }
+
+ t.captionsButton.style.display = hasSubtitles ? '' : 'none';
+ t.setControlsSize();
+ }
+ },
+ displayCaptions: function displayCaptions() {
+ if (this.tracks === undefined) {
+ return;
+ }
+
+ var t = this,
+ track = t.selectedTrack,
+ sanitize = function sanitize(html) {
+ var div = _document2.default.createElement('div');
+ div.innerHTML = html;
+
+ var scripts = div.getElementsByTagName('script');
+ var i = scripts.length;
+ while (i--) {
+ scripts[i].remove();
+ }
+
+ var allElements = div.getElementsByTagName('*');
+ for (var _i12 = 0, n = allElements.length; _i12 < n; _i12++) {
+ var attributesObj = allElements[_i12].attributes,
+ attributes = Array.prototype.slice.call(attributesObj);
+
+ for (var j = 0, total = attributes.length; j < total; j++) {
+ if (attributes[j].name.startsWith('on') || attributes[j].value.startsWith('javascript')) {
+ allElements[_i12].remove();
+ } else if (attributes[j].name === 'style') {
+ allElements[_i12].removeAttribute(attributes[j].name);
+ }
+ }
+ }
+ return div.innerHTML;
+ };
+
+ if (track !== null && track.isLoaded) {
+ var i = t.searchTrackPosition(track.entries, t.media.currentTime);
+ if (i > -1) {
+ t.captionsText.innerHTML = sanitize(track.entries[i].text);
+ t.captionsText.className = t.options.classPrefix + 'captions-text ' + (track.entries[i].identifier || '');
+ t.captions.style.display = '';
+ t.captions.style.height = '0px';
+ return;
+ }
+ t.captions.style.display = 'none';
+ } else {
+ t.captions.style.display = 'none';
+ }
+ },
+ setupSlides: function setupSlides(track) {
+ var t = this;
+ t.slides = track;
+ t.slides.entries.imgs = [t.slides.entries.length];
+ t.showSlide(0);
+ },
+ showSlide: function showSlide(index) {
+ var _this = this;
+
+ var t = this;
+
+ if (t.tracks === undefined || t.slidesContainer === undefined) {
+ return;
+ }
+
+ var url = t.slides.entries[index].text;
+
+ var img = t.slides.entries[index].imgs;
+
+ if (img === undefined || img.fadeIn === undefined) {
+ var image = _document2.default.createElement('img');
+ image.src = url;
+ image.addEventListener('load', function () {
+ var self = _this,
+ visible = (0, _dom.siblings)(self, function (el) {
+ return visible(el);
+ });
+ self.style.display = 'none';
+ t.slidesContainer.innerHTML += self.innerHTML;
+ (0, _dom.fadeIn)(t.slidesContainer.querySelector(image));
+ for (var i = 0, total = visible.length; i < total; i++) {
+ (0, _dom.fadeOut)(visible[i], 400);
+ }
+ });
+ t.slides.entries[index].imgs = img = image;
+ } else if (!(0, _dom.visible)(img)) {
+ var _visible = (0, _dom.siblings)(self, function (el) {
+ return _visible(el);
+ });
+ (0, _dom.fadeIn)(t.slidesContainer.querySelector(img));
+ for (var i = 0, total = _visible.length; i < total; i++) {
+ (0, _dom.fadeOut)(_visible[i]);
+ }
+ }
+ },
+ displaySlides: function displaySlides() {
+ var t = this;
+
+ if (this.slides === undefined) {
+ return;
+ }
+
+ var slides = t.slides,
+ i = t.searchTrackPosition(slides.entries, t.media.currentTime);
+
+ if (i > -1) {
+ t.showSlide(i);
+ }
+ },
+ drawChapters: function drawChapters(chapters) {
+ var t = this,
+ total = chapters.entries.length;
+
+ if (!total) {
+ return;
+ }
+
+ t.chaptersButton.querySelector('ul').innerHTML = '';
+
+ for (var i = 0; i < total; i++) {
+ t.chaptersButton.querySelector('ul').innerHTML += '' + ('') + ('') + '';
+ }
+
+ var radios = t.chaptersButton.querySelectorAll('input[type="radio"]'),
+ labels = t.chaptersButton.querySelectorAll('.' + t.options.classPrefix + 'chapters-selector-label');
+
+ for (var _i13 = 0, _total10 = radios.length; _i13 < _total10; _i13++) {
+ radios[_i13].disabled = false;
+ radios[_i13].checked = false;
+ radios[_i13].addEventListener('click', function (e) {
+ var self = this,
+ listItems = t.chaptersButton.querySelectorAll('li'),
+ label = (0, _dom.siblings)(self, function (el) {
+ return (0, _dom.hasClass)(el, t.options.classPrefix + 'chapters-selector-label');
+ })[0];
+
+ self.checked = true;
+ self.parentNode.setAttribute('aria-checked', true);
+ (0, _dom.addClass)(label, t.options.classPrefix + 'chapters-selected');
+ (0, _dom.removeClass)(t.chaptersButton.querySelector('.' + t.options.classPrefix + 'chapters-selected'), t.options.classPrefix + 'chapters-selected');
+
+ for (var _i14 = 0, _total11 = listItems.length; _i14 < _total11; _i14++) {
+ listItems[_i14].setAttribute('aria-checked', false);
+ }
+
+ var keyboard = e.keyCode || e.which;
+ if (typeof keyboard === 'undefined') {
+ setTimeout(function () {
+ t.getElement(t.container).focus();
+ }, 500);
+ }
+
+ t.media.setCurrentTime(parseFloat(self.value));
+ if (t.media.paused) {
+ t.media.play();
+ }
+ });
+ }
+
+ for (var _i15 = 0, _total12 = labels.length; _i15 < _total12; _i15++) {
+ labels[_i15].addEventListener('click', function (e) {
+ var radio = (0, _dom.siblings)(this, function (el) {
+ return el.tagName === 'INPUT';
+ })[0],
+ event = (0, _general.createEvent)('click', radio);
+ radio.dispatchEvent(event);
+ e.preventDefault();
+ });
+ }
+ },
+ searchTrackPosition: function searchTrackPosition(tracks, currentTime) {
+ var lo = 0,
+ hi = tracks.length - 1,
+ mid = void 0,
+ start = void 0,
+ stop = void 0;
+
+ while (lo <= hi) {
+ mid = lo + hi >> 1;
+ start = tracks[mid].start;
+ stop = tracks[mid].stop;
+
+ if (currentTime >= start && currentTime < stop) {
+ return mid;
+ } else if (start < currentTime) {
+ lo = mid + 1;
+ } else if (start > currentTime) {
+ hi = mid - 1;
+ }
+ }
+
+ return -1;
+ }
+});
+
+_mejs2.default.language = {
+ codes: {
+ af: 'mejs.afrikaans',
+ sq: 'mejs.albanian',
+ ar: 'mejs.arabic',
+ be: 'mejs.belarusian',
+ bg: 'mejs.bulgarian',
+ ca: 'mejs.catalan',
+ zh: 'mejs.chinese',
+ 'zh-cn': 'mejs.chinese-simplified',
+ 'zh-tw': 'mejs.chines-traditional',
+ hr: 'mejs.croatian',
+ cs: 'mejs.czech',
+ da: 'mejs.danish',
+ nl: 'mejs.dutch',
+ en: 'mejs.english',
+ et: 'mejs.estonian',
+ fl: 'mejs.filipino',
+ fi: 'mejs.finnish',
+ fr: 'mejs.french',
+ gl: 'mejs.galician',
+ de: 'mejs.german',
+ el: 'mejs.greek',
+ ht: 'mejs.haitian-creole',
+ iw: 'mejs.hebrew',
+ hi: 'mejs.hindi',
+ hu: 'mejs.hungarian',
+ is: 'mejs.icelandic',
+ id: 'mejs.indonesian',
+ ga: 'mejs.irish',
+ it: 'mejs.italian',
+ ja: 'mejs.japanese',
+ ko: 'mejs.korean',
+ lv: 'mejs.latvian',
+ lt: 'mejs.lithuanian',
+ mk: 'mejs.macedonian',
+ ms: 'mejs.malay',
+ mt: 'mejs.maltese',
+ no: 'mejs.norwegian',
+ fa: 'mejs.persian',
+ pl: 'mejs.polish',
+ pt: 'mejs.portuguese',
+ ro: 'mejs.romanian',
+ ru: 'mejs.russian',
+ sr: 'mejs.serbian',
+ sk: 'mejs.slovak',
+ sl: 'mejs.slovenian',
+ es: 'mejs.spanish',
+ sw: 'mejs.swahili',
+ sv: 'mejs.swedish',
+ tl: 'mejs.tagalog',
+ th: 'mejs.thai',
+ tr: 'mejs.turkish',
+ uk: 'mejs.ukrainian',
+ vi: 'mejs.vietnamese',
+ cy: 'mejs.welsh',
+ yi: 'mejs.yiddish'
+ }
+};
+
+_mejs2.default.TrackFormatParser = {
+ webvtt: {
+ pattern: /^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,
+
+ parse: function parse(trackText) {
+ var lines = trackText.split(/\r?\n/),
+ entries = [];
+
+ var timecode = void 0,
+ text = void 0,
+ identifier = void 0;
+
+ for (var i = 0, total = lines.length; i < total; i++) {
+ timecode = this.pattern.exec(lines[i]);
+
+ if (timecode && i < lines.length) {
+ if (i - 1 >= 0 && lines[i - 1] !== '') {
+ identifier = lines[i - 1];
+ }
+ i++;
+
+ text = lines[i];
+ i++;
+ while (lines[i] !== '' && i < lines.length) {
+ text = text + '\n' + lines[i];
+ i++;
+ }
+ text = text.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, "$1");
+ entries.push({
+ identifier: identifier,
+ start: (0, _time.convertSMPTEtoSeconds)(timecode[1]) === 0 ? 0.200 : (0, _time.convertSMPTEtoSeconds)(timecode[1]),
+ stop: (0, _time.convertSMPTEtoSeconds)(timecode[3]),
+ text: text,
+ settings: timecode[5]
+ });
+ }
+ identifier = '';
+ }
+ return entries;
+ }
+ },
+
+ dfxp: {
+ parse: function parse(trackText) {
+ trackText = $(trackText).filter('tt');
+ var container = trackText.firstChild,
+ lines = container.querySelectorAll('p'),
+ styleNode = trackText.getElementById('' + container.attr('style')),
+ entries = [];
+
+ var styles = void 0;
+
+ if (styleNode.length) {
+ styleNode.removeAttribute('id');
+ var attributes = styleNode.attributes;
+ if (attributes.length) {
+ styles = {};
+ for (var i = 0, total = attributes.length; i < total; i++) {
+ styles[attributes[i].name.split(":")[1]] = attributes[i].value;
+ }
+ }
+ }
+
+ for (var _i16 = 0, _total13 = lines.length; _i16 < _total13; _i16++) {
+ var style = void 0,
+ _temp = {
+ start: null,
+ stop: null,
+ style: null,
+ text: null
+ };
+
+ if (lines.eq(_i16).attr('begin')) {
+ _temp.start = (0, _time.convertSMPTEtoSeconds)(lines.eq(_i16).attr('begin'));
+ }
+ if (!_temp.start && lines.eq(_i16 - 1).attr('end')) {
+ _temp.start = (0, _time.convertSMPTEtoSeconds)(lines.eq(_i16 - 1).attr('end'));
+ }
+ if (lines.eq(_i16).attr('end')) {
+ _temp.stop = (0, _time.convertSMPTEtoSeconds)(lines.eq(_i16).attr('end'));
+ }
+ if (!_temp.stop && lines.eq(_i16 + 1).attr('begin')) {
+ _temp.stop = (0, _time.convertSMPTEtoSeconds)(lines.eq(_i16 + 1).attr('begin'));
+ }
+
+ if (styles) {
+ style = '';
+ for (var _style in styles) {
+ style += _style + ':' + styles[_style] + ';';
+ }
+ }
+ if (style) {
+ _temp.style = style;
+ }
+ if (_temp.start === 0) {
+ _temp.start = 0.200;
+ }
+ _temp.text = lines.eq(_i16).innerHTML.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, "$1");
+ entries.push(_temp);
+ }
+ return entries;
+ }
+ }
+};
+
+},{"16":16,"2":2,"26":26,"27":27,"30":30,"5":5,"7":7}],14:[function(_dereq_,module,exports){
+'use strict';
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _player = _dereq_(16);
+
+var _player2 = _interopRequireDefault(_player);
+
+var _i18n = _dereq_(5);
+
+var _i18n2 = _interopRequireDefault(_i18n);
+
+var _constants = _dereq_(25);
+
+var _general = _dereq_(27);
+
+var _dom = _dereq_(26);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+Object.assign(_player.config, {
+ muteText: null,
+
+ unmuteText: null,
+
+ allyVolumeControlText: null,
+
+ hideVolumeOnTouchDevices: true,
+
+ audioVolume: 'horizontal',
+
+ videoVolume: 'vertical',
+
+ startVolume: 0.8
+});
+
+Object.assign(_player2.default.prototype, {
+ buildvolume: function buildvolume(player, controls, layers, media) {
+ if ((_constants.IS_ANDROID || _constants.IS_IOS) && this.options.hideVolumeOnTouchDevices) {
+ return;
+ }
+
+ var t = this,
+ mode = t.isVideo ? t.options.videoVolume : t.options.audioVolume,
+ muteText = (0, _general.isString)(t.options.muteText) ? t.options.muteText : _i18n2.default.t('mejs.mute'),
+ unmuteText = (0, _general.isString)(t.options.unmuteText) ? t.options.unmuteText : _i18n2.default.t('mejs.unmute'),
+ volumeControlText = (0, _general.isString)(t.options.allyVolumeControlText) ? t.options.allyVolumeControlText : _i18n2.default.t('mejs.volume-help-text'),
+ mute = _document2.default.createElement('div');
+
+ mute.className = t.options.classPrefix + 'button ' + t.options.classPrefix + 'volume-button ' + t.options.classPrefix + 'mute';
+ mute.innerHTML = mode === 'horizontal' ? '' : '' + ('' + ('' + volumeControlText + '') + ('' + '';
+
+ t.addControlElement(mute, 'volume');
+
+ t.options.keyActions.push({
+ keys: [38],
+ action: function action(player) {
+ var volumeSlider = player.getElement(player.container).querySelector('.' + _player.config.classPrefix + 'volume-slider');
+ if (volumeSlider || player.getElement(player.container).querySelector('.' + _player.config.classPrefix + 'volume-slider').matches(':focus')) {
+ volumeSlider.style.display = 'block';
+ }
+ if (player.isVideo) {
+ player.showControls();
+ player.startControlsTimer();
+ }
+
+ var newVolume = Math.min(player.volume + 0.1, 1);
+ player.setVolume(newVolume);
+ if (newVolume > 0) {
+ player.setMuted(false);
+ }
+ }
+ }, {
+ keys: [40],
+ action: function action(player) {
+ var volumeSlider = player.getElement(player.container).querySelector('.' + _player.config.classPrefix + 'volume-slider');
+ if (volumeSlider) {
+ volumeSlider.style.display = 'block';
+ }
+
+ if (player.isVideo) {
+ player.showControls();
+ player.startControlsTimer();
+ }
+
+ var newVolume = Math.max(player.volume - 0.1, 0);
+ player.setVolume(newVolume);
+
+ if (newVolume <= 0.1) {
+ player.setMuted(true);
+ }
+ }
+ }, {
+ keys: [77],
+ action: function action(player) {
+ player.getElement(player.container).querySelector('.' + _player.config.classPrefix + 'volume-slider').style.display = 'block';
+ if (player.isVideo) {
+ player.showControls();
+ player.startControlsTimer();
+ }
+ if (player.media.muted) {
+ player.setMuted(false);
+ } else {
+ player.setMuted(true);
+ }
+ }
+ });
+
+ if (mode === 'horizontal') {
+ var anchor = _document2.default.createElement('a');
+ anchor.className = t.options.classPrefix + 'horizontal-volume-slider';
+ anchor.href = 'javascript:void(0);';
+ anchor.setAttribute('aria-label', _i18n2.default.t('mejs.volume-slider'));
+ anchor.setAttribute('aria-valuemin', 0);
+ anchor.setAttribute('aria-valuemax', 100);
+ anchor.setAttribute('role', 'slider');
+ anchor.innerHTML += '' + volumeControlText + '' + ('';
+ mute.parentNode.insertBefore(anchor, mute.nextSibling);
+ }
+
+ var mouseIsDown = false,
+ mouseIsOver = false,
+ modified = false,
+ updateVolumeSlider = function updateVolumeSlider() {
+ var volume = Math.floor(media.volume * 100);
+ volumeSlider.setAttribute('aria-valuenow', volume);
+ volumeSlider.setAttribute('aria-valuetext', volume + '%');
+ };
+
+ var volumeSlider = mode === 'vertical' ? t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'volume-slider') : t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'horizontal-volume-slider'),
+ volumeTotal = mode === 'vertical' ? t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'volume-total') : t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'horizontal-volume-total'),
+ volumeCurrent = mode === 'vertical' ? t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'volume-current') : t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'horizontal-volume-current'),
+ volumeHandle = mode === 'vertical' ? t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'volume-handle') : t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'horizontal-volume-handle'),
+ positionVolumeHandle = function positionVolumeHandle(volume) {
+
+ if (volume === null || isNaN(volume) || volume === undefined) {
+ return;
+ }
+
+ volume = Math.max(0, volume);
+ volume = Math.min(volume, 1);
+
+ if (volume === 0) {
+ (0, _dom.removeClass)(mute, t.options.classPrefix + 'mute');
+ (0, _dom.addClass)(mute, t.options.classPrefix + 'unmute');
+ var button = mute.firstElementChild;
+ button.setAttribute('title', unmuteText);
+ button.setAttribute('aria-label', unmuteText);
+ } else {
+ (0, _dom.removeClass)(mute, t.options.classPrefix + 'unmute');
+ (0, _dom.addClass)(mute, t.options.classPrefix + 'mute');
+ var _button = mute.firstElementChild;
+ _button.setAttribute('title', muteText);
+ _button.setAttribute('aria-label', muteText);
+ }
+
+ var volumePercentage = volume * 100 + '%',
+ volumeStyles = getComputedStyle(volumeHandle);
+
+ if (mode === 'vertical') {
+ volumeCurrent.style.bottom = 0;
+ volumeCurrent.style.height = volumePercentage;
+ volumeHandle.style.bottom = volumePercentage;
+ volumeHandle.style.marginBottom = -parseFloat(volumeStyles.height) / 2 + 'px';
+ } else {
+ volumeCurrent.style.left = 0;
+ volumeCurrent.style.width = volumePercentage;
+ volumeHandle.style.left = volumePercentage;
+ volumeHandle.style.marginLeft = -parseFloat(volumeStyles.width) / 2 + 'px';
+ }
+ },
+ handleVolumeMove = function handleVolumeMove(e) {
+ var totalOffset = (0, _dom.offset)(volumeTotal),
+ volumeStyles = getComputedStyle(volumeTotal);
+
+ modified = true;
+
+ var volume = null;
+
+ if (mode === 'vertical') {
+ var railHeight = parseFloat(volumeStyles.height),
+ newY = e.pageY - totalOffset.top;
+
+ volume = (railHeight - newY) / railHeight;
+
+ if (totalOffset.top === 0 || totalOffset.left === 0) {
+ return;
+ }
+ } else {
+ var railWidth = parseFloat(volumeStyles.width),
+ newX = e.pageX - totalOffset.left;
+
+ volume = newX / railWidth;
+ }
+
+ volume = Math.max(0, volume);
+ volume = Math.min(volume, 1);
+
+ positionVolumeHandle(volume);
+
+ t.setMuted(volume === 0);
+ t.setVolume(volume);
+
+ e.preventDefault();
+ e.stopPropagation();
+ },
+ toggleMute = function toggleMute() {
+ if (t.muted) {
+ positionVolumeHandle(0);
+ (0, _dom.removeClass)(mute, t.options.classPrefix + 'mute');
+ (0, _dom.addClass)(mute, t.options.classPrefix + 'unmute');
+ } else {
+ positionVolumeHandle(media.volume);
+ (0, _dom.removeClass)(mute, t.options.classPrefix + 'unmute');
+ (0, _dom.addClass)(mute, t.options.classPrefix + 'mute');
+ }
+ };
+
+ player.getElement(player.container).addEventListener('keydown', function (e) {
+ var hasFocus = !!e.target.closest('.' + t.options.classPrefix + 'container');
+ if (!hasFocus && mode === 'vertical') {
+ volumeSlider.style.display = 'none';
+ }
+ });
+
+ mute.addEventListener('mouseenter', function (e) {
+ if (e.target === mute) {
+ volumeSlider.style.display = 'block';
+ mouseIsOver = true;
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ });
+ mute.addEventListener('focusin', function () {
+ volumeSlider.style.display = 'block';
+ mouseIsOver = true;
+ });
+
+ mute.addEventListener('focusout', function (e) {
+ if ((!e.relatedTarget || e.relatedTarget && !e.relatedTarget.matches('.' + t.options.classPrefix + 'volume-slider')) && mode === 'vertical') {
+ volumeSlider.style.display = 'none';
+ }
+ });
+ mute.addEventListener('mouseleave', function () {
+ mouseIsOver = false;
+ if (!mouseIsDown && mode === 'vertical') {
+ volumeSlider.style.display = 'none';
+ }
+ });
+ mute.addEventListener('focusout', function () {
+ mouseIsOver = false;
+ });
+ mute.addEventListener('keydown', function (e) {
+ if (t.options.enableKeyboard && t.options.keyActions.length) {
+ var keyCode = e.which || e.keyCode || 0,
+ volume = media.volume;
+
+ switch (keyCode) {
+ case 38:
+ volume = Math.min(volume + 0.1, 1);
+ break;
+ case 40:
+ volume = Math.max(0, volume - 0.1);
+ break;
+ default:
+ return true;
+ }
+
+ mouseIsDown = false;
+ positionVolumeHandle(volume);
+ media.setVolume(volume);
+
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ });
+ mute.querySelector('button').addEventListener('click', function () {
+ media.setMuted(!media.muted);
+ var event = (0, _general.createEvent)('volumechange', media);
+ media.dispatchEvent(event);
+ });
+
+ volumeSlider.addEventListener('dragstart', function () {
+ return false;
+ });
+
+ volumeSlider.addEventListener('mouseover', function () {
+ mouseIsOver = true;
+ });
+ volumeSlider.addEventListener('focusin', function () {
+ volumeSlider.style.display = 'block';
+ mouseIsOver = true;
+ });
+ volumeSlider.addEventListener('focusout', function () {
+ mouseIsOver = false;
+ if (!mouseIsDown && mode === 'vertical') {
+ volumeSlider.style.display = 'none';
+ }
+ });
+ volumeSlider.addEventListener('mousedown', function (e) {
+ handleVolumeMove(e);
+ t.globalBind('mousemove.vol', function (event) {
+ var target = event.target;
+ if (mouseIsDown && (target === volumeSlider || target.closest(mode === 'vertical' ? '.' + t.options.classPrefix + 'volume-slider' : '.' + t.options.classPrefix + 'horizontal-volume-slider'))) {
+ handleVolumeMove(event);
+ }
+ });
+ t.globalBind('mouseup.vol', function () {
+ mouseIsDown = false;
+ if (!mouseIsOver && mode === 'vertical') {
+ volumeSlider.style.display = 'none';
+ }
+ });
+ mouseIsDown = true;
+ e.preventDefault();
+ e.stopPropagation();
+ });
+
+ media.addEventListener('volumechange', function (e) {
+ if (!mouseIsDown) {
+ toggleMute();
+ }
+ updateVolumeSlider(e);
+ });
+
+ var rendered = false;
+ media.addEventListener('rendererready', function () {
+ if (!modified) {
+ setTimeout(function () {
+ rendered = true;
+ if (player.options.startVolume === 0 || media.originalNode.muted) {
+ media.setMuted(true);
+ player.options.startVolume = 0;
+ }
+ media.setVolume(player.options.startVolume);
+ t.setControlsSize();
+ }, 250);
+ }
+ });
+
+ media.addEventListener('loadedmetadata', function () {
+ setTimeout(function () {
+ if (!modified && !rendered) {
+ if (player.options.startVolume === 0 || media.originalNode.muted) {
+ media.setMuted(true);
+ }
+ media.setVolume(player.options.startVolume);
+ t.setControlsSize();
+ }
+ rendered = false;
+ }, 250);
+ });
+
+ if (player.options.startVolume === 0 || media.originalNode.muted) {
+ media.setMuted(true);
+ player.options.startVolume = 0;
+ toggleMute();
+ }
+
+ t.getElement(t.container).addEventListener('controlsresize', function () {
+ toggleMute();
+ });
+ }
+});
+
+},{"16":16,"2":2,"25":25,"26":26,"27":27,"5":5}],15:[function(_dereq_,module,exports){
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+var EN = exports.EN = {
+ 'mejs.plural-form': 1,
+
+ 'mejs.download-file': 'Download File',
+
+ 'mejs.install-flash': 'You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/',
+
+ 'mejs.fullscreen': 'Fullscreen',
+
+ 'mejs.play': 'Play',
+ 'mejs.pause': 'Pause',
+
+ 'mejs.time-slider': 'Time Slider',
+ 'mejs.time-help-text': 'Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.',
+ 'mejs.live-broadcast': 'Live Broadcast',
+
+ 'mejs.volume-help-text': 'Use Up/Down Arrow keys to increase or decrease volume.',
+ 'mejs.unmute': 'Unmute',
+ 'mejs.mute': 'Mute',
+ 'mejs.volume-slider': 'Volume Slider',
+
+ 'mejs.video-player': 'Video Player',
+ 'mejs.audio-player': 'Audio Player',
+
+ 'mejs.captions-subtitles': 'Captions/Subtitles',
+ 'mejs.captions-chapters': 'Chapters',
+ 'mejs.none': 'None',
+ 'mejs.afrikaans': 'Afrikaans',
+ 'mejs.albanian': 'Albanian',
+ 'mejs.arabic': 'Arabic',
+ 'mejs.belarusian': 'Belarusian',
+ 'mejs.bulgarian': 'Bulgarian',
+ 'mejs.catalan': 'Catalan',
+ 'mejs.chinese': 'Chinese',
+ 'mejs.chinese-simplified': 'Chinese (Simplified)',
+ 'mejs.chinese-traditional': 'Chinese (Traditional)',
+ 'mejs.croatian': 'Croatian',
+ 'mejs.czech': 'Czech',
+ 'mejs.danish': 'Danish',
+ 'mejs.dutch': 'Dutch',
+ 'mejs.english': 'English',
+ 'mejs.estonian': 'Estonian',
+ 'mejs.filipino': 'Filipino',
+ 'mejs.finnish': 'Finnish',
+ 'mejs.french': 'French',
+ 'mejs.galician': 'Galician',
+ 'mejs.german': 'German',
+ 'mejs.greek': 'Greek',
+ 'mejs.haitian-creole': 'Haitian Creole',
+ 'mejs.hebrew': 'Hebrew',
+ 'mejs.hindi': 'Hindi',
+ 'mejs.hungarian': 'Hungarian',
+ 'mejs.icelandic': 'Icelandic',
+ 'mejs.indonesian': 'Indonesian',
+ 'mejs.irish': 'Irish',
+ 'mejs.italian': 'Italian',
+ 'mejs.japanese': 'Japanese',
+ 'mejs.korean': 'Korean',
+ 'mejs.latvian': 'Latvian',
+ 'mejs.lithuanian': 'Lithuanian',
+ 'mejs.macedonian': 'Macedonian',
+ 'mejs.malay': 'Malay',
+ 'mejs.maltese': 'Maltese',
+ 'mejs.norwegian': 'Norwegian',
+ 'mejs.persian': 'Persian',
+ 'mejs.polish': 'Polish',
+ 'mejs.portuguese': 'Portuguese',
+ 'mejs.romanian': 'Romanian',
+ 'mejs.russian': 'Russian',
+ 'mejs.serbian': 'Serbian',
+ 'mejs.slovak': 'Slovak',
+ 'mejs.slovenian': 'Slovenian',
+ 'mejs.spanish': 'Spanish',
+ 'mejs.swahili': 'Swahili',
+ 'mejs.swedish': 'Swedish',
+ 'mejs.tagalog': 'Tagalog',
+ 'mejs.thai': 'Thai',
+ 'mejs.turkish': 'Turkish',
+ 'mejs.ukrainian': 'Ukrainian',
+ 'mejs.vietnamese': 'Vietnamese',
+ 'mejs.welsh': 'Welsh',
+ 'mejs.yiddish': 'Yiddish'
+};
+
+},{}],16:[function(_dereq_,module,exports){
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.config = undefined;
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _mejs = _dereq_(7);
+
+var _mejs2 = _interopRequireDefault(_mejs);
+
+var _mediaelement = _dereq_(6);
+
+var _mediaelement2 = _interopRequireDefault(_mediaelement);
+
+var _default = _dereq_(17);
+
+var _default2 = _interopRequireDefault(_default);
+
+var _i18n = _dereq_(5);
+
+var _i18n2 = _interopRequireDefault(_i18n);
+
+var _constants = _dereq_(25);
+
+var _general = _dereq_(27);
+
+var _time = _dereq_(30);
+
+var _media = _dereq_(28);
+
+var _dom = _dereq_(26);
+
+var dom = _interopRequireWildcard(_dom);
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+_mejs2.default.mepIndex = 0;
+
+_mejs2.default.players = {};
+
+var config = exports.config = {
+ poster: '',
+
+ showPosterWhenEnded: false,
+
+ showPosterWhenPaused: false,
+
+ defaultVideoWidth: 480,
+
+ defaultVideoHeight: 270,
+
+ videoWidth: -1,
+
+ videoHeight: -1,
+
+ defaultAudioWidth: 400,
+
+ defaultAudioHeight: 40,
+
+ defaultSeekBackwardInterval: function defaultSeekBackwardInterval(media) {
+ return media.getDuration() * 0.05;
+ },
+
+ defaultSeekForwardInterval: function defaultSeekForwardInterval(media) {
+ return media.getDuration() * 0.05;
+ },
+
+ setDimensions: true,
+
+ audioWidth: -1,
+
+ audioHeight: -1,
+
+ loop: false,
+
+ autoRewind: true,
+
+ enableAutosize: true,
+
+ timeFormat: '',
+
+ alwaysShowHours: false,
+
+ showTimecodeFrameCount: false,
+
+ framesPerSecond: 25,
+
+ alwaysShowControls: false,
+
+ hideVideoControlsOnLoad: false,
+
+ hideVideoControlsOnPause: false,
+
+ clickToPlayPause: true,
+
+ controlsTimeoutDefault: 1500,
+
+ controlsTimeoutMouseEnter: 2500,
+
+ controlsTimeoutMouseLeave: 1000,
+
+ iPadUseNativeControls: false,
+
+ iPhoneUseNativeControls: false,
+
+ AndroidUseNativeControls: false,
+
+ features: ['playpause', 'current', 'progress', 'duration', 'tracks', 'volume', 'fullscreen'],
+
+ useDefaultControls: false,
+
+ isVideo: true,
+
+ stretching: 'auto',
+
+ classPrefix: 'mejs__',
+
+ enableKeyboard: true,
+
+ pauseOtherPlayers: true,
+
+ secondsDecimalLength: 0,
+
+ customError: null,
+
+ keyActions: [{
+ keys: [32, 179],
+ action: function action(player) {
+
+ if (!_constants.IS_FIREFOX) {
+ if (player.paused || player.ended) {
+ player.play();
+ } else {
+ player.pause();
+ }
+ }
+ }
+ }]
+};
+
+_mejs2.default.MepDefaults = config;
+
+var MediaElementPlayer = function () {
+ function MediaElementPlayer(node, o) {
+ _classCallCheck(this, MediaElementPlayer);
+
+ var t = this,
+ element = typeof node === 'string' ? _document2.default.getElementById(node) : node;
+
+ if (!(t instanceof MediaElementPlayer)) {
+ return new MediaElementPlayer(element, o);
+ }
+
+ t.node = t.media = element;
+
+ if (!t.node) {
+ return;
+ }
+
+ if (t.media.player) {
+ return t.media.player;
+ }
+
+ t.hasFocus = false;
+
+ t.controlsAreVisible = true;
+
+ t.controlsEnabled = true;
+
+ t.controlsTimer = null;
+
+ t.currentMediaTime = 0;
+
+ t.proxy = null;
+
+ if (o === undefined) {
+ var options = t.node.getAttribute('data-mejsoptions');
+ o = options ? JSON.parse(options) : {};
+ }
+
+ t.options = Object.assign({}, config, o);
+
+ if (t.options.loop && !t.media.getAttribute('loop')) {
+ t.media.loop = true;
+ t.node.loop = true;
+ } else if (t.media.loop) {
+ t.options.loop = true;
+ }
+
+ if (!t.options.timeFormat) {
+ t.options.timeFormat = 'mm:ss';
+ if (t.options.alwaysShowHours) {
+ t.options.timeFormat = 'hh:mm:ss';
+ }
+ if (t.options.showTimecodeFrameCount) {
+ t.options.timeFormat += ':ff';
+ }
+ }
+
+ (0, _time.calculateTimeFormat)(0, t.options, t.options.framesPerSecond || 25);
+
+ t.id = 'mep_' + _mejs2.default.mepIndex++;
+
+ _mejs2.default.players[t.id] = t;
+
+ t.init();
+
+ return t;
+ }
+
+ _createClass(MediaElementPlayer, [{
+ key: 'getElement',
+ value: function getElement(element) {
+ return element;
+ }
+ }, {
+ key: 'init',
+ value: function init() {
+ var t = this,
+ playerOptions = Object.assign({}, t.options, {
+ success: function success(media, domNode) {
+ t._meReady(media, domNode);
+ },
+ error: function error(e) {
+ t._handleError(e);
+ }
+ }),
+ tagName = t.node.tagName.toLowerCase();
+
+ t.isDynamic = tagName !== 'audio' && tagName !== 'video' && tagName !== 'iframe';
+ t.isVideo = t.isDynamic ? t.options.isVideo : tagName !== 'audio' && t.options.isVideo;
+ t.mediaFiles = null;
+ t.trackFiles = null;
+
+ if (_constants.IS_IPAD && t.options.iPadUseNativeControls || _constants.IS_IPHONE && t.options.iPhoneUseNativeControls) {
+ t.node.setAttribute('controls', true);
+
+ if (_constants.IS_IPAD && t.node.getAttribute('autoplay')) {
+ t.play();
+ }
+ } else if ((t.isVideo || !t.isVideo && (t.options.features.length || t.options.useDefaultControls)) && !(_constants.IS_ANDROID && t.options.AndroidUseNativeControls)) {
+ t.node.removeAttribute('controls');
+ var videoPlayerTitle = t.isVideo ? _i18n2.default.t('mejs.video-player') : _i18n2.default.t('mejs.audio-player');
+
+ var offscreen = _document2.default.createElement('span');
+ offscreen.className = t.options.classPrefix + 'offscreen';
+ offscreen.innerText = videoPlayerTitle;
+ t.media.parentNode.insertBefore(offscreen, t.media);
+
+ t.container = _document2.default.createElement('div');
+ t.getElement(t.container).id = t.id;
+ t.getElement(t.container).className = t.options.classPrefix + 'container ' + t.options.classPrefix + 'container-keyboard-inactive ' + t.media.className;
+ t.getElement(t.container).tabIndex = 0;
+ t.getElement(t.container).setAttribute('role', 'application');
+ t.getElement(t.container).setAttribute('aria-label', videoPlayerTitle);
+ t.getElement(t.container).innerHTML = '' + ('
') + ('
') + ('
') + '
';
+ t.getElement(t.container).addEventListener('focus', function (e) {
+ if (!t.controlsAreVisible && !t.hasFocus && t.controlsEnabled) {
+ t.showControls(true);
+
+ var btnSelector = (0, _general.isNodeAfter)(e.relatedTarget, t.getElement(t.container)) ? '.' + t.options.classPrefix + 'controls .' + t.options.classPrefix + 'button:last-child > button' : '.' + t.options.classPrefix + 'playpause-button > button',
+ button = t.getElement(t.container).querySelector(btnSelector);
+
+ button.focus();
+ }
+ });
+ t.node.parentNode.insertBefore(t.getElement(t.container), t.node);
+
+ if (!t.options.features.length && !t.options.useDefaultControls) {
+ t.getElement(t.container).style.background = 'transparent';
+ t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'controls').style.display = 'none';
+ }
+
+ if (t.isVideo && t.options.stretching === 'fill' && !dom.hasClass(t.getElement(t.container).parentNode, t.options.classPrefix + 'fill-container')) {
+ t.outerContainer = t.media.parentNode;
+
+ var wrapper = _document2.default.createElement('div');
+ wrapper.className = t.options.classPrefix + 'fill-container';
+ t.getElement(t.container).parentNode.insertBefore(wrapper, t.getElement(t.container));
+ wrapper.appendChild(t.getElement(t.container));
+ }
+
+ if (_constants.IS_ANDROID) {
+ dom.addClass(t.getElement(t.container), t.options.classPrefix + 'android');
+ }
+ if (_constants.IS_IOS) {
+ dom.addClass(t.getElement(t.container), t.options.classPrefix + 'ios');
+ }
+ if (_constants.IS_IPAD) {
+ dom.addClass(t.getElement(t.container), t.options.classPrefix + 'ipad');
+ }
+ if (_constants.IS_IPHONE) {
+ dom.addClass(t.getElement(t.container), t.options.classPrefix + 'iphone');
+ }
+ dom.addClass(t.getElement(t.container), t.isVideo ? t.options.classPrefix + 'video' : t.options.classPrefix + 'audio');
+
+ if (_constants.IS_SAFARI && !_constants.IS_IOS) {
+
+ dom.addClass(t.getElement(t.container), t.options.classPrefix + 'hide-cues');
+
+ var cloneNode = t.node.cloneNode(),
+ children = t.node.children,
+ mediaFiles = [],
+ tracks = [];
+
+ for (var i = 0, total = children.length; i < total; i++) {
+ var childNode = children[i];
+
+ (function () {
+ switch (childNode.tagName.toLowerCase()) {
+ case 'source':
+ var elements = {};
+ Array.prototype.slice.call(childNode.attributes).forEach(function (item) {
+ elements[item.name] = item.value;
+ });
+ elements.type = (0, _media.formatType)(elements.src, elements.type);
+ mediaFiles.push(elements);
+ break;
+ case 'track':
+ childNode.mode = 'hidden';
+ tracks.push(childNode);
+ break;
+ default:
+ cloneNode.appendChild(childNode);
+ break;
+ }
+ })();
+ }
+
+ t.node.remove();
+ t.node = t.media = cloneNode;
+
+ if (mediaFiles.length) {
+ t.mediaFiles = mediaFiles;
+ }
+ if (tracks.length) {
+ t.trackFiles = tracks;
+ }
+ }
+
+ t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'mediaelement').appendChild(t.node);
+
+ t.media.player = t;
+
+ t.controls = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'controls');
+ t.layers = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'layers');
+
+ var tagType = t.isVideo ? 'video' : 'audio',
+ capsTagName = tagType.substring(0, 1).toUpperCase() + tagType.substring(1);
+
+ if (t.options[tagType + 'Width'] > 0 || t.options[tagType + 'Width'].toString().indexOf('%') > -1) {
+ t.width = t.options[tagType + 'Width'];
+ } else if (t.node.style.width !== '' && t.node.style.width !== null) {
+ t.width = t.node.style.width;
+ } else if (t.node.getAttribute('width')) {
+ t.width = t.node.getAttribute('width');
+ } else {
+ t.width = t.options['default' + capsTagName + 'Width'];
+ }
+
+ if (t.options[tagType + 'Height'] > 0 || t.options[tagType + 'Height'].toString().indexOf('%') > -1) {
+ t.height = t.options[tagType + 'Height'];
+ } else if (t.node.style.height !== '' && t.node.style.height !== null) {
+ t.height = t.node.style.height;
+ } else if (t.node.getAttribute('height')) {
+ t.height = t.node.getAttribute('height');
+ } else {
+ t.height = t.options['default' + capsTagName + 'Height'];
+ }
+
+ t.initialAspectRatio = t.height >= t.width ? t.width / t.height : t.height / t.width;
+
+ t.setPlayerSize(t.width, t.height);
+
+ playerOptions.pluginWidth = t.width;
+ playerOptions.pluginHeight = t.height;
+ } else if (!t.isVideo && !t.options.features.length && !t.options.useDefaultControls) {
+ t.node.style.display = 'none';
+ }
+
+ _mejs2.default.MepDefaults = playerOptions;
+
+ new _mediaelement2.default(t.media, playerOptions, t.mediaFiles);
+
+ if (t.getElement(t.container) !== undefined && t.options.features.length && t.controlsAreVisible && !t.options.hideVideoControlsOnLoad) {
+ var event = (0, _general.createEvent)('controlsshown', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ }
+ }
+ }, {
+ key: 'showControls',
+ value: function showControls(doAnimation) {
+ var t = this;
+
+ doAnimation = doAnimation === undefined || doAnimation;
+
+ if (t.controlsAreVisible || !t.isVideo) {
+ return;
+ }
+
+ if (doAnimation) {
+ (function () {
+ dom.fadeIn(t.getElement(t.controls), 200, function () {
+ dom.removeClass(t.getElement(t.controls), t.options.classPrefix + 'offscreen');
+ var event = (0, _general.createEvent)('controlsshown', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ });
+
+ var controls = t.getElement(t.container).querySelectorAll('.' + t.options.classPrefix + 'control');
+
+ var _loop = function _loop(i, total) {
+ dom.fadeIn(controls[i], 200, function () {
+ dom.removeClass(controls[i], t.options.classPrefix + 'offscreen');
+ });
+ };
+
+ for (var i = 0, total = controls.length; i < total; i++) {
+ _loop(i, total);
+ }
+ })();
+ } else {
+ dom.removeClass(t.getElement(t.controls), t.options.classPrefix + 'offscreen');
+ t.getElement(t.controls).style.display = '';
+ t.getElement(t.controls).style.opacity = 1;
+
+ var controls = t.getElement(t.container).querySelectorAll('.' + t.options.classPrefix + 'control');
+ for (var i = 0, total = controls.length; i < total; i++) {
+ dom.removeClass(controls[i], t.options.classPrefix + 'offscreen');
+ controls[i].style.display = '';
+ }
+
+ var event = (0, _general.createEvent)('controlsshown', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ }
+
+ t.controlsAreVisible = true;
+ t.setControlsSize();
+ }
+ }, {
+ key: 'hideControls',
+ value: function hideControls(doAnimation, forceHide) {
+ var t = this;
+
+ doAnimation = doAnimation === undefined || doAnimation;
+
+ if (forceHide !== true && (!t.controlsAreVisible || t.options.alwaysShowControls || t.paused && t.readyState === 4 && (!t.options.hideVideoControlsOnLoad && t.currentTime <= 0 || !t.options.hideVideoControlsOnPause && t.currentTime > 0) || t.isVideo && !t.options.hideVideoControlsOnLoad && !t.readyState || t.ended)) {
+ return;
+ }
+
+ if (doAnimation) {
+ (function () {
+ dom.fadeOut(t.getElement(t.controls), 200, function () {
+ dom.addClass(t.getElement(t.controls), t.options.classPrefix + 'offscreen');
+ t.getElement(t.controls).style.display = '';
+ var event = (0, _general.createEvent)('controlshidden', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ });
+
+ var controls = t.getElement(t.container).querySelectorAll('.' + t.options.classPrefix + 'control');
+
+ var _loop2 = function _loop2(i, total) {
+ dom.fadeOut(controls[i], 200, function () {
+ dom.addClass(controls[i], t.options.classPrefix + 'offscreen');
+ controls[i].style.display = '';
+ });
+ };
+
+ for (var i = 0, total = controls.length; i < total; i++) {
+ _loop2(i, total);
+ }
+ })();
+ } else {
+ dom.addClass(t.getElement(t.controls), t.options.classPrefix + 'offscreen');
+ t.getElement(t.controls).style.display = '';
+ t.getElement(t.controls).style.opacity = 0;
+
+ var controls = t.getElement(t.container).querySelectorAll('.' + t.options.classPrefix + 'control');
+ for (var i = 0, total = controls.length; i < total; i++) {
+ dom.addClass(controls[i], t.options.classPrefix + 'offscreen');
+ controls[i].style.display = '';
+ }
+
+ var event = (0, _general.createEvent)('controlshidden', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ }
+
+ t.controlsAreVisible = false;
+ }
+ }, {
+ key: 'startControlsTimer',
+ value: function startControlsTimer(timeout) {
+ var t = this;
+
+ timeout = typeof timeout !== 'undefined' ? timeout : t.options.controlsTimeoutDefault;
+
+ t.killControlsTimer('start');
+
+ t.controlsTimer = setTimeout(function () {
+ t.hideControls();
+ t.killControlsTimer('hide');
+ }, timeout);
+ }
+ }, {
+ key: 'killControlsTimer',
+ value: function killControlsTimer() {
+ var t = this;
+
+ if (t.controlsTimer !== null) {
+ clearTimeout(t.controlsTimer);
+ delete t.controlsTimer;
+ t.controlsTimer = null;
+ }
+ }
+ }, {
+ key: 'disableControls',
+ value: function disableControls() {
+ var t = this;
+
+ t.killControlsTimer();
+ t.controlsEnabled = false;
+ t.hideControls(false, true);
+ }
+ }, {
+ key: 'enableControls',
+ value: function enableControls() {
+ var t = this;
+
+ t.controlsEnabled = true;
+ t.showControls(false);
+ }
+ }, {
+ key: '_setDefaultPlayer',
+ value: function _setDefaultPlayer() {
+ var t = this;
+ if (t.proxy) {
+ t.proxy.pause();
+ }
+ t.proxy = new _default2.default(t);
+ t.media.addEventListener('loadedmetadata', function () {
+ if (t.getCurrentTime() > 0 && t.currentMediaTime > 0) {
+ t.setCurrentTime(t.currentMediaTime);
+ if (!_constants.IS_IOS && !_constants.IS_ANDROID) {
+ t.play();
+ }
+ }
+ });
+ }
+ }, {
+ key: '_meReady',
+ value: function _meReady(media, domNode) {
+ var t = this,
+ autoplayAttr = domNode.getAttribute('autoplay'),
+ autoplay = !(autoplayAttr === undefined || autoplayAttr === null || autoplayAttr === 'false'),
+ isNative = media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName);
+
+ if (t.getElement(t.controls)) {
+ t.enableControls();
+ }
+
+ if (t.getElement(t.container) && t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'overlay-play')) {
+ t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'overlay-play').style.display = '';
+ }
+
+ if (t.created) {
+ return;
+ }
+
+ t.created = true;
+ t.media = media;
+ t.domNode = domNode;
+
+ if (!(_constants.IS_ANDROID && t.options.AndroidUseNativeControls) && !(_constants.IS_IPAD && t.options.iPadUseNativeControls) && !(_constants.IS_IPHONE && t.options.iPhoneUseNativeControls)) {
+ if (!t.isVideo && !t.options.features.length && !t.options.useDefaultControls) {
+ if (autoplay && isNative) {
+ t.play();
+ }
+
+ if (t.options.success) {
+
+ if (typeof t.options.success === 'string') {
+ _window2.default[t.options.success](t.media, t.domNode, t);
+ } else {
+ t.options.success(t.media, t.domNode, t);
+ }
+ }
+
+ return;
+ }
+
+ t.featurePosition = {};
+
+ t._setDefaultPlayer();
+
+ t.buildposter(t, t.getElement(t.controls), t.getElement(t.layers), t.media);
+ t.buildkeyboard(t, t.getElement(t.controls), t.getElement(t.layers), t.media);
+ t.buildoverlays(t, t.getElement(t.controls), t.getElement(t.layers), t.media);
+
+ if (t.options.useDefaultControls) {
+ var defaultControls = ['playpause', 'current', 'progress', 'duration', 'tracks', 'volume', 'fullscreen'];
+ t.options.features = defaultControls.concat(t.options.features.filter(function (item) {
+ return defaultControls.indexOf(item) === -1;
+ }));
+ }
+
+ t.buildfeatures(t, t.getElement(t.controls), t.getElement(t.layers), t.media);
+
+ var event = (0, _general.createEvent)('controlsready', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+
+ t.setPlayerSize(t.width, t.height);
+ t.setControlsSize();
+
+ if (t.isVideo) {
+ t.clickToPlayPauseCallback = function () {
+
+ if (t.options.clickToPlayPause) {
+ var button = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'overlay-button'),
+ pressed = button.getAttribute('aria-pressed');
+
+ if (t.paused && pressed) {
+ t.pause();
+ } else if (t.paused) {
+ t.play();
+ } else {
+ t.pause();
+ }
+
+ button.setAttribute('aria-pressed', !pressed);
+ t.getElement(t.container).focus();
+ }
+ };
+
+ t.createIframeLayer();
+
+ t.media.addEventListener('click', t.clickToPlayPauseCallback);
+
+ if ((_constants.IS_ANDROID || _constants.IS_IOS) && !t.options.alwaysShowControls) {
+ t.node.addEventListener('touchstart', function () {
+ if (t.controlsAreVisible) {
+ t.hideControls(false);
+ } else {
+ if (t.controlsEnabled) {
+ t.showControls(false);
+ }
+ }
+ }, _constants.SUPPORT_PASSIVE_EVENT ? { passive: true } : false);
+ } else {
+ t.getElement(t.container).addEventListener('mouseenter', function () {
+ if (t.controlsEnabled) {
+ if (!t.options.alwaysShowControls) {
+ t.killControlsTimer('enter');
+ t.showControls();
+ t.startControlsTimer(t.options.controlsTimeoutMouseEnter);
+ }
+ }
+ });
+ t.getElement(t.container).addEventListener('mousemove', function () {
+ if (t.controlsEnabled) {
+ if (!t.controlsAreVisible) {
+ t.showControls();
+ }
+ if (!t.options.alwaysShowControls) {
+ t.startControlsTimer(t.options.controlsTimeoutMouseEnter);
+ }
+ }
+ });
+ t.getElement(t.container).addEventListener('mouseleave', function () {
+ if (t.controlsEnabled) {
+ if (!t.paused && !t.options.alwaysShowControls) {
+ t.startControlsTimer(t.options.controlsTimeoutMouseLeave);
+ }
+ }
+ });
+ }
+
+ if (t.options.hideVideoControlsOnLoad) {
+ t.hideControls(false);
+ }
+
+ if (t.options.enableAutosize) {
+ t.media.addEventListener('loadedmetadata', function (e) {
+ var target = e !== undefined ? e.detail.target || e.target : t.media;
+ if (t.options.videoHeight <= 0 && !t.domNode.getAttribute('height') && !t.domNode.style.height && target !== null && !isNaN(target.videoHeight)) {
+ t.setPlayerSize(target.videoWidth, target.videoHeight);
+ t.setControlsSize();
+ t.media.setSize(target.videoWidth, target.videoHeight);
+ }
+ });
+ }
+ }
+
+ t.media.addEventListener('play', function () {
+ t.hasFocus = true;
+
+ for (var playerIndex in _mejs2.default.players) {
+ if (_mejs2.default.players.hasOwnProperty(playerIndex)) {
+ var p = _mejs2.default.players[playerIndex];
+
+ if (p.id !== t.id && t.options.pauseOtherPlayers && !p.paused && !p.ended) {
+ p.pause();
+ p.hasFocus = false;
+ }
+ }
+ }
+
+ if (!(_constants.IS_ANDROID || _constants.IS_IOS) && !t.options.alwaysShowControls && t.isVideo) {
+ t.hideControls();
+ }
+ });
+
+ t.media.addEventListener('ended', function () {
+ if (t.options.autoRewind) {
+ try {
+ t.setCurrentTime(0);
+
+ setTimeout(function () {
+ var loadingElement = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'overlay-loading');
+ if (loadingElement && loadingElement.parentNode) {
+ loadingElement.parentNode.style.display = 'none';
+ }
+ }, 20);
+ } catch (exp) {
+
+ }
+ }
+
+ if (typeof t.media.renderer.stop === 'function') {
+ t.media.renderer.stop();
+ } else {
+ t.pause();
+ }
+
+ if (t.setProgressRail) {
+ t.setProgressRail();
+ }
+ if (t.setCurrentRail) {
+ t.setCurrentRail();
+ }
+
+ if (t.options.loop) {
+ t.play();
+ } else if (!t.options.alwaysShowControls && t.controlsEnabled) {
+ t.showControls();
+ }
+ });
+
+ t.media.addEventListener('loadedmetadata', function () {
+
+ (0, _time.calculateTimeFormat)(t.getDuration(), t.options, t.options.framesPerSecond || 25);
+
+ if (t.updateDuration) {
+ t.updateDuration();
+ }
+ if (t.updateCurrent) {
+ t.updateCurrent();
+ }
+
+ if (!t.isFullScreen) {
+ t.setPlayerSize(t.width, t.height);
+ t.setControlsSize();
+ }
+ });
+
+ var duration = null;
+ t.media.addEventListener('timeupdate', function () {
+ if (!isNaN(t.getDuration()) && duration !== t.getDuration()) {
+ duration = t.getDuration();
+ (0, _time.calculateTimeFormat)(duration, t.options, t.options.framesPerSecond || 25);
+
+ if (t.updateDuration) {
+ t.updateDuration();
+ }
+ if (t.updateCurrent) {
+ t.updateCurrent();
+ }
+
+ t.setControlsSize();
+ }
+ });
+
+ t.getElement(t.container).addEventListener('click', function (e) {
+ dom.addClass(e.currentTarget, t.options.classPrefix + 'container-keyboard-inactive');
+ });
+
+ t.getElement(t.container).addEventListener('focusin', function (e) {
+ dom.removeClass(e.currentTarget, t.options.classPrefix + 'container-keyboard-inactive');
+ if (t.isVideo && !_constants.IS_ANDROID && !_constants.IS_IOS && t.controlsEnabled && !t.options.alwaysShowControls) {
+ t.killControlsTimer('enter');
+ t.showControls();
+ t.startControlsTimer(t.options.controlsTimeoutMouseEnter);
+ }
+ });
+
+ t.getElement(t.container).addEventListener('focusout', function (e) {
+ setTimeout(function () {
+ if (e.relatedTarget) {
+ if (t.keyboardAction && !e.relatedTarget.closest('.' + t.options.classPrefix + 'container')) {
+ t.keyboardAction = false;
+ if (t.isVideo && !t.options.alwaysShowControls && !t.paused) {
+ t.startControlsTimer(t.options.controlsTimeoutMouseLeave);
+ }
+ }
+ }
+ }, 0);
+ });
+
+ setTimeout(function () {
+ t.setPlayerSize(t.width, t.height);
+ t.setControlsSize();
+ }, 0);
+
+ t.globalResizeCallback = function () {
+ if (!(t.isFullScreen || _constants.HAS_TRUE_NATIVE_FULLSCREEN && _document2.default.webkitIsFullScreen)) {
+ t.setPlayerSize(t.width, t.height);
+ }
+
+ t.setControlsSize();
+ };
+
+ t.globalBind('resize', t.globalResizeCallback);
+ }
+
+ if (autoplay && isNative) {
+ t.play();
+ }
+
+ if (t.options.success) {
+ if (typeof t.options.success === 'string') {
+ _window2.default[t.options.success](t.media, t.domNode, t);
+ } else {
+ t.options.success(t.media, t.domNode, t);
+ }
+ }
+ }
+ }, {
+ key: '_handleError',
+ value: function _handleError(e, media, node) {
+ var t = this,
+ play = t.getElement(t.layers).querySelector('.' + t.options.classPrefix + 'overlay-play');
+
+ if (play) {
+ play.style.display = 'none';
+ }
+
+ if (t.options.error) {
+ t.options.error(e, media, node);
+ }
+
+ if (t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'cannotplay')) {
+ t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'cannotplay').remove();
+ }
+
+ var errorContainer = _document2.default.createElement('div');
+ errorContainer.className = t.options.classPrefix + 'cannotplay';
+ errorContainer.style.width = '100%';
+ errorContainer.style.height = '100%';
+
+ var errorContent = typeof t.options.customError === 'function' ? t.options.customError(t.media, t.media.originalNode) : t.options.customError,
+ imgError = '';
+
+ if (!errorContent) {
+ var poster = t.media.originalNode.getAttribute('poster');
+ if (poster) {
+ imgError = '';
+ }
+
+ if (e.message) {
+ errorContent = '' + e.message + '
';
+ }
+
+ if (e.urls) {
+ for (var i = 0, total = e.urls.length; i < total; i++) {
+ var url = e.urls[i];
+ errorContent += '' + _mejs2.default.i18n.t('mejs.download-file') + ': ' + url.src + '';
+ }
+ }
+ }
+
+ if (errorContent && t.getElement(t.layers).querySelector('.' + t.options.classPrefix + 'overlay-error')) {
+ errorContainer.innerHTML = errorContent;
+ t.getElement(t.layers).querySelector('.' + t.options.classPrefix + 'overlay-error').innerHTML = '' + imgError + errorContainer.outerHTML;
+ t.getElement(t.layers).querySelector('.' + t.options.classPrefix + 'overlay-error').parentNode.style.display = 'block';
+ }
+
+ if (t.controlsEnabled) {
+ t.disableControls();
+ }
+ }
+ }, {
+ key: 'setPlayerSize',
+ value: function setPlayerSize(width, height) {
+ var t = this;
+
+ if (!t.options.setDimensions) {
+ return false;
+ }
+
+ if (typeof width !== 'undefined') {
+ t.width = width;
+ }
+
+ if (typeof height !== 'undefined') {
+ t.height = height;
+ }
+
+ switch (t.options.stretching) {
+ case 'fill':
+ if (t.isVideo) {
+ t.setFillMode();
+ } else {
+ t.setDimensions(t.width, t.height);
+ }
+ break;
+ case 'responsive':
+ t.setResponsiveMode();
+ break;
+ case 'none':
+ t.setDimensions(t.width, t.height);
+ break;
+
+ default:
+ if (t.hasFluidMode() === true) {
+ t.setResponsiveMode();
+ } else {
+ t.setDimensions(t.width, t.height);
+ }
+ break;
+ }
+ }
+ }, {
+ key: 'hasFluidMode',
+ value: function hasFluidMode() {
+ var t = this;
+
+ return t.height.toString().indexOf('%') !== -1 || t.node && t.node.style.maxWidth && t.node.style.maxWidth !== 'none' && t.node.style.maxWidth !== t.width || t.node && t.node.currentStyle && t.node.currentStyle.maxWidth === '100%';
+ }
+ }, {
+ key: 'setResponsiveMode',
+ value: function setResponsiveMode() {
+ var t = this,
+ parent = function () {
+
+ var parentEl = void 0,
+ el = t.getElement(t.container);
+
+ while (el) {
+ try {
+ if (_constants.IS_FIREFOX && el.tagName.toLowerCase() === 'html' && _window2.default.self !== _window2.default.top && _window2.default.frameElement !== null) {
+ return _window2.default.frameElement;
+ } else {
+ parentEl = el.parentElement;
+ }
+ } catch (e) {
+ parentEl = el.parentElement;
+ }
+
+ if (parentEl && dom.visible(parentEl)) {
+ return parentEl;
+ }
+ el = parentEl;
+ }
+
+ return null;
+ }(),
+ parentStyles = parent ? getComputedStyle(parent, null) : getComputedStyle(_document2.default.body, null),
+ nativeWidth = function () {
+ if (t.isVideo) {
+ if (t.node.videoWidth && t.node.videoWidth > 0) {
+ return t.node.videoWidth;
+ } else if (t.node.getAttribute('width')) {
+ return t.node.getAttribute('width');
+ } else {
+ return t.options.defaultVideoWidth;
+ }
+ } else {
+ return t.options.defaultAudioWidth;
+ }
+ }(),
+ nativeHeight = function () {
+ if (t.isVideo) {
+ if (t.node.videoHeight && t.node.videoHeight > 0) {
+ return t.node.videoHeight;
+ } else if (t.node.getAttribute('height')) {
+ return t.node.getAttribute('height');
+ } else {
+ return t.options.defaultVideoHeight;
+ }
+ } else {
+ return t.options.defaultAudioHeight;
+ }
+ }(),
+ aspectRatio = function () {
+ var ratio = 1;
+ if (!t.isVideo) {
+ return ratio;
+ }
+
+ if (t.node.videoWidth && t.node.videoWidth > 0 && t.node.videoHeight && t.node.videoHeight > 0) {
+ ratio = t.height >= t.width ? t.node.videoWidth / t.node.videoHeight : t.node.videoHeight / t.node.videoWidth;
+ } else {
+ ratio = t.initialAspectRatio;
+ }
+
+ if (isNaN(ratio) || ratio < 0.01 || ratio > 100) {
+ ratio = 1;
+ }
+
+ return ratio;
+ }(),
+ parentHeight = parseFloat(parentStyles.height);
+
+ var newHeight = void 0,
+ parentWidth = parseFloat(parentStyles.width);
+
+ if (t.isVideo) {
+ if (t.height === '100%') {
+ newHeight = parseFloat(parentWidth * nativeHeight / nativeWidth, 10);
+ } else {
+ newHeight = t.height >= t.width ? parseFloat(parentWidth / aspectRatio, 10) : parseFloat(parentWidth * aspectRatio, 10);
+ }
+ } else {
+ newHeight = nativeHeight;
+ }
+
+ if (isNaN(newHeight)) {
+ newHeight = parentHeight;
+ }
+
+ if (t.getElement(t.container).parentNode.length > 0 && t.getElement(t.container).parentNode.tagName.toLowerCase() === 'body') {
+ parentWidth = _window2.default.innerWidth || _document2.default.documentElement.clientWidth || _document2.default.body.clientWidth;
+ newHeight = _window2.default.innerHeight || _document2.default.documentElement.clientHeight || _document2.default.body.clientHeight;
+ }
+
+ if (newHeight && parentWidth) {
+ t.getElement(t.container).style.width = parentWidth + 'px';
+ t.getElement(t.container).style.height = newHeight + 'px';
+
+ t.node.style.width = '100%';
+ t.node.style.height = '100%';
+
+ if (t.isVideo && t.media.setSize) {
+ t.media.setSize(parentWidth, newHeight);
+ }
+
+ var layerChildren = t.getElement(t.layers).children;
+ for (var i = 0, total = layerChildren.length; i < total; i++) {
+ layerChildren[i].style.width = '100%';
+ layerChildren[i].style.height = '100%';
+ }
+ }
+ }
+ }, {
+ key: 'setFillMode',
+ value: function setFillMode() {
+ var t = this;
+ var isIframe = _window2.default.self !== _window2.default.top && _window2.default.frameElement !== null;
+ var parent = function () {
+ var parentEl = void 0,
+ el = t.getElement(t.container);
+
+ while (el) {
+ try {
+ if (_constants.IS_FIREFOX && el.tagName.toLowerCase() === 'html' && _window2.default.self !== _window2.default.top && _window2.default.frameElement !== null) {
+ return _window2.default.frameElement;
+ } else {
+ parentEl = el.parentElement;
+ }
+ } catch (e) {
+ parentEl = el.parentElement;
+ }
+
+ if (parentEl && dom.visible(parentEl)) {
+ return parentEl;
+ }
+ el = parentEl;
+ }
+
+ return null;
+ }();
+ var parentStyles = parent ? getComputedStyle(parent, null) : getComputedStyle(_document2.default.body, null);
+
+ if (t.node.style.height !== 'none' && t.node.style.height !== t.height) {
+ t.node.style.height = 'auto';
+ }
+ if (t.node.style.maxWidth !== 'none' && t.node.style.maxWidth !== t.width) {
+ t.node.style.maxWidth = 'none';
+ }
+
+ if (t.node.style.maxHeight !== 'none' && t.node.style.maxHeight !== t.height) {
+ t.node.style.maxHeight = 'none';
+ }
+
+ if (t.node.currentStyle) {
+ if (t.node.currentStyle.height === '100%') {
+ t.node.currentStyle.height = 'auto';
+ }
+ if (t.node.currentStyle.maxWidth === '100%') {
+ t.node.currentStyle.maxWidth = 'none';
+ }
+ if (t.node.currentStyle.maxHeight === '100%') {
+ t.node.currentStyle.maxHeight = 'none';
+ }
+ }
+
+ if (!isIframe && !parseFloat(parentStyles.width)) {
+ parent.style.width = t.media.offsetWidth + 'px';
+ }
+
+ if (!isIframe && !parseFloat(parentStyles.height)) {
+ parent.style.height = t.media.offsetHeight + 'px';
+ }
+
+ parentStyles = getComputedStyle(parent);
+
+ var parentWidth = parseFloat(parentStyles.width),
+ parentHeight = parseFloat(parentStyles.height);
+
+ t.setDimensions('100%', '100%');
+
+ var poster = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'poster>img');
+ if (poster) {
+ poster.style.display = '';
+ }
+
+ var targetElement = t.getElement(t.container).querySelectorAll('object, embed, iframe, video'),
+ initHeight = t.height,
+ initWidth = t.width,
+ scaleX1 = parentWidth,
+ scaleY1 = initHeight * parentWidth / initWidth,
+ scaleX2 = initWidth * parentHeight / initHeight,
+ scaleY2 = parentHeight,
+ bScaleOnWidth = scaleX2 > parentWidth === false,
+ finalWidth = bScaleOnWidth ? Math.floor(scaleX1) : Math.floor(scaleX2),
+ finalHeight = bScaleOnWidth ? Math.floor(scaleY1) : Math.floor(scaleY2),
+ width = bScaleOnWidth ? parentWidth + 'px' : finalWidth + 'px',
+ height = bScaleOnWidth ? finalHeight + 'px' : parentHeight + 'px';
+
+ for (var i = 0, total = targetElement.length; i < total; i++) {
+ targetElement[i].style.height = height;
+ targetElement[i].style.width = width;
+ if (t.media.setSize) {
+ t.media.setSize(width, height);
+ }
+
+ targetElement[i].style.marginLeft = Math.floor((parentWidth - finalWidth) / 2) + 'px';
+ targetElement[i].style.marginTop = 0;
+ }
+ }
+ }, {
+ key: 'setDimensions',
+ value: function setDimensions(width, height) {
+ var t = this;
+
+ width = (0, _general.isString)(width) && width.indexOf('%') > -1 ? width : parseFloat(width) + 'px';
+ height = (0, _general.isString)(height) && height.indexOf('%') > -1 ? height : parseFloat(height) + 'px';
+
+ t.getElement(t.container).style.width = width;
+ t.getElement(t.container).style.height = height;
+
+ var layers = t.getElement(t.layers).children;
+ for (var i = 0, total = layers.length; i < total; i++) {
+ layers[i].style.width = width;
+ layers[i].style.height = height;
+ }
+ }
+ }, {
+ key: 'setControlsSize',
+ value: function setControlsSize() {
+ var t = this;
+
+ if (!dom.visible(t.getElement(t.container))) {
+ return;
+ }
+
+ if (t.rail && dom.visible(t.rail)) {
+ var totalStyles = t.total ? getComputedStyle(t.total, null) : null,
+ totalMargin = totalStyles ? parseFloat(totalStyles.marginLeft) + parseFloat(totalStyles.marginRight) : 0,
+ railStyles = getComputedStyle(t.rail),
+ railMargin = parseFloat(railStyles.marginLeft) + parseFloat(railStyles.marginRight);
+
+ var siblingsWidth = 0;
+
+ var siblings = dom.siblings(t.rail, function (el) {
+ return el !== t.rail;
+ }),
+ total = siblings.length;
+ for (var i = 0; i < total; i++) {
+ siblingsWidth += siblings[i].offsetWidth;
+ }
+
+ siblingsWidth += totalMargin + (totalMargin === 0 ? railMargin * 2 : railMargin) + 1;
+
+ t.getElement(t.container).style.minWidth = siblingsWidth + 'px';
+
+ var event = (0, _general.createEvent)('controlsresize', t.getElement(t.container));
+ t.getElement(t.container).dispatchEvent(event);
+ } else {
+ var children = t.getElement(t.controls).children;
+ var minWidth = 0;
+
+ for (var _i = 0, _total = children.length; _i < _total; _i++) {
+ minWidth += children[_i].offsetWidth;
+ }
+
+ t.getElement(t.container).style.minWidth = minWidth + 'px';
+ }
+ }
+ }, {
+ key: 'addControlElement',
+ value: function addControlElement(element, key) {
+
+ var t = this;
+
+ if (t.featurePosition[key] !== undefined) {
+ var child = t.getElement(t.controls).children[t.featurePosition[key] - 1];
+ child.parentNode.insertBefore(element, child.nextSibling);
+ } else {
+ t.getElement(t.controls).appendChild(element);
+ var children = t.getElement(t.controls).children;
+ for (var i = 0, total = children.length; i < total; i++) {
+ if (element === children[i]) {
+ t.featurePosition[key] = i;
+ break;
+ }
+ }
+ }
+ }
+ }, {
+ key: 'createIframeLayer',
+ value: function createIframeLayer() {
+ var t = this;
+
+ if (t.isVideo && t.media.rendererName !== null && t.media.rendererName.indexOf('iframe') > -1 && !_document2.default.getElementById(t.media.id + '-iframe-overlay')) {
+
+ var layer = _document2.default.createElement('div'),
+ target = _document2.default.getElementById(t.media.id + '_' + t.media.rendererName);
+
+ layer.id = t.media.id + '-iframe-overlay';
+ layer.className = t.options.classPrefix + 'iframe-overlay';
+ layer.addEventListener('click', function (e) {
+ if (t.options.clickToPlayPause) {
+ if (t.paused) {
+ t.play();
+ } else {
+ t.pause();
+ }
+
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ });
+
+ target.parentNode.insertBefore(layer, target);
+ }
+ }
+ }, {
+ key: 'resetSize',
+ value: function resetSize() {
+ var t = this;
+
+ setTimeout(function () {
+ t.setPlayerSize(t.width, t.height);
+ t.setControlsSize();
+ }, 50);
+ }
+ }, {
+ key: 'setPoster',
+ value: function setPoster(url) {
+ var t = this;
+
+ if (t.getElement(t.container)) {
+ var posterDiv = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'poster');
+
+ if (!posterDiv) {
+ posterDiv = _document2.default.createElement('div');
+ posterDiv.className = t.options.classPrefix + 'poster ' + t.options.classPrefix + 'layer';
+ t.getElement(t.layers).appendChild(posterDiv);
+ }
+
+ var posterImg = posterDiv.querySelector('img');
+
+ if (!posterImg && url) {
+ posterImg = _document2.default.createElement('img');
+ posterImg.className = t.options.classPrefix + 'poster-img';
+ posterImg.width = '100%';
+ posterImg.height = '100%';
+ posterDiv.style.display = '';
+ posterDiv.appendChild(posterImg);
+ }
+
+ if (url) {
+ posterImg.setAttribute('src', url);
+ posterDiv.style.backgroundImage = 'url("' + url + '")';
+ posterDiv.style.display = '';
+ } else if (posterImg) {
+ posterDiv.style.backgroundImage = 'none';
+ posterDiv.style.display = 'none';
+ posterImg.remove();
+ } else {
+ posterDiv.style.display = 'none';
+ }
+ } else if (_constants.IS_IPAD && t.options.iPadUseNativeControls || _constants.IS_IPHONE && t.options.iPhoneUseNativeControls || _constants.IS_ANDROID && t.options.AndroidUseNativeControls) {
+ t.media.originalNode.poster = url;
+ }
+ }
+ }, {
+ key: 'changeSkin',
+ value: function changeSkin(className) {
+ var t = this;
+
+ t.getElement(t.container).className = t.options.classPrefix + 'container ' + className;
+ t.setPlayerSize(t.width, t.height);
+ t.setControlsSize();
+ }
+ }, {
+ key: 'globalBind',
+ value: function globalBind(events, callback) {
+ var t = this,
+ doc = t.node ? t.node.ownerDocument : _document2.default;
+
+ events = (0, _general.splitEvents)(events, t.id);
+ if (events.d) {
+ var eventList = events.d.split(' ');
+ for (var i = 0, total = eventList.length; i < total; i++) {
+ eventList[i].split('.').reduce(function (part, e) {
+ doc.addEventListener(e, callback, false);
+ return e;
+ }, '');
+ }
+ }
+ if (events.w) {
+ var _eventList = events.w.split(' ');
+ for (var _i2 = 0, _total2 = _eventList.length; _i2 < _total2; _i2++) {
+ _eventList[_i2].split('.').reduce(function (part, e) {
+ _window2.default.addEventListener(e, callback, false);
+ return e;
+ }, '');
+ }
+ }
+ }
+ }, {
+ key: 'globalUnbind',
+ value: function globalUnbind(events, callback) {
+ var t = this,
+ doc = t.node ? t.node.ownerDocument : _document2.default;
+
+ events = (0, _general.splitEvents)(events, t.id);
+ if (events.d) {
+ var eventList = events.d.split(' ');
+ for (var i = 0, total = eventList.length; i < total; i++) {
+ eventList[i].split('.').reduce(function (part, e) {
+ doc.removeEventListener(e, callback, false);
+ return e;
+ }, '');
+ }
+ }
+ if (events.w) {
+ var _eventList2 = events.w.split(' ');
+ for (var _i3 = 0, _total3 = _eventList2.length; _i3 < _total3; _i3++) {
+ _eventList2[_i3].split('.').reduce(function (part, e) {
+ _window2.default.removeEventListener(e, callback, false);
+ return e;
+ }, '');
+ }
+ }
+ }
+ }, {
+ key: 'buildfeatures',
+ value: function buildfeatures(player, controls, layers, media) {
+ var t = this;
+
+ for (var i = 0, total = t.options.features.length; i < total; i++) {
+ var feature = t.options.features[i];
+ if (t['build' + feature]) {
+ try {
+ t['build' + feature](player, controls, layers, media);
+ } catch (e) {
+ console.error('error building ' + feature, e);
+ }
+ }
+ }
+ }
+ }, {
+ key: 'buildposter',
+ value: function buildposter(player, controls, layers, media) {
+ var t = this,
+ poster = _document2.default.createElement('div');
+
+ poster.className = t.options.classPrefix + 'poster ' + t.options.classPrefix + 'layer';
+ layers.appendChild(poster);
+
+ var posterUrl = media.originalNode.getAttribute('poster');
+
+ if (player.options.poster !== '') {
+ if (posterUrl && _constants.IS_IOS) {
+ media.originalNode.removeAttribute('poster');
+ }
+ posterUrl = player.options.poster;
+ }
+
+ if (posterUrl) {
+ t.setPoster(posterUrl);
+ } else if (t.media.renderer !== null && typeof t.media.renderer.getPosterUrl === 'function') {
+ t.setPoster(t.media.renderer.getPosterUrl());
+ } else {
+ poster.style.display = 'none';
+ }
+
+ media.addEventListener('play', function () {
+ poster.style.display = 'none';
+ });
+
+ media.addEventListener('playing', function () {
+ poster.style.display = 'none';
+ });
+
+ if (player.options.showPosterWhenEnded && player.options.autoRewind) {
+ media.addEventListener('ended', function () {
+ poster.style.display = '';
+ });
+ }
+
+ media.addEventListener('error', function () {
+ poster.style.display = 'none';
+ });
+
+ if (player.options.showPosterWhenPaused) {
+ media.addEventListener('pause', function () {
+ if (!player.ended) {
+ poster.style.display = '';
+ }
+ });
+ }
+ }
+ }, {
+ key: 'buildoverlays',
+ value: function buildoverlays(player, controls, layers, media) {
+
+ if (!player.isVideo) {
+ return;
+ }
+
+ var t = this,
+ loading = _document2.default.createElement('div'),
+ error = _document2.default.createElement('div'),
+ bigPlay = _document2.default.createElement('div');
+
+ loading.style.display = 'none';
+ loading.className = t.options.classPrefix + 'overlay ' + t.options.classPrefix + 'layer';
+ loading.innerHTML = '' + ('') + '
';
+ layers.appendChild(loading);
+
+ error.style.display = 'none';
+ error.className = t.options.classPrefix + 'overlay ' + t.options.classPrefix + 'layer';
+ error.innerHTML = '';
+ layers.appendChild(error);
+
+ bigPlay.className = t.options.classPrefix + 'overlay ' + t.options.classPrefix + 'layer ' + t.options.classPrefix + 'overlay-play';
+ bigPlay.innerHTML = '');
+ bigPlay.addEventListener('click', function () {
+ if (t.options.clickToPlayPause) {
+
+ var button = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'overlay-button'),
+ pressed = button.getAttribute('aria-pressed');
+
+ if (t.paused) {
+ t.play();
+ } else {
+ t.pause();
+ }
+
+ button.setAttribute('aria-pressed', !!pressed);
+ t.getElement(t.container).focus();
+ }
+ });
+
+ bigPlay.addEventListener('keydown', function (e) {
+ var keyPressed = e.keyCode || e.which || 0;
+
+ if (keyPressed === 13 || _constants.IS_FIREFOX && keyPressed === 32) {
+ var event = (0, _general.createEvent)('click', bigPlay);
+ bigPlay.dispatchEvent(event);
+ return false;
+ }
+ });
+
+ layers.appendChild(bigPlay);
+
+ if (t.media.rendererName !== null && (/(youtube|facebook)/i.test(t.media.rendererName) && !(t.media.originalNode.getAttribute('poster') || player.options.poster || typeof t.media.renderer.getPosterUrl === 'function' && t.media.renderer.getPosterUrl()) || _constants.IS_STOCK_ANDROID || t.media.originalNode.getAttribute('autoplay'))) {
+ bigPlay.style.display = 'none';
+ }
+
+ var hasError = false;
+
+ media.addEventListener('play', function () {
+ bigPlay.style.display = 'none';
+ loading.style.display = 'none';
+ error.style.display = 'none';
+ hasError = false;
+ });
+ media.addEventListener('playing', function () {
+ bigPlay.style.display = 'none';
+ loading.style.display = 'none';
+ error.style.display = 'none';
+ hasError = false;
+ });
+ media.addEventListener('seeking', function () {
+ bigPlay.style.display = 'none';
+ loading.style.display = '';
+ hasError = false;
+ });
+ media.addEventListener('seeked', function () {
+ bigPlay.style.display = t.paused && !_constants.IS_STOCK_ANDROID ? '' : 'none';
+ loading.style.display = 'none';
+ hasError = false;
+ });
+ media.addEventListener('pause', function () {
+ loading.style.display = 'none';
+ if (!_constants.IS_STOCK_ANDROID && !hasError) {
+ bigPlay.style.display = '';
+ }
+ hasError = false;
+ });
+ media.addEventListener('waiting', function () {
+ loading.style.display = '';
+ hasError = false;
+ });
+
+ media.addEventListener('loadeddata', function () {
+ loading.style.display = '';
+
+ if (_constants.IS_ANDROID) {
+ media.canplayTimeout = setTimeout(function () {
+ if (_document2.default.createEvent) {
+ var evt = _document2.default.createEvent('HTMLEvents');
+ evt.initEvent('canplay', true, true);
+ return media.dispatchEvent(evt);
+ }
+ }, 300);
+ }
+ hasError = false;
+ });
+ media.addEventListener('canplay', function () {
+ loading.style.display = 'none';
+
+ clearTimeout(media.canplayTimeout);
+ hasError = false;
+ });
+
+ media.addEventListener('error', function (e) {
+ t._handleError(e, t.media, t.node);
+ loading.style.display = 'none';
+ bigPlay.style.display = 'none';
+ hasError = true;
+ });
+
+ media.addEventListener('loadedmetadata', function () {
+ if (!t.controlsEnabled) {
+ t.enableControls();
+ }
+ });
+
+ media.addEventListener('keydown', function (e) {
+ t.onkeydown(player, media, e);
+ hasError = false;
+ });
+ }
+ }, {
+ key: 'buildkeyboard',
+ value: function buildkeyboard(player, controls, layers, media) {
+
+ var t = this;
+
+ t.getElement(t.container).addEventListener('keydown', function () {
+ t.keyboardAction = true;
+ });
+
+ t.globalKeydownCallback = function (event) {
+ var container = _document2.default.activeElement.closest('.' + t.options.classPrefix + 'container'),
+ target = t.media.closest('.' + t.options.classPrefix + 'container');
+ t.hasFocus = !!(container && target && container.id === target.id);
+ return t.onkeydown(player, media, event);
+ };
+
+ t.globalClickCallback = function (event) {
+ t.hasFocus = !!event.target.closest('.' + t.options.classPrefix + 'container');
+ };
+
+ t.globalBind('keydown', t.globalKeydownCallback);
+
+ t.globalBind('click', t.globalClickCallback);
+ }
+ }, {
+ key: 'onkeydown',
+ value: function onkeydown(player, media, e) {
+
+ if (player.hasFocus && player.options.enableKeyboard) {
+ for (var i = 0, total = player.options.keyActions.length; i < total; i++) {
+ var keyAction = player.options.keyActions[i];
+
+ for (var j = 0, jl = keyAction.keys.length; j < jl; j++) {
+ if (e.keyCode === keyAction.keys[j]) {
+ keyAction.action(player, media, e.keyCode, e);
+ e.preventDefault();
+ e.stopPropagation();
+ return;
+ }
+ }
+ }
+ }
+
+ return true;
+ }
+ }, {
+ key: 'play',
+ value: function play() {
+ this.proxy.play();
+ }
+ }, {
+ key: 'pause',
+ value: function pause() {
+ this.proxy.pause();
+ }
+ }, {
+ key: 'load',
+ value: function load() {
+ this.proxy.load();
+ }
+ }, {
+ key: 'setCurrentTime',
+ value: function setCurrentTime(time) {
+ this.proxy.setCurrentTime(time);
+ }
+ }, {
+ key: 'getCurrentTime',
+ value: function getCurrentTime() {
+ return this.proxy.currentTime;
+ }
+ }, {
+ key: 'getDuration',
+ value: function getDuration() {
+ return this.proxy.duration;
+ }
+ }, {
+ key: 'setVolume',
+ value: function setVolume(volume) {
+ this.proxy.volume = volume;
+ }
+ }, {
+ key: 'getVolume',
+ value: function getVolume() {
+ return this.proxy.getVolume();
+ }
+ }, {
+ key: 'setMuted',
+ value: function setMuted(value) {
+ this.proxy.setMuted(value);
+ }
+ }, {
+ key: 'setSrc',
+ value: function setSrc(src) {
+ if (!this.controlsEnabled) {
+ this.enableControls();
+ }
+ this.proxy.setSrc(src);
+ }
+ }, {
+ key: 'getSrc',
+ value: function getSrc() {
+ return this.proxy.getSrc();
+ }
+ }, {
+ key: 'canPlayType',
+ value: function canPlayType(type) {
+ return this.proxy.canPlayType(type);
+ }
+ }, {
+ key: 'remove',
+ value: function remove() {
+ var t = this,
+ rendererName = t.media.rendererName,
+ src = t.media.originalNode.src;
+
+ for (var featureIndex in t.options.features) {
+ var feature = t.options.features[featureIndex];
+ if (t['clean' + feature]) {
+ try {
+ t['clean' + feature](t, t.getElement(t.layers), t.getElement(t.controls), t.media);
+ } catch (e) {
+ console.error('error cleaning ' + feature, e);
+ }
+ }
+ }
+
+ var nativeWidth = t.node.getAttribute('width'),
+ nativeHeight = t.node.getAttribute('height');
+
+ if (nativeWidth) {
+ if (nativeWidth.indexOf('%') === -1) {
+ nativeWidth = nativeWidth + 'px';
+ }
+ } else {
+ nativeWidth = 'auto';
+ }
+
+ if (nativeHeight) {
+ if (nativeHeight.indexOf('%') === -1) {
+ nativeHeight = nativeHeight + 'px';
+ }
+ } else {
+ nativeHeight = 'auto';
+ }
+
+ t.node.style.width = nativeWidth;
+ t.node.style.height = nativeHeight;
+
+ t.setPlayerSize(0, 0);
+
+ if (!t.isDynamic) {
+ (function () {
+ t.node.setAttribute('controls', true);
+ t.node.setAttribute('id', t.node.getAttribute('id').replace('_' + rendererName, '').replace('_from_mejs', ''));
+ var poster = t.getElement(t.container).querySelector('.' + t.options.classPrefix + 'poster>img');
+ if (poster) {
+ t.node.setAttribute('poster', poster.src);
+ }
+
+ delete t.node.autoplay;
+
+ t.node.setAttribute('src', '');
+ if (t.media.canPlayType((0, _media.getTypeFromFile)(src)) !== '') {
+ t.node.setAttribute('src', src);
+ }
+
+ if (rendererName && rendererName.indexOf('iframe') > -1) {
+ var layer = _document2.default.getElementById(t.media.id + '-iframe-overlay');
+ layer.remove();
+ }
+
+ var node = t.node.cloneNode();
+ node.style.display = '';
+ t.getElement(t.container).parentNode.insertBefore(node, t.getElement(t.container));
+ t.node.remove();
+
+ if (t.mediaFiles) {
+ for (var i = 0, total = t.mediaFiles.length; i < total; i++) {
+ var source = _document2.default.createElement('source');
+ source.setAttribute('src', t.mediaFiles[i].src);
+ source.setAttribute('type', t.mediaFiles[i].type);
+ node.appendChild(source);
+ }
+ }
+ if (t.trackFiles) {
+ var _loop3 = function _loop3(_i4, _total4) {
+ var track = t.trackFiles[_i4];
+ var newTrack = _document2.default.createElement('track');
+ newTrack.kind = track.kind;
+ newTrack.label = track.label;
+ newTrack.srclang = track.srclang;
+ newTrack.src = track.src;
+
+ node.appendChild(newTrack);
+ newTrack.addEventListener('load', function () {
+ this.mode = 'showing';
+ node.textTracks[_i4].mode = 'showing';
+ });
+ };
+
+ for (var _i4 = 0, _total4 = t.trackFiles.length; _i4 < _total4; _i4++) {
+ _loop3(_i4, _total4);
+ }
+ }
+
+ delete t.node;
+ delete t.mediaFiles;
+ delete t.trackFiles;
+ })();
+ } else {
+ t.getElement(t.container).parentNode.insertBefore(t.node, t.getElement(t.container));
+ }
+
+ if (t.media.renderer && typeof t.media.renderer.destroy === 'function') {
+ t.media.renderer.destroy();
+ }
+
+ delete _mejs2.default.players[t.id];
+
+ if (_typeof(t.getElement(t.container)) === 'object') {
+ var offscreen = t.getElement(t.container).parentNode.querySelector('.' + t.options.classPrefix + 'offscreen');
+ offscreen.remove();
+ t.getElement(t.container).remove();
+ }
+ t.globalUnbind('resize', t.globalResizeCallback);
+ t.globalUnbind('keydown', t.globalKeydownCallback);
+ t.globalUnbind('click', t.globalClickCallback);
+
+ delete t.media.player;
+ }
+ }, {
+ key: 'paused',
+ get: function get() {
+ return this.proxy.paused;
+ }
+ }, {
+ key: 'muted',
+ get: function get() {
+ return this.proxy.muted;
+ },
+ set: function set(muted) {
+ this.setMuted(muted);
+ }
+ }, {
+ key: 'ended',
+ get: function get() {
+ return this.proxy.ended;
+ }
+ }, {
+ key: 'readyState',
+ get: function get() {
+ return this.proxy.readyState;
+ }
+ }, {
+ key: 'currentTime',
+ set: function set(time) {
+ this.setCurrentTime(time);
+ },
+ get: function get() {
+ return this.getCurrentTime();
+ }
+ }, {
+ key: 'duration',
+ get: function get() {
+ return this.getDuration();
+ }
+ }, {
+ key: 'volume',
+ set: function set(volume) {
+ this.setVolume(volume);
+ },
+ get: function get() {
+ return this.getVolume();
+ }
+ }, {
+ key: 'src',
+ set: function set(src) {
+ this.setSrc(src);
+ },
+ get: function get() {
+ return this.getSrc();
+ }
+ }]);
+
+ return MediaElementPlayer;
+}();
+
+_window2.default.MediaElementPlayer = MediaElementPlayer;
+_mejs2.default.MediaElementPlayer = MediaElementPlayer;
+
+exports.default = MediaElementPlayer;
+
+},{"17":17,"2":2,"25":25,"26":26,"27":27,"28":28,"3":3,"30":30,"5":5,"6":6,"7":7}],17:[function(_dereq_,module,exports){
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var DefaultPlayer = function () {
+ function DefaultPlayer(player) {
+ _classCallCheck(this, DefaultPlayer);
+
+ this.media = player.media;
+ this.isVideo = player.isVideo;
+ this.classPrefix = player.options.classPrefix;
+ this.createIframeLayer = function () {
+ return player.createIframeLayer();
+ };
+ this.setPoster = function (url) {
+ return player.setPoster(url);
+ };
+ return this;
+ }
+
+ _createClass(DefaultPlayer, [{
+ key: 'play',
+ value: function play() {
+ this.media.play();
+ }
+ }, {
+ key: 'pause',
+ value: function pause() {
+ this.media.pause();
+ }
+ }, {
+ key: 'load',
+ value: function load() {
+ var t = this;
+
+ if (!t.isLoaded) {
+ t.media.load();
+ }
+
+ t.isLoaded = true;
+ }
+ }, {
+ key: 'setCurrentTime',
+ value: function setCurrentTime(time) {
+ this.media.setCurrentTime(time);
+ }
+ }, {
+ key: 'getCurrentTime',
+ value: function getCurrentTime() {
+ return this.media.currentTime;
+ }
+ }, {
+ key: 'getDuration',
+ value: function getDuration() {
+ return this.media.getDuration();
+ }
+ }, {
+ key: 'setVolume',
+ value: function setVolume(volume) {
+ this.media.setVolume(volume);
+ }
+ }, {
+ key: 'getVolume',
+ value: function getVolume() {
+ return this.media.getVolume();
+ }
+ }, {
+ key: 'setMuted',
+ value: function setMuted(value) {
+ this.media.setMuted(value);
+ }
+ }, {
+ key: 'setSrc',
+ value: function setSrc(src) {
+ var t = this,
+ layer = document.getElementById(t.media.id + '-iframe-overlay');
+
+ if (layer) {
+ layer.remove();
+ }
+
+ t.media.setSrc(src);
+ t.createIframeLayer();
+ if (t.media.renderer !== null && typeof t.media.renderer.getPosterUrl === 'function') {
+ t.setPoster(t.media.renderer.getPosterUrl());
+ }
+ }
+ }, {
+ key: 'getSrc',
+ value: function getSrc() {
+ return this.media.getSrc();
+ }
+ }, {
+ key: 'canPlayType',
+ value: function canPlayType(type) {
+ return this.media.canPlayType(type);
+ }
+ }, {
+ key: 'paused',
+ get: function get() {
+ return this.media.paused;
+ }
+ }, {
+ key: 'muted',
+ set: function set(muted) {
+ this.setMuted(muted);
+ },
+ get: function get() {
+ return this.media.muted;
+ }
+ }, {
+ key: 'ended',
+ get: function get() {
+ return this.media.ended;
+ }
+ }, {
+ key: 'readyState',
+ get: function get() {
+ return this.media.readyState;
+ }
+ }, {
+ key: 'currentTime',
+ set: function set(time) {
+ this.setCurrentTime(time);
+ },
+ get: function get() {
+ return this.getCurrentTime();
+ }
+ }, {
+ key: 'duration',
+ get: function get() {
+ return this.getDuration();
+ }
+ }, {
+ key: 'remainingTime',
+ get: function get() {
+ return this.getDuration() - this.currentTime();
+ }
+ }, {
+ key: 'volume',
+ set: function set(volume) {
+ this.setVolume(volume);
+ },
+ get: function get() {
+ return this.getVolume();
+ }
+ }, {
+ key: 'src',
+ set: function set(src) {
+ this.setSrc(src);
+ },
+ get: function get() {
+ return this.getSrc();
+ }
+ }]);
+
+ return DefaultPlayer;
+}();
+
+exports.default = DefaultPlayer;
+
+
+_window2.default.DefaultPlayer = DefaultPlayer;
+
+},{"3":3}],18:[function(_dereq_,module,exports){
+'use strict';
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+var _mejs = _dereq_(7);
+
+var _mejs2 = _interopRequireDefault(_mejs);
+
+var _player = _dereq_(16);
+
+var _player2 = _interopRequireDefault(_player);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+if (typeof jQuery !== 'undefined') {
+ _mejs2.default.$ = _window2.default.jQuery = _window2.default.$ = jQuery;
+} else if (typeof Zepto !== 'undefined') {
+ _mejs2.default.$ = _window2.default.Zepto = _window2.default.$ = Zepto;
+} else if (typeof ender !== 'undefined') {
+ _mejs2.default.$ = _window2.default.ender = _window2.default.$ = ender;
+}
+
+(function ($) {
+ if (typeof $ !== 'undefined') {
+ $.fn.mediaelementplayer = function (options) {
+ if (options === false) {
+ this.each(function () {
+ var player = $(this).data('mediaelementplayer');
+ if (player) {
+ player.remove();
+ }
+ $(this).removeData('mediaelementplayer');
+ });
+ } else {
+ this.each(function () {
+ $(this).data('mediaelementplayer', new _player2.default(this, options));
+ });
+ }
+ return this;
+ };
+
+ $(document).ready(function () {
+ $('.' + _mejs2.default.MepDefaults.classPrefix + 'player').mediaelementplayer();
+ });
+ }
+})(_mejs2.default.$);
+
+},{"16":16,"3":3,"7":7}],19:[function(_dereq_,module,exports){
+'use strict';
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+var _mejs = _dereq_(7);
+
+var _mejs2 = _interopRequireDefault(_mejs);
+
+var _renderer = _dereq_(8);
+
+var _general = _dereq_(27);
+
+var _media = _dereq_(28);
+
+var _constants = _dereq_(25);
+
+var _dom = _dereq_(26);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var NativeDash = {
+
+ promise: null,
+
+ load: function load(settings) {
+ if (typeof dashjs !== 'undefined') {
+ NativeDash.promise = new Promise(function (resolve) {
+ resolve();
+ }).then(function () {
+ NativeDash._createPlayer(settings);
+ });
+ } else {
+ settings.options.path = typeof settings.options.path === 'string' ? settings.options.path : 'https://cdn.dashjs.org/latest/dash.all.min.js';
+
+ NativeDash.promise = NativeDash.promise || (0, _dom.loadScript)(settings.options.path);
+ NativeDash.promise.then(function () {
+ NativeDash._createPlayer(settings);
+ });
+ }
+
+ return NativeDash.promise;
+ },
+
+ _createPlayer: function _createPlayer(settings) {
+ var player = dashjs.MediaPlayer().create();
+ _window2.default['__ready__' + settings.id](player);
+ return player;
+ }
+};
+
+var DashNativeRenderer = {
+ name: 'native_dash',
+ options: {
+ prefix: 'native_dash',
+ dash: {
+ path: 'https://cdn.dashjs.org/latest/dash.all.min.js',
+ debug: false,
+ drm: {},
+
+ robustnessLevel: ''
+ }
+ },
+
+ canPlayType: function canPlayType(type) {
+ return _constants.HAS_MSE && ['application/dash+xml'].indexOf(type.toLowerCase()) > -1;
+ },
+
+ create: function create(mediaElement, options, mediaFiles) {
+
+ var originalNode = mediaElement.originalNode,
+ id = mediaElement.id + '_' + options.prefix,
+ autoplay = originalNode.autoplay,
+ children = originalNode.children;
+
+ var node = null,
+ dashPlayer = null;
+
+ originalNode.removeAttribute('type');
+ for (var i = 0, total = children.length; i < total; i++) {
+ children[i].removeAttribute('type');
+ }
+
+ node = originalNode.cloneNode(true);
+ options = Object.assign(options, mediaElement.options);
+
+ var props = _mejs2.default.html5media.properties,
+ events = _mejs2.default.html5media.events.concat(['click', 'mouseover', 'mouseout']).filter(function (e) {
+ return e !== 'error';
+ }),
+ attachNativeEvents = function attachNativeEvents(e) {
+ var event = (0, _general.createEvent)(e.type, mediaElement);
+ mediaElement.dispatchEvent(event);
+ },
+ assignGettersSetters = function assignGettersSetters(propName) {
+ var capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1);
+
+ node['get' + capName] = function () {
+ return dashPlayer !== null ? node[propName] : null;
+ };
+
+ node['set' + capName] = function (value) {
+ if (_mejs2.default.html5media.readOnlyProperties.indexOf(propName) === -1) {
+ if (propName === 'src') {
+ var source = (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.src ? value.src : value;
+ node[propName] = source;
+ if (dashPlayer !== null) {
+ dashPlayer.reset();
+ for (var _i = 0, _total = events.length; _i < _total; _i++) {
+ node.removeEventListener(events[_i], attachNativeEvents);
+ }
+ dashPlayer = NativeDash._createPlayer({
+ options: options.dash,
+ id: id
+ });
+
+ if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && _typeof(value.drm) === 'object') {
+ dashPlayer.setProtectionData(value.drm);
+ if ((0, _general.isString)(options.dash.robustnessLevel) && options.dash.robustnessLevel) {
+ dashPlayer.getProtectionController().setRobustnessLevel(options.dash.robustnessLevel);
+ }
+ }
+ dashPlayer.attachSource(source);
+ if (autoplay) {
+ dashPlayer.play();
+ }
+ }
+ } else {
+ node[propName] = value;
+ }
+ }
+ };
+ };
+
+ for (var _i2 = 0, _total2 = props.length; _i2 < _total2; _i2++) {
+ assignGettersSetters(props[_i2]);
+ }
+
+ _window2.default['__ready__' + id] = function (_dashPlayer) {
+ mediaElement.dashPlayer = dashPlayer = _dashPlayer;
+
+ var dashEvents = dashjs.MediaPlayer.events,
+ assignEvents = function assignEvents(eventName) {
+ if (eventName === 'loadedmetadata') {
+ dashPlayer.getDebug().setLogToBrowserConsole(options.dash.debug);
+ dashPlayer.initialize();
+ dashPlayer.setScheduleWhilePaused(false);
+ dashPlayer.setFastSwitchEnabled(true);
+ dashPlayer.attachView(node);
+ dashPlayer.setAutoPlay(false);
+
+ if (_typeof(options.dash.drm) === 'object' && !_mejs2.default.Utils.isObjectEmpty(options.dash.drm)) {
+ dashPlayer.setProtectionData(options.dash.drm);
+ if ((0, _general.isString)(options.dash.robustnessLevel) && options.dash.robustnessLevel) {
+ dashPlayer.getProtectionController().setRobustnessLevel(options.dash.robustnessLevel);
+ }
+ }
+ dashPlayer.attachSource(node.getSrc());
+ }
+
+ node.addEventListener(eventName, attachNativeEvents);
+ };
+
+ for (var _i3 = 0, _total3 = events.length; _i3 < _total3; _i3++) {
+ assignEvents(events[_i3]);
+ }
+
+ var assignMdashEvents = function assignMdashEvents(e) {
+ if (e.type.toLowerCase() === 'error') {
+ mediaElement.generateError(e.message, node.src);
+ console.error(e);
+ } else {
+ var _event = (0, _general.createEvent)(e.type, mediaElement);
+ _event.data = e;
+ mediaElement.dispatchEvent(_event);
+ }
+ };
+
+ for (var eventType in dashEvents) {
+ if (dashEvents.hasOwnProperty(eventType)) {
+ dashPlayer.on(dashEvents[eventType], function (e) {
+ return assignMdashEvents(e);
+ });
+ }
+ }
+ };
+
+ if (mediaFiles && mediaFiles.length > 0) {
+ for (var _i4 = 0, _total4 = mediaFiles.length; _i4 < _total4; _i4++) {
+ if (_renderer.renderer.renderers[options.prefix].canPlayType(mediaFiles[_i4].type)) {
+ node.setAttribute('src', mediaFiles[_i4].src);
+ if (typeof mediaFiles[_i4].drm !== 'undefined') {
+ options.dash.drm = mediaFiles[_i4].drm;
+ }
+ break;
+ }
+ }
+ }
+
+ node.setAttribute('id', id);
+
+ originalNode.parentNode.insertBefore(node, originalNode);
+ originalNode.autoplay = false;
+ originalNode.style.display = 'none';
+
+ node.setSize = function (width, height) {
+ node.style.width = width + 'px';
+ node.style.height = height + 'px';
+ return node;
+ };
+
+ node.hide = function () {
+ node.pause();
+ node.style.display = 'none';
+ return node;
+ };
+
+ node.show = function () {
+ node.style.display = '';
+ return node;
+ };
+
+ node.destroy = function () {
+ if (dashPlayer !== null) {
+ dashPlayer.reset();
+ }
+ };
+
+ var event = (0, _general.createEvent)('rendererready', node);
+ mediaElement.dispatchEvent(event);
+
+ mediaElement.promises.push(NativeDash.load({
+ options: options.dash,
+ id: id
+ }));
+
+ return node;
+ }
+};
+
+_media.typeChecks.push(function (url) {
+ return ~url.toLowerCase().indexOf('.mpd') ? 'application/dash+xml' : null;
+});
+
+_renderer.renderer.add(DashNativeRenderer);
+
+},{"25":25,"26":26,"27":27,"28":28,"3":3,"7":7,"8":8}],20:[function(_dereq_,module,exports){
+'use strict';
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.PluginDetector = undefined;
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var _window = _dereq_(3);
+
+var _window2 = _interopRequireDefault(_window);
+
+var _document = _dereq_(2);
+
+var _document2 = _interopRequireDefault(_document);
+
+var _mejs = _dereq_(7);
+
+var _mejs2 = _interopRequireDefault(_mejs);
+
+var _i18n = _dereq_(5);
+
+var _i18n2 = _interopRequireDefault(_i18n);
+
+var _renderer = _dereq_(8);
+
+var _general = _dereq_(27);
+
+var _constants = _dereq_(25);
+
+var _media = _dereq_(28);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var PluginDetector = exports.PluginDetector = {
+ plugins: [],
+
+ hasPluginVersion: function hasPluginVersion(plugin, v) {
+ var pv = PluginDetector.plugins[plugin];
+ v[1] = v[1] || 0;
+ v[2] = v[2] || 0;
+ return pv[0] > v[0] || pv[0] === v[0] && pv[1] > v[1] || pv[0] === v[0] && pv[1] === v[1] && pv[2] >= v[2];
+ },
+
+ addPlugin: function addPlugin(p, pluginName, mimeType, activeX, axDetect) {
+ PluginDetector.plugins[p] = PluginDetector.detectPlugin(pluginName, mimeType, activeX, axDetect);
+ },
+
+ detectPlugin: function detectPlugin(pluginName, mimeType, activeX, axDetect) {
+
+ var version = [0, 0, 0],
+ description = void 0,
+ ax = void 0;
+
+ if (_constants.NAV.plugins !== null && _constants.NAV.plugins !== undefined && _typeof(_constants.NAV.plugins[pluginName]) === 'object') {
+ description = _constants.NAV.plugins[pluginName].description;
+ if (description && !(typeof _constants.NAV.mimeTypes !== 'undefined' && _constants.NAV.mimeTypes[mimeType] && !_constants.NAV.mimeTypes[mimeType].enabledPlugin)) {
+ version = description.replace(pluginName, '').replace(/^\s+/, '').replace(/\sr/gi, '.').split('.');
+ for (var i = 0, total = version.length; i < total; i++) {
+ version[i] = parseInt(version[i].match(/\d+/), 10);
+ }
+ }
+ } else if (_window2.default.ActiveXObject !== undefined) {
+ try {
+ ax = new ActiveXObject(activeX);
+ if (ax) {
+ version = axDetect(ax);
+ }
+ } catch (e) {
+
+ }
+ }
+ return version;
+ }
+};
+
+PluginDetector.addPlugin('flash', 'Shockwave Flash', 'application/x-shockwave-flash', 'ShockwaveFlash.ShockwaveFlash', function (ax) {
+ var version = [],
+ d = ax.GetVariable("$version");
+
+ if (d) {
+ d = d.split(" ")[1].split(",");
+ version = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
+ }
+ return version;
+});
+
+var FlashMediaElementRenderer = {
+ create: function create(mediaElement, options, mediaFiles) {
+
+ var flash = {};
+ var isActive = false;
+
+ flash.options = options;
+ flash.id = mediaElement.id + '_' + flash.options.prefix;
+ flash.mediaElement = mediaElement;
+ flash.flashState = {};
+ flash.flashApi = null;
+ flash.flashApiStack = [];
+
+ var props = _mejs2.default.html5media.properties,
+ assignGettersSetters = function assignGettersSetters(propName) {
+ flash.flashState[propName] = null;
+
+ var capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1);
+
+ flash['get' + capName] = function () {
+ if (flash.flashApi !== null) {
+ if (typeof flash.flashApi['get_' + propName] === 'function') {
+ var value = flash.flashApi['get_' + propName]();
+
+ if (propName === 'buffered') {
+ return {
+ start: function start() {
+ return 0;
+ },
+ end: function end() {
+ return value;
+ },
+ length: 1
+ };
+ }
+ return value;
+ } else {
+ return null;
+ }
+ } else {
+ return null;
+ }
+ };
+
+ flash['set' + capName] = function (value) {
+ if (propName === 'src') {
+ value = (0, _media.absolutizeUrl)(value);
+ }
+
+ if (flash.flashApi !== null && flash.flashApi['set_' + propName] !== undefined) {
+ try {
+ flash.flashApi['set_' + propName](value);
+ } catch (e) {
+
+ }
+ } else {
+ flash.flashApiStack.push({
+ type: 'set',
+ propName: propName,
+ value: value
+ });
+ }
+ };
+ };
+
+ for (var i = 0, total = props.length; i < total; i++) {
+ assignGettersSetters(props[i]);
+ }
+
+ var methods = _mejs2.default.html5media.methods,
+ assignMethods = function assignMethods(methodName) {
+ flash[methodName] = function () {
+ if (isActive) {
+ if (flash.flashApi !== null) {
+ if (flash.flashApi['fire_' + methodName]) {
+ try {
+ flash.flashApi['fire_' + methodName]();
+ } catch (e) {
+
+ }
+ } else {
+
+ }
+ } else {
+ flash.flashApiStack.push({
+ type: 'call',
+ methodName: methodName
+ });
+ }
+ }
+ };
+ };
+ methods.push('stop');
+ for (var _i = 0, _total = methods.length; _i < _total; _i++) {
+ assignMethods(methods[_i]);
+ }
+
+ var initEvents = ['rendererready'];
+
+ for (var _i2 = 0, _total2 = initEvents.length; _i2 < _total2; _i2++) {
+ var event = (0, _general.createEvent)(initEvents[_i2], flash);
+ mediaElement.dispatchEvent(event);
+ }
+
+ _window2.default['__ready__' + flash.id] = function () {
+
+ flash.flashReady = true;
+ flash.flashApi = _document2.default.getElementById('__' + flash.id);
+
+ if (flash.flashApiStack.length) {
+ for (var _i3 = 0, _total3 = flash.flashApiStack.length; _i3 < _total3; _i3++) {
+ var stackItem = flash.flashApiStack[_i3];
+
+ if (stackItem.type === 'set') {
+ var propName = stackItem.propName,
+ capName = '' + propName.substring(0, 1).toUpperCase() + propName.substring(1);
+
+ flash['set' + capName](stackItem.value);
+ } else if (stackItem.type === 'call') {
+ flash[stackItem.methodName]();
+ }
+ }
+ }
+ };
+
+ _window2.default['__event__' + flash.id] = function (eventName, message) {
+ var event = (0, _general.createEvent)(eventName, flash);
+ if (message) {
+ try {
+ event.data = JSON.parse(message);
+ event.details.data = JSON.parse(message);
+ } catch (e) {
+ event.message = message;
+ }
+ }
+
+ flash.mediaElement.dispatchEvent(event);
+ };
+
+ flash.flashWrapper = _document2.default.createElement('div');
+
+ if (['always', 'sameDomain'].indexOf(flash.options.shimScriptAccess) === -1) {
+ flash.options.shimScriptAccess = 'sameDomain';
+ }
+
+ var autoplay = mediaElement.originalNode.autoplay,
+ flashVars = ['uid=' + flash.id, 'autoplay=' + autoplay, 'allowScriptAccess=' + flash.options.shimScriptAccess, 'preload=' + (mediaElement.originalNode.getAttribute('preload') || '')],
+ isVideo = mediaElement.originalNode !== null && mediaElement.originalNode.tagName.toLowerCase() === 'video',
+ flashHeight = isVideo ? mediaElement.originalNode.height : 1,
+ flashWidth = isVideo ? mediaElement.originalNode.width : 1;
+
+ if (mediaElement.originalNode.getAttribute('src')) {
+ flashVars.push('src=' + mediaElement.originalNode.getAttribute('src'));
+ }
+
+ if (flash.options.enablePseudoStreaming === true) {
+ flashVars.push('pseudostreamstart=' + flash.options.pseudoStreamingStartQueryParam);
+ flashVars.push('pseudostreamtype=' + flash.options.pseudoStreamingType);
+ }
+
+ if (flash.options.streamDelimiter) {
+ flashVars.push('streamdelimiter=' + encodeURIComponent(flash.options.streamDelimiter));
+ }
+
+ if (flash.options.proxyType) {
+ flashVars.push('proxytype=' + flash.options.proxyType);
+ }
+
+ mediaElement.appendChild(flash.flashWrapper);
+ mediaElement.originalNode.style.display = 'none';
+
+ var settings = [];
+
+ if (_constants.IS_IE || _constants.IS_EDGE) {
+ var specialIEContainer = _document2.default.createElement('div');
+ flash.flashWrapper.appendChild(specialIEContainer);
+
+ if (_constants.IS_EDGE) {
+ settings = ['type="application/x-shockwave-flash"', 'data="' + flash.options.pluginPath + flash.options.filename + '"', 'id="__' + flash.id + '"', 'width="' + flashWidth + '"', 'height="' + flashHeight + '\'"'];
+ } else {
+ settings = ['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"', 'codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"', 'id="__' + flash.id + '"', 'width="' + flashWidth + '"', 'height="' + flashHeight + '"'];
+ }
+
+ if (!isVideo) {
+ settings.push('style="clip: rect(0 0 0 0); position: absolute;"');
+ }
+
+ specialIEContainer.outerHTML = '';
+ } else {
+
+ settings = ['id="__' + flash.id + '"', 'name="__' + flash.id + '"', 'play="true"', 'loop="false"', 'quality="high"', 'bgcolor="#000000"', 'wmode="transparent"', 'allowScriptAccess="' + flash.options.shimScriptAccess + '"', 'allowFullScreen="true"', 'type="application/x-shockwave-flash"', 'pluginspage="//www.macromedia.com/go/getflashplayer"', 'src="' + flash.options.pluginPath + flash.options.filename + '"', 'flashvars="' + flashVars.join('&') + '"'];
+
+ if (isVideo) {
+ settings.push('width="' + flashWidth + '"');
+ settings.push('height="' + flashHeight + '"');
+ } else {
+ settings.push('style="position: fixed; left: -9999em; top: -9999em;"');
+ }
+
+ flash.flashWrapper.innerHTML = '