Ejemplo n.º 1
0
Easily set new dimensions
<?php 
jwplayer::play('http://www.youtube.com/watch?v=yrDXseJRJIk', array('width' => 600, 'height' => 360));
?>
The code: <br />
<code>jwplayer::play('http://www.youtube.com/watch?v=yrDXseJRJIk', array(<br />
	'width' => 600,<br />
	'height' => 360<br />
));</code>
</div>
</div>
<div style="clear: both;"></div>
<div style="margin: 20px 0px 20px 0px;">
Include more than one file for a playlist!
<?php 
jwplayer::play(array(array('file' => 'http://www.youtube.com/watch?v=f_J5rBxeTIk', 'title' => 'Universe Song', 'description' => 'Animaniacs sing the Universe Song'), array('file' => 'http://www.youtube.com/watch?v=EhiJwfj0URs', 'title' => 'Nations Of The World', 'description' => 'Animaniacs sing the Nations of the World (HQ)'), array('file' => 'http://www.youtube.com/watch?v=sNUDDaEOvuY', 'title' => '50 State Capitols', 'description' => 'Animaniacs sing the 50 States and their Capitols')), array('playlist' => true, 'width' => 480, 'height' => 360));
?>
The Code: <br />
<code>jwplayer::play(array(<br />
		&nbsp;&nbsp;&nbsp;array('file' => 'http://www.youtube.com/watch?v=f_J5rBxeTIk', 'title' => 'Universe Song', 'description' => 'Animaniacs sing the Universe Song'), <br />
		&nbsp;&nbsp;&nbsp;array('file' => 'http://www.youtube.com/watch?v=EhiJwfj0URs', 'title' => 'Nations Of The World', 'description' => 'Animaniacs sing the Nations of the World (HQ)'), <br />
		&nbsp;&nbsp;&nbsp;array('file' => 'http://www.youtube.com/watch?v=sNUDDaEOvuY', 'title' => '50 State Capitols', 'description' => 'Animaniacs sing the 50 States and their Capitols')<br />
	),<br />
	array('playlist' => true, 'width' => 480, 'height' => 360));
	</code>
</div>

<h3>Available params:</h3>
<ul>
<li>id - The ID tacked on to the div and script code that references that div</li>
<li>playerID - The ID of the actual player itself. Defaults to playerID.</li>