Issue:

I was developing a Sharepoint webpart that will allow an end user to be able to easily insert videos (flv, f4v, mp4, swf) that are hosted elsewhere. And I encountered this weird issue where all the script and code appears to be good, and yet the video will not start to play when the page initially load. I am using jQuery to initiate the instantiation of the FlowPlayer when the document is ready, just like the regular jQuery stuff. The FlowPlayer instantiation function runs as I can see the log info in the console, but the video does not play, and if you right click the video area, it is as if the Flash player is not even there. But if you click the area, it actually starts to play the video.

Resolution:

The problem was finally traced to the fact that the div tag that serves as the container for the video player has some text between the opening and closing div tags. Once the text is removed, the video web part will play the video on page load.

  • Digg
  • del.icio.us
  • StumbleUpon
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Haohao
  • LinkedIn
  • Live
  • MyShare
  • MySpace
  • Reddit
  • Technorati
  • TwitThis

Related posts:

  1. Online Resources Regarding Sharepoint and Domain Migration
  2. Tribulations with Search Scope for a Customised Sharepoint Site
  3. Using Sharepoint Wiki Library to Collaborate on Content
  4. Copying and Creating a New Sharepoint Theme
  5. Remove Alert or Options Message When Clicking Document Links in Sharepoint Document Library

Tags: , , ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">