rahultailwal Posted October 29, 2012 Share Posted October 29, 2012 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 Link to comment Share on other sites More sharing options...
justsomeguy Posted October 29, 2012 Share Posted October 29, 2012 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. Link to comment Share on other sites More sharing options...
rahultailwal Posted October 30, 2012 Author Share Posted October 30, 2012 But we need to see that flash files should support all the platforms. like iPad etc. There are restrictions on flash based files that's why the problem remains as it is. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2012 Share Posted October 30, 2012 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. Link to comment Share on other sites More sharing options...
rahultailwal Posted October 31, 2012 Author Share Posted October 31, 2012 As i saw the video tag we have events for the video player but i dont think there are methods for flash fallback. as in this case it is not video tag at all. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 31, 2012 Share Posted October 31, 2012 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. Link to comment Share on other sites More sharing options...
rahultailwal Posted November 3, 2012 Author Share Posted November 3, 2012 Is there any paid video player for all browsers. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 5, 2012 Share Posted November 5, 2012 I don't know, I haven't done any research on that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now