I have some videos that I want to play. They were originally wmv files but after reading this thread I had them converted into flv.
I downloaded the JW flv player and swfobject.js and uploaded them into Matrix.
Didn’t work but I didn’t really expect it to, so I set Allow Unrestricted Access to No on the files.
Still didn’t work.
It seems that the problem is that I can’t get the swfobject.js to work. When I use the jwplayer wizard and put in the .swf and .flv web paths in all is fine so it seems like the javascript is the only culprit left.
I’ve tried putting it in the header and on the page like the wizard says. It worked when I linked the js to what was hosted on www.jeroenwijering.com but obviously that’s not a real solution. This is my current code.
[codebox]<script type=“text/javascript” src=“http://www.domain.com.au/other_files/video/swfobject.js”></script>
<div id=“player”>This text will be replaced</div>
<script type=“text/javascript”>
var so = new SWFObject(‘http://www.domian.com.au/other_files/video/player.swf’,‘mpl’,‘470’,‘320’,'9’);
so.addParam(‘allowscriptaccess’,‘always’);
so.addParam(‘allowfullscreen’,‘true’);
so.addParam(‘flashvars’,’&file=http://www.domian.com.au/other_files/video/livecomm.flv’);
so.write(‘player’);
</script>[/codebox]
All I see is ‘This text will be replaced’.
Does swfobject collide with jquery? I’ve got jquery 1.2.3 on the same page. I saw some stuff that indicated that it might but they seemed like oldish threads and I can’t find anything more on that.
Tearing my hair out! Apart from setting Unrestricted Access to No, is there anything else I need to do to make the script work? It is live with public permission.
Trying to play flv files and having javascript issues
rmacdonald
(Rachel Macdonald)
#1
nnhubbard
(Nic Hubbard)
#2
Maybe, try telling jQuery not to conflict: http://docs.jquery.com/Using_jQuery_with_Other_Libraries
thomasmurphy
(T Murphy)
#3
I got osflv working (http://www.osflv.com/) by uploading the swf, flv and js as assets and pluging the web paths into the codegenerator output, which ended up looking like this…
<script language='javascript'> AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '400', 'height', '340', 'src', ((!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0)) ? 'player8' : 'player'), 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen', 'true', 'movie', ((!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0)) ? 'player8' : 'http://www.example.com/__data/assets/file/0008/95363/player'), 'FlashVars', 'movie=/__data/assets/file/0007/95380/yourvideo.flv&bgcolor=0xCCCCCC&fgcolor=0x888888&volume=80&autoload=on&autorewind=on&clickurl=&clicktarget='); </script> <noscript> <object width='480' height='404' id='flvPlayer'> <param name='allowFullScreen' value='true'> <param name='movie' value='http://www.example.com/__data/assets/file/0008/95363/player.swf?movie=/__data/assets/file/0007/95380/yourvideo.flv&bgcolor=0xCCCCCC&fgcolor=0x888888&volume=80&autoload=on&autorewind=on&clickurl=&clicktarget='> <embed src='http://www.example.com/__data/assets/file/0008/95363/player.swf?movie=http://www.example.com/__data/assets/file/0007/95380/yourvideo.flv&bgcolor=0xCCCCCC&fgcolor=0x888888&volume=80&autoload=on&autorewind=on&clickurl=&clicktarget=' width='400' height='340' allowFullScreen='true' type='application/x-shockwave-flash'> </object> </noscript></pre><br />
...if that's any help to anyone. Of course, many other CMSs have opensource FLV player modules.
gsherwood
(Greg Sherwood)
#4
Speaking on which, we just added this to MySource Mini, but it's a bit more advanced than most FLV modules as it does the conversion for you as well: http://mini.squiz.net/features/movies
It might make it into Matrix eventually. If not the conversion, at least the player, which we control.