Two ways to remove the 30-second ad code from Youku video

Two ways to remove the 30-second ad code from Youku video
I believe everyone has had this feeling: watching a video with a 30-second advertisement makes people very uncomfortable. Similarly, for our front-end guys, in order to attract users, we embed the produced videos into the web page. As a result, because the video has a 30-second advertisement, it not only fails to attract many users, but may also lose some users, which will also make us feel unhappy. Below I will introduce two codes for removing advertisements:

The first one is more commonly used (but recently it seems to have some problems, so it is not recommended to use this method):

Copy code
The code is as follows:

<embed src="http://static.youku.com/v1.0.0149/v/swf/qplayer_rtmp.swf?VideoIDS=XNTk1MzQ1OTky&winType=adshow&isAutoPlay=false" quality="high" width="480" height="400" type="application/x-shockwave-flash"></embed>

Among them, XNTk1MzQ1OTky is your video id (XNTk1MzQ1OTky in the link http://v.youku.com/v_show/id_XNTk1MzQ1OTky.html is the video id).

The second method (has pause/play function, but cannot display in full screen):

Copy code
The code is as follows:

<embed src="http://static.youku.com/v/swf/qplayer.swf?VideoIDS=XNTk1MzQ1OTky&winType=adshow&isAutoPlay=false" quality="high" width="480" height="400" type="application/x-shockwave-flash"></embed>

Similarly, just replace XNTk1MzQ1OTky with your own video id.

PS:

The isAutoPlay parameter in src indicates whether to play automatically. It has two values: true (autoplay) and false (cancel autoplay).

<<:  Introduction to user management under Linux system

>>:  Implementation of inserting millions of records into MySQL database within 10 seconds

Recommend

Web componentd component internal event callback and pain point analysis

Table of contents Written in front What exactly i...

Detailed explanation of the method of comparing dates in MySQL

If there is a table product with a field add_time...

Pure HTML+CSS to achieve Element loading effect

This is the effect of the Element UI loading comp...

Vue+ssh framework to realize online chat

This article shares the specific code of Vue+ssh ...

Solution to the impact of empty paths on page performance

A few days ago, I saw a post shared by Yu Bo on G...

How to view the storage location of MySQL data files

We may have a question: After we install MySQL lo...

Summary of commonly used time, date and conversion functions in Mysql

This article mainly summarizes some commonly used...

17 JavaScript One-Liners

Table of contents 1. DOM & BOM related 1. Che...

Vue echarts realizes horizontal bar chart

This article shares the specific code of vue echa...

How to optimize logic judgment code in JavaScript

Preface The logical judgment statements we use in...

Vue monitoring properties and calculated properties

Table of contents 1. watch monitoring properties ...

Vue3 compilation process-source code analysis

Preface: Vue3 has been released for a long time. ...

Detailed explanation of using pt-heartbeat to monitor MySQL replication delay

pt-heartbeat When the database is replicated betw...