Hi Aran. Thank you for your post. This is what I did. For some reason unknown to me, all the browsers update the video in the player when simply updating the src attribute, however, webkit browsers don't. Therefore, I am checking for the browser's version, and if it is a webkit browser, then I create a new object instead of simply assigning a new src value.
On May 29, 4:46 am, Aran Rhee <[email protected]> wrote: > I would re-look at the way you are replacing your swfs. It has been a LONG > TIME since I have used swfobject 1.x, but you should just be able to do > something like: > > <div id='flashContent'> > </div> > > <script type='text/javascript'> > // Setup your initial flash > var so = new SwfObject(.....); > so.write ('flashContent'); > > // Some event handler > someElement.onclick = function () > { > // Load up the new SWF > so = new swfObject(....); > so.write('flashContent'); > } > </script> > > Aran > > On Sat, May 29, 2010 at 12:56 AM, French Monkey > <[email protected]>wrote: > > > > > Hi. > > > My company has a website:http://www.imdplc.comon which we use the > > swfobject to display various videos. > > > On the homepage, there are thumbnails, when clicked we use JavaScript > > to assign the new source to the swfobject. It works great with all > > browsers, but fails with Chrome & Safari. It passes the new value to > > the player, although if you click play, the original video still > > plays. > > > Any help will be highly appreciated. > > > Thanks. > > > Jean-Philippe > > > -- > > You received this message because you are subscribed to the Google Groups > > "SWFObject" group.> To post to this group, send email > > [email protected]. > > To unsubscribe from this group, send email > > to>[email protected]<swfobject%2bunsubscr...@googlegroups > > .com> > > . > > For more options, visit this group at > >http://groups.google.com/group/swfobject?hl=en. -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
