Camen Design Forum

Video loop

append delete Wattie777

I am hoping this is an easy request... But after spending many hours I am at a loss to get the flash part to loop. In the controls for the video tags I can add loop and autoplay but I am not getting the flashvars part to loop. I think I need to use the onbeforfinish command but again I am getting the santax wrong.

Please any one help?

Best regards Dave

% HTML
<html>
<head>
	<title></title>
	<script src="/zencoder/video.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		// If using jQuery
		// $(function(){
		//	VideoJS.setup();
		// })
		
		window.onload = function(){
			VideoJS.setup();
		}
	</script>
	<link rel="stylesheet" href="/zencoder/video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8">
</head>
<body id="body">

	<div class="video-js-box">
	<video id="video" class="video-js" width="640" height="264" poster="URLtoPreviewImage.png" autobuffer>
		<source src="URLtoTheMovie.mp4" type="video/mp4">
		<source src="URLtoTheMovie.ogg" type="video/ogg">
		<object width="640" height="264" type="application/x-shockwave-flash"
			data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
			<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
			<param name="allowfullscreen" value="true" />
			<param name="flashvars" value='config={"clip":"URLtoTheMovie.mp4"}' />
			<img src="URLtoPreviewImage.png" width="640" height="264" alt="Poster Image" title="No video playback capabilities." />
		</object>
	</video>
	</div>
</body>
</html>
%

Kroc added on

I have fixed the bug, and restored your original text :)

Reply RSS

Replies

append delete #1. Kroc

Interesting, I think you broke the parser. :/

Kroc added on

Ah, I looked at the log. Please place % signs around your code sample. See http://forum.camendesign.com/markup.txt for details. I’ll look at tracking down that bug later.

The answer to your question is to add `repeat` to the flashvars; see JWPlayer documentation here for details: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, theraje, Martijn