- 15, May 2024
- #1
Сейчас я использую jw6, вот код....
Код корневого каталога темы
<?php
$video = urlencode($video);
$src = urlencode($thumb);
$ul = urlencode($ul);
$logoimage = urlencode($logoimage);
$logolink = stripslashes(get_option('mtn_jwlink'));
$skin = stripslashes(get_option('mtn_jwskin'));
$position = stripslashes(get_option('mtn_move_logo'));
echo '<embed src="'.$sefurL.'/jwplayer/player.swf" autostart=false" wmode="opaque" allowscriptaccess="always" quality="high" FlashVars="file='.$video.'&image='.$src.'&skin='.$sefurL.'/jwplayer/skins/nacht.zip&repeat=false&autostart=false&logo.file='.$logoimage.'&logo.hide=false&logo.position='.$position.'&logo.link='.$ul.'" quality="high" bgcolor="#000" width=100% height=380 name="mm" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" allowfullscreen=true />';
?>
PHP: А это мой код проигрывателя JW.
<?php $video = get_post_meta($post->ID,'dl1', true); $embedvideo = get_post_meta($post->ID,'embedvideo', true); $embed_video = get_post_meta($post->ID, 'embed_code', true); $sefurL = get_bloginfo('template_url', true); $thumb = get_post_meta($post->ID,'thumb', true); $ul = get_post_meta($post->ID,'ul', true); $logoimage = 'thumbcode' ; if($video != "") { ?> <?php if ( !wp_is_mobile() ) { include (TEMPLATEPATH . '/jwplayer/player.php'); } else { echo '<video src="'.$video.'" poster="'.$thumb.'" controls> Your browser does not support the <code>video</code> element.
</video>'; } ?> <?php } elseif($video == "" && $embedvideo != "") { echo $embedvideo; } elseif ($embed_video != "") { echo $embed_video; } else { the_content(); } ?>
PHP:
Теперь, как мне перейти на JW player7. пожалуйста, помогите мне