Skip to content
WJunction - Webmaster Forum

How to disable auto flash player display?

Status
Not open for further replies.

Gon

Active Member
581
2014
159
i have installed latest wordpress yesterday. but when i posting .mp4 links output showing auto flash video player. is there anyway to disable it? i have posted oboom link i.e. https://oboom.com/iidmeid/abc.mp4 here is the post output showing:
S5zXvAo.jpg
 

4 comments

just post them in a href like below:
Code:
<a href="https://oboom.com/iidmeid/abc.mp4">https://oboom.com/iidmeid/abc.mp4</a>
 
i got same problem, but i dont want to edit it every single link manually. is there any way to solve this problem??
 
Open : wp-includes/media.php
Find : function wp_get_video_extensions()
Delete : mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv' ,
Example :
function wp_get_video_extensions() {
/**
* Filter the list of supported video formats.
*
* @since 3.6.0
*
* @param array $extensions An array of support video formats. Defaults are
* 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv'.
*/
return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv' ) );

:sun: Happy
 
Open : wp-includes/media.php
Find : function wp_get_video_extensions()
Delete : mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv' ,
Example :
function wp_get_video_extensions() {
/**
* Filter the list of supported video formats.
*
* @since 3.6.0
*
* @param array $extensions An array of support video formats. Defaults are
* 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv'.
*/
return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'wmv', 'flv' ) );

:sun: Happy

It works perfect!
Thank you for help
 
Status
Not open for further replies.

About the author

G
Active Member · Joined
581
Messages
159
Reactions
43
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom