WordPress.org

Ready to get started?Download WordPress

Forums

Video.js - HTML5 Video Player for WordPress
[Plugin: VideoJS - HTML5 Video Player for WordPress] Doesn't run in BudyPress Activity (1 post)

  1. Bobka
    Member
    Posted 2 years ago #

    Hi,
    i'd like to use your Plugin in a WordPress 3.4 installation with latest Buddypress in the Activitystream.
    BP accepts the shortcode after i allowed the HTML tags. But it doesn't generate the <source /> tag.

    here my code to allow the tags:

    function allow_html_tags( $activity_allowedtags ) {
    	$activity_allowedtags["object"] = array(
    	 "height" => array(),
    	 "width" => array()
    	);
    
    	$activity_allowedtags["param"] = array(
    	 "name" => array(),
    	 "value" => array()
    	);
    
    	$activity_allowedtags["embed"] = array(
    	 "src" => array(),
    	 "type" => array(),
    	 "allowfullscreen" => array(),
    	 "allowscriptaccess" => array(),
    	 "height" => array(),
    	 "width" => array()
    	);
    
    	$activity_allowedtags["video"] = array(
    	 "id" => array(),
    	 "class" => array(),
    	 "controls" => array(),
    	 "autoplay" => array(),
    	 "poster" => array(),
    	 "preload" => array(),
    	 "height" => array(),
    	 "width" => array()
    	);
    
    	$activity_allowedtags["source"] = array(
    	 "src" => array(),
    	 "type" => array(),
    	 "codecs" => array()
    	);
    	return $activity_allowedtags;
    	return $forums_allowedtags;
    }
    add_filter( 'bp_activity_allowed_tags', 'allow_html_tags', 1 );
    add_filter( 'bp_forums_allowed_tags', 'allow_html_tags', 1 );

    i added it to video-js.php to solve the problem... but no full effect

    Are there some issues with other Plugins? Here is a List of all plugins i'm using:
    Add Multiple Users
    AP Extended Mime Types
    BP-TinyMCE
    BP Simple Front End Post
    BuddyPress
    BuddyPress Activity Plus
    BuddyPress Like
    BuddyPress Mobile
    BuddyPress Profile Menu
    CubePoints
    CubePoints Buddypress Integration
    Events Manager
    Mail From
    Privates BuddyPress
    Quick Page/Post Redirect DEV
    Raw HTML
    SwfObj
    User Avatar
    Video.js - HTML5 Video Player for WordPress
    WP-DBManager
    WP-Piwik
    WP CleanFix
    Clean & Fix
    WPML Multilingual CMS
    WPML String Translation
    WPML Translation Management
    WP Native Dashboard

    The Theme i'm using is Custom Community Pro by Themekraft

    this your Plugin put out:

    <div id="example_video_id_1103818537"
    class="video-js vjs-default-skin vjs-paused" width="640"
    height="264" style="width: 640px; height: 264px;">
      <img class="vjs-poster" src="" tabindex="-1"
      style="display: none;" />
      <div class="vjs-text-track-display"></div>
      <div class="vjs-loading-spinner">
    	<div class="ball1"></div>
    	<div class="ball2"></div>
    	<div class="ball3"></div>
    	<div class="ball4"></div>
    	<div class="ball5"></div>
    	<div class="ball6"></div>
    	<div class="ball7"></div>
    	<div class="ball8"></div>
      </div>
      <div class="vjs-big-play-button" tabindex="0"></div>
      <div class="vjs-controls">
    	<div class="vjs-play-control vjs-control" tabindex="0">
    	  <div>
    		<span class="vjs-control-text">Play</span>
    	  </div>
    	</div>
    	<div class="vjs-fullscreen-control vjs-control" tabindex="0">
    	  <div>
    		<span class="vjs-control-text">Fullscreen</span>
    	  </div>
    	</div>
    	<div class="vjs-current-time vjs-time-controls vjs-control">
    	  <div class="vjs-current-time-display">0:00</div>
    	</div>
    	<div class="vjs-time-divider">
    	  <div>
    		<span>/</span>
    	  </div>
    	</div>
    	<div class="vjs-duration vjs-time-controls vjs-control">
    	  <div class="vjs-duration-display">0:00</div>
    	</div>
    	<div class="vjs-remaining-time vjs-time-controls vjs-control">
    	  <div class="vjs-remaining-time-display">-0:00</div>
    	</div>
    	<div class="vjs-progress-control vjs-control">
    	  <div class="vjs-progress-holder" aria-valuenow="0"
    	  aria-valuemin="0" aria-valuemax="100" tabindex="0">
    		<div class="vjs-load-progress">
    		  <span class="vjs-control-text">Loaded: 0%</span>
    		</div>
    		<div class="vjs-play-progress" style="width: 0%;">
    		  <span class="vjs-control-text">Progress: 0%</span>
    		</div>
    		<div class="vjs-seek-handle" style="left: 0%;">
    		  <span class="vjs-control-text">00:00</span>
    		</div>
    	  </div>
    	</div>
    	<div class="vjs-volume-control vjs-control">
    	  <div class="vjs-volume-bar" aria-valuenow="0"
    	  aria-valuemin="0" aria-valuemax="100" tabindex="0">
    		<div class="vjs-volume-level" style="width: 100%;"></div>
    		<div class="vjs-volume-handle" style="left: 100%;"></div>
    	  </div>
    	</div>
    	<div class="vjs-mute-control vjs-control" tabindex="0">
    	  <div>
    		<span class="vjs-control-text">Mute</span>
    	  </div>
    	</div>
    	<div class="vjs-subtitles-button vjs-menu-button vjs-control"
    	tabindex="0" style="display: none;">
    	  <div>
    		<span class="vjs-control-text">Subtitles</span>
    	  </div>
    	  <ul class="vjs-menu">
    		<li class="vjs-menu-title">Subtitles</li>
    		<li class="vjs-menu-item" tabindex="0">Off</li>
    	  </ul>
    	</div>
    	<div class="vjs-captions-button vjs-menu-button vjs-control"
    	tabindex="0" style="display: none;">
    	  <div>
    		<span class="vjs-control-text">Captions</span>
    	  </div>
    	  <ul class="vjs-menu">
    		<li class="vjs-menu-title">Captions</li>
    		<li class="vjs-menu-item" tabindex="0">Off</li>
    	  </ul>
    	</div>
    	<div class="vjs-chapters-button vjs-menu-button vjs-control"
    	tabindex="0" style="display: none;">
    	  <div>
    		<span class="vjs-control-text">Chapters</span>
    	  </div>
    	  <ul class="vjs-menu">
    		<li class="vjs-menu-title">Chapters</li>
    	  </ul>
    	</div>
      </div>
    </div>

    The last thing is, that the controls attribute is not set you can see above.
    The link tag on line 25 and 30 is not closed.

    i tested in Latest Firefox, Iron(Chrome), IE9, Safari, iPad, Android all the same.

    Please help.
    Kind regards an have a nice weekend.
    Jan

    http://wordpress.org/extend/plugins/videojs-html5-video-player-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic