Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter madri2

    (@madri2)

    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 ?

    Thread Starter madri2

    (@madri2)

    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

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

    Thread Starter madri2

    (@madri2)

    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

    Thread Starter madri2

    (@madri2)

    you should use the parameter “image” to the shortcode
    like that
    [jwplayer … image=”https://yoururl.jpg”%5D

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