How difficult is automatic flash and html5 player switching between video sites? -

Source: Internet
Author: User
Tags macbook
I really can't stand the terrible heat of BNS in various video stations. I tried many plug-ins and they were not very good. So I asked questions. 1. Is it difficult to use different players according to the operating system, browser, or user-defined? 2. Where can I find the problem if it is difficult? 3. If not, why not? I really can't stand the terrible heat of BNS in various video stations. I tried many plug-ins and they were not very good. So I asked questions.
1. Is it difficult to use different players according to the operating system, browser, or user-defined?
2. Where can I find the problem if it is difficult?
3. If not, why not? Reply content: it is not difficult to determine the operating system and browser type and version.

There are currently five mainstream platforms:

Desktop platform:
  • Windows (perfect support for H5 and Flash Player)
  • Mac OS X (perfect support for H5 and Flash Player)
  • Linux (supports H5 and Flash Player to 11.2, and Chrome supports Flash Player better)
Mobile platform:
  • Android (supporting H5, Adobe has abandoned Flash Player Support)
  • IOS (H5 supported, Flash Player not supported)
As shown above, more than half of the platforms (including those that have abandoned Support) Support Flash Player. If there are more than half of them, there is a need and possibility of switching.

The perfect situation is to detect the operating system and browser version and adapt to different situations, for example:

  • In Windows XP and IE6 browsers, Flash Player is used to play videos;
  • In Mac OS X, videos are played using H5;
  • The mobile platform must use H5;
  • ......
Although there is a certain cost in front-end development (such as Flash Player and H5 interface adaptation, Desktop and Mobile Interface adaptation, as well as a combination of various browsers and platforms ), but it is not unacceptable.

Let's take a look at the Video formats supported by Flash Player and H5 and various browsers (the following table is from HTML5 Video ):


That is to say, in H5 browsers that support video tags, no video format is available to all browsers.

If you think this table is not detailed enough (zhuan), you can also look at the figure below (the table below is from wikipedia HTML5 video ):


If we discard the cute and poor Opera and do not consider the issue of Firefox on OS X and Linux, we can say, the MP4 format is already directly supported by all modern browsers (The following table is from A/V Formats | The State of HTML5 Video Report ):

In fact, some companies are already doing this (and have been doing it for a long time). Player is an excellent Flash Player. Later, it began to support H5. Below are some of its introductions:
  • HTML5 Video Player & Flash Video Player
  • HTML5 Video Attributes & Market Share Report

Therefore, it is not a technical problem. I guess the biggest reason is the video format conversion cost.


These video websites have accumulated a large amount of video resources, basically in the Flash-Only FLV format in the early days. If you continue to use Flash Player to play videos later, the MP4 vest F4V format is likely to be used for HD support. For the standards of these two file formats, see F4V/FLV Technology Center..


The FLV format used two types of encoding earlier: Sorenson Spark and On2 VP6 (The table below comes from abandoning FLV to meet MP4-making H.264 video formats supported by Flash Player), These two formats are certainly not supported by H5.

Therefore, a considerable process is required to convert a large amount of existing video data into MP4. video websites may have considered this process for a long time, temporarily put the job on hold (or the job is running smoothly ).


For example, YouTube has switched all its Videos to WebM (this is the video Format promoted by Google). You can see here: YouTube Swiftly Converts Videos in WebM Format .

However, Google is a first-class company with a lot of money and a whole journey from standard to product. For such small companies as IX Yiyou X database potato, tianchao must consider the national conditions in addition to the banknote advertisement in the technology market.

In the great and amazing China, a large number of platforms are still Windows XP + IE6 combinations, making it difficult to upgrade these systems to IE8, let alone install modern browsers such as Chrome and Firefox. For them, Flash Player is the only choice. Since Flash Player is used to play videos, FLV or MP4 obviously doesn't matter.


However, everything will change. At least in our lifetime, they will definitely change.


Compared to watching videos on the H5 platform, I look forward to landing on the moon in my lifetime (Mars is too far away from consideration ). However, as far as the current development speed of science and technology is concerned.


In addition, the topic is subject to three points:


1. Not everyone can afford the BNS ......

2. The fever cannot be completely blamed on the Flash Player ......

3. Even if you must blame the Flash Player, do not simply blame the video Player ......


============================

Update:

According to my comments, I used Android + Firefox to access websites such as Youku and Tudou. Indeed, they already support H5 on mobile devices.

So what I guessed aboveVideo format conversion costThe cause should not exist.

I guess again that the reason may be the following:


1. The experience and performance of Flash Player on the PC side are more consistent, making it easier to control the Player quality and perform version iterations;

2. As mentioned above, H5 support is hopeless on Windows XP and Flash Player can only be used. Domestic enterprises must consider this;

3. Why not check the browser version to enable different players for different platforms? refer to 1.

1. Is it difficult to use different players according to the operating system, browser, or user-defined?
The main function porting of the player is very simple.
The old FLV to MP4 is very simple and fast
2. Where can I find the problem if it is difficult?
See the following
3. If not, why not?
Why not? The reason is simple, because of the benefits

I used to play a Flash video player for over half a year on a video website ~ 5 years of web page design/program, and I still know about these two video playing technologies.

Before Flash videos became popular, they mainly involved wmv, rm, and mpg. The corresponding plug-ins were not installed on the machine, and there was no way to do too much interaction. The user experience was very poor ..
Later, video sharing websites led by Youtube became popular. Flash's "Plug-free" and good interaction extensions allowed almost 100% of users to see the same video.

Domestic video websites are almost in the 05 ~ It became popular around. At that time, the overwhelming video website was filled with bubbles ~~~ However, none of them can find profit points. The main economic source is that traditional banner advertisements are embedded on the web pages, which are also exploited. Advantages of high compatibility of Flash, Embedded in a variety of 3A second-and third-line advertising companies to take a variety of amazing advertising formats. (many advertising companies also require users to get behavior records when watching videos)
This profit method has been retained in the Youku + Tudou, which is currently on the market.

Can HTML5 advertise? Of course you can, but it is very easy to block because of the html/js clear code!
The advertisement code in Flash can also be blocked, but the technical requirements are quite high. I believe most people who have tried to block the advertisement of utu have seen 50 seconds of black screen reading, in addition, the anti-ad plug-in 4 is easy to insert more disgusting phishing/rebate code.
(Here we recommend two reliable anti-advertising software, "video ad filtering master" and "AdSafe3". The latter also experienced the problem of inserting the rebate code)

Finally, I personally think when the video website When inserting advertisements is not the main benefitWhen Flash videos are completely replaced by HTML5 videos. (Adobe Flash CC can use the original Flash editor to export the HTML5 format.) A mother no longer worries about the fever of my MacBook. It is played using HTML5 and supports some websites, or you can turn the browser agent into an iPad, which I currently use in the MacBook pro. If you are a beginner in the browser, please do not answer it yourself.

1. Is it difficult to use different players according to the operating system, browser, or user-defined?
Theoretically, there is no difficulty.
For websites, the server automatically identifies the version and platform of the browser by checking the useragent field in the http request header or by checking the useragent, it is not troublesome to make a rough classification for different browsers on different platforms. As for the video source issue, it may be a little difficult, depending on the number and size of videos on the website.
In terms of user customization, it is not related to the server. The lightweight method is to modify the UA so that the server "mistakenly thinks" that the browser is carried on platforms such as ios that cannot support flash player, you can open the video playback page of the html5 player.

2. Where can I find the problem if it is difficult?
As mentioned above, whether or not the website needs to provide such services is a matter of consideration for the website itself.

3. If not, why not?
Currently, mainstream video websites generally identify UA and then play different video pages.
Therefore, there is no such situation, but the website has its own considerations for the policy of providing content. Of course, it is not the user's right to consider whether it is appropriate.

We recommend that you modify the Useragent and pretend that you are a big pad! A non-right answer.
Click to Plugin for China. The Safari extension will automatically replace flash with H5. If the flash cannot be played, you can switch back.
Search by yourself for the location. Mobile phone typing is not easy. Playback of html5 is preferred. If you fail to switch to flash, js control is simple. The reason for not doing so is that some stream playback addresses can only be played through flsh in most browsers on the computer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.