Jump to content
rahultailwal

Video player for videos

Recommended Posts

Hi, I am working on videos on a site. Now as we know we have different browsers available and we need to choose a player which can support all the browsers. Our html 5 video tag supports different video formats and works well with different videos.But for internet explorer less than 9 it makes a flash fallback. Now we can have lots of requirements with our video player. For example i have one requirement to hide controls from video player. Well there is an option to do it in html 5 to remove controls from tag. But we can see the controls again just putting controls by just editing the html by development tool like firebug for Mozilla. In internet explorer less than 9 if we see flash fallback then we also required to hide controls then it will be a double headache. Some times we need to use video events but again double headache as we have to think for all the browsers at the same time. So is there any good solution for this problem Thanks

Share this post


Link to post
Share on other sites

You'll need to use a Flash-based player which exposes all of the functionality you want to use for the video element. It needs to let you hide controls and send the same events.

Share this post


Link to post
Share on other sites

If the Flash player exposes the same API that you're using with the video element then all of your code can be the same, the only difference is the element that you target. For browsers that use the Flash player, your code targets it. For browsers that use the video element, the same code targets that element. The point is to have a Flash player that exposes the same API (method names, property names, events) as the video element.

Share this post


Link to post
Share on other sites

I understand that. So you have code to check for which item they support, and either give them the Flash player or the video element. If you give both of those the same ID and they expose the same API then the rest of your code can work with either of them, you don't need to detect which one they're using after that.

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...

×
×
  • Create New...