Batu69 Posted January 16, 2016 Share Posted January 16, 2016 Mozilla has added a feature to Firefox 46 that will convert old YouTube Flash code to HTML5 Video automatically under certain circumstances. When YouTube started out, Flash was the dominating technology used to stream video on the Internet, and the first player that YouTube made available to webmasters to embed videos on third-party sites used Flash exclusively. YouTube changed the code later on to reflect changes in streaming technologies. From a technical perspective, YouTube started to offer embed codes as iframes instead of objects. The Flash code works fine after all these years, but only if Adobe Flash is installed in the browser. If that is not the case, a "plugin is missing" error message is displayed. If you take this old Ghacks article on Line Rider, and there specifically the first video embedded on the page, you will get the error message "A plugin is needed to display this content" if Flash is not installed in the browser or blocked on the site. The second video on the same page uses the new embed code and it won't show the error message as the HTML5 video player is used in this case automatically. Since Mozilla does not have the luxury of a native Flash integration and the fact that plugins will be a thing of the past in the near future, something had to be done about that. Mozilla added code to its Firefox web browser to convert embedded YouTube videos using the old Flash embed code to the new embed code if Flash is not installed or enabled on the page. This affects YouTube embeds on third-party sites only. It needs to be noted that Firefox won't enforce the use of HTML5. If Flash is installed in the browser, nothing changes at all as Flash will be used in the case to power the video player. Deactivate the feature Mozilla plans to launch the feature in Firefox 46. It is already part of the organization's Nightly web browser and enabled by default. Firefox users who don't require the feature, can deactivate it in the following way: Load about:config in the browser's address bar. Confirm that you will be careful if a warning prompt is displayed. Find plugins.rewrite_youtube_embeds using search. Double-click on the preference name. If you set it to false, Firefox will not rewrite old Flash YouTube embed code if Flash is not installed or enabled. You may change the preference to its default value at any time by repeating the process outlined above. Closing Words While I don't encounter many old YouTube videos embedded on third-party websites, it seems to have been something of a problem for part of Mozilla Firefox's user base. The way it is implemented offers the best of both worlds as users who don't want the feature can disable it easily in the browser's advanced configuration dialog. (via Sören Hentzschel) Article source Link to comment Share on other sites More sharing options...
Administrator DKT27 Posted January 17, 2016 Administrator Share Posted January 17, 2016 Now only if someone could find a way to convert flash on all the sites while opening them. Link to comment Share on other sites More sharing options...
steven36 Posted January 17, 2016 Share Posted January 17, 2016 15 minutes ago, DKT27 said: Now only if someone could find a way to convert flash on all the sites while opening them. I dont see how this helps anyone if you dont install flash or turn it off it already works with HTML5 ? If its still installed in you're browser if you dont turn flash off it still will be default for YouTube . Same as it is now i keep flash turned off and only turn it on were its needed at . Link to comment Share on other sites More sharing options...
Administrator DKT27 Posted January 17, 2016 Administrator Share Posted January 17, 2016 12 minutes ago, steven36 said: I dont see how this helps anyone if you dont install flash or turn it off it already works with HTML5 ? If its still installed in you're browser if you dont turn flash off it still will be default for YouTube . Same as it is now i keep flash turned off and only turn it on were its needed at . I'm talking about all the sites, not Youtube, there are many sites out there that are still using flash instead of HTML5. Its about video sites other than just Youtube here, not other sites like news sites or so. Link to comment Share on other sites More sharing options...
steven36 Posted January 17, 2016 Share Posted January 17, 2016 13 minutes ago, DKT27 said: I'm talking about all the sites, not Youtube, there are many sites out there that are still using flash instead of HTML5. Its about video sites other than just Youtube here, not other sites like news sites or so. I know like TWC and others this is why I dont see how this helps anyone most people will still install flash anyhow . The only way to make flash obsolete would be for all sites to upgrade to HTML5 that may be years away still .. Even Chrome still has pepper flash also in Linux pepper flash can be installed in Firefox if you didn't know . Link to comment Share on other sites More sharing options...
Kalju Posted June 3, 2017 Share Posted June 3, 2017 Here is how you can use some simple videos as the background. NB! Works if HTML5 is enabled. Does not work with older browsers. Code is here Spoiler <div> <style type="text/css"> img.wm_main {position: absolute; top: 20%; left:30%;border: 0; float: left; vertical-align: baseline; width: 54px; height: auto;} div.wm_content {text-align: center} video.wm_video {width: 800px;margin: 30px 0;} div.content_header{width: 100%;position: absolute;top: 390px; text-align: center;font-family: Helvetica; font-size: 22px; color: rgba(255, 255, 255, 1)} </style> <div class="wm_content"> <video autoplay="autoplay" class="wm_video" loop="loop"> <source src="https://addons.opera.com/media/themes/85/213885/1.0-rev1/animations/video_preview.webm" type="video/webm"> </video> </div> <img alt="Sun" class="wm_main" src="https://i.imgur.com/TkXPTe1.png"> <div class="content_header"> <span>Here is how you can use some simple videos as the background.</span> </div> </div> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.