WordPress.org

Support

Support » Plugins and Hacks » Support for jw player

Support for jw player

Viewing 7 replies - 1 through 7 (of 7 total)
  • preg_match( ‘#<script type=\’text/javascript\’>jwplayer\(\’jwplayer-[0-9]+\’\)\.setup\(.*”image”:”(.*)”.*\);</script>#U’, $markup, $matches );

    [0-9]+ instead of 1

    hi madri2,

    where i must add your code for jw player thumbs ?

    which line at video-thumbnails.php ?

    line 255

    replace
    // Dailymotion
    if ( $new_thumbnail == null ) {

    replace it like that :

    // jwplayer
    if ( $new_thumbnail == null ) {
    preg_match( ‘#<script type=\’text/javascript\’>jwplayer\(\’jwplayer-[0-9]+\’\)\.setup\(.*”image”:”(.*)”.*\);</script>#U’, $markup, $matches );

    if ( isset( $matches[1] ) ) {
    $new_thumbnail = $matches[1];
    }
    }

    // Dailymotion
    if ( $new_thumbnail == null ) {

    hi madri,

    i replace it but dont work. where is the problem ? i add code image below

    http://img109.imageshack.us/img109/7366/vdeothumberror.png

    it will only work if you use jwplayer with the javascript api, not with “embed” tags
    do you use the plugin ?
    do you use the v5 ?

    yes i use plugin and v5

    you should use the parameter “image” to the shortcode
    like that
    [jwplayer … image=”http://yoururl.jpg”]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Support for jw player’ is closed to new replies.