Jump to content

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>-->

 

Edited by nasky
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.