Jump to content

Flash Video Player Not Showing In Views With Cakephp


nasky

Recommended Posts

Hello, am writing a video tutorial using cakephp. I have tried to embed my swf player using

Javascript code. It works fine in all the index view of all my controllers but don't in other action/view. What could possibly be the problem. Any help would be appreciated

Thanks for the reply. This is the javascript code in my viewsI have also added the script in the layout and the osflv folder is in the webroot

<script type="text/javascript">

AC_FL_RunContent('codebase',

'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',

'width', '320', 'height', '265', 'src', ((!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0)) ? 'osflv/OSplayer' : 'osflv/OSplayer'), 'pluginspage',

'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen',

'true', 'movie', ((!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0)) ? 'osflv/OSplayer' : 'osflv/OSplayer'), 'FlashVars','movie=video.flv&autoload=on&volume=70')

</script>

<!--<noscript>

<object width='320' height='265'

id='flvPlayer'>

<param name='allowFullScreen' value='true'>

<param name='movie' value='osflv/OSplayer.swf?movie=

video.flv&autoload=on&volume=70'>

<embed src= 'osflv/OSplayer.swf?movie=video.flv&autoload=on&volume=70'

width='320' height='265' quality='high'

type='application/x-shockwave-flash'>

</embed>

</object>

</noscript>-->

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.