Results 1 to 2 of 2

Thread: Video Playback in Featured Content Slider

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Video Playback in Featured Content Slider

    1) Script Title: Featured Content Slider

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tentslider.htm

    3) Describe problem:

    We are trying to insert a JW_FLV Media Player into the content slider.

    It works the way that it should in Safari (For Mac). When the user clicks on the video play button, the content silder stops advancing to the next slide so the user can view the entire video.

    But, in Firefox (For Mac) the video gets cut off because the content slider automatically advances to the next slide.

    I think this may be a z-index issue.

    I had no luck with the swfobject solution here:
    http://www.pipwerks.com/lab/swfobjec...2.0/index.html

    You can see the slide in action here. The video is in the second slide.
    http://www.tcnj.edu/test/index-03.html

  2. #2
    Join Date
    Aug 2004
    Posts
    9,887
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Basically the problem should boil down to clicks occuring on the video player itself not being registered/detected by JavaScript. The slideshow script tries to detect any clicks on a slide, and when that happens, stops the slideshow from playing. The relevant code inside the .js file is:

    Code:
    		sliderdiv["onclick"]=function(){ //stop content slider when slides themselves are clicked on
    			featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
    		}
    Now, if clicks on the video aren't being recognized as clicks by the browser in question, that's when your issue occurs. I don't know enough about Flash or the video player in question to know if there's a way to better facilitate the browser's JavaScript engine from detecting clicks made on it. Testing your page in FF3 and IE7, I see that in the former, clicking the video properly stops the slideshow from auto rotating, while in IE7, it doesn't. This is basically an issue with the player. If you're able to find a way to code the player so it runs some custom code whenever it is clicked on, let me know, and I can tell you what you should put in as that code to stop the slideshow explicitly.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •