i was thinking if there was anyway to add a okay icon overlay for video post types, i already came up with a code that allows me set up a default thumbnail if post has no thumb, sample code below. <div class="img-responsive"> <?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('big-grid-one-image'); ?></a> <?php else : ?> <img src=" <?php echo get_template_directory_uri (); ?>/img/no-thumb/acardio-548px-450px.png" /> <?php endif; ?></div>
I'm using WordPress to upload videos. I have to use WordPress to upload the videos, because they need to remain past a password protected side of the website. I have access to the WordPress content folders, so I can move media in and out from the folders, and it would be reflective on the WordPress (basically FTP). Currently, my upload limit is 200MB, and I'm having trouble uploading anything past about 30MBs. I'm getting an HTTP error. I have the …
The goal is to grab the first video (embed or shortcode) from the post. So we need to check post content if it has embedded videos ( supported by WP ) or [video] shortcodes. Multiple videos and embeds could exist in the single post. If found any - return the very first of them, not depending on order of given patterns to match, but on order they have been inserted into the post. Here is my progress so far... This …
I have a WordPress website with version 5.9 and I want functionality to sell video content. These videos could be uploaded by the website users and they can decide the price of their uploaded videos. I also want to keep a small fee as commission. What plugin do you recommend for it?
I see in WordPress 3.6 that you can read metadata from video and audio files. I have read through the codex (http://codex.wordpress.org/Function_Reference/wp_read_video_metadata), and even tried to implement getting the bitrate on a video, but with no results. Does anyone know the answers to the following questions: Can this function be used to read the metadata on my videos hosted on Amazon S3, basically can this function be used for external video and audio? Can I call this in a page …
I would like to add a clickable play button icon in my header. When someone clicks the icon the hidden video starts playing. Either by popping up or that I can resize the video to my preferences. How do I do? Thanks!
In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = array( 'post_title' => $_POST['title'], 'post_content' => $_POST['content'], 'post_type' => 'page', 'post_status' => 'publish', 'post_author' => 1, 'menu_order' => 10, ); // Insert the post into the database $post_ID = wp_insert_post( $my_post ); In the content field, I insert the …
How would one go about placing a 3 second Fullscreen Video/GIF Intro upon website start up as a preloader. I've tried coding it in but there's always something conflicting and limits the functionality of the website, and just doesn't feel, proper. So what would be the best way to do it? Plugin suggestions are welcome as long as they are free :) Thanks.
I'm building a VUE JS based theme, and I'm using WP REST v2. There is a problem - I can't make video and audio playlists work (built-in WP core feature). I already added: wp_enqueue_style( 'wp-mediaelement' ); wp_enqueue_script( 'wp-playlist' ); but from there I'm not sure how to make it work. I just can't make it work. When I insert content from the REST API into DOM the video and and music playlists are not working. I have access to WPPlaylistView …
I've cobbled together code (as I'm a php and jquery newbie) from a couple of different posts to try and get an mp4 video URL input field in the wordpress admin. I've been able to get a media uploader to display, choose a file and on select populate a form field with the URL in the wordpress admin however when I click update the URL disappears. I can't for the life of me figure out what I need to do …
I tried to get video information such as time and size using getid3 ( wp_read_video_metadata() ) Here is my code: require_once( ABSPATH . 'wp-includes/ID3/getid3.php' ); $filename = 'https://localhost/project/wp-content/uploads/2021/08/myvideo.mp4'; $getID3 = new getID3; $file = $getID3->analyze($filename); echo "Duration: ".$file['playtime_string']; But it just returns: "Duration: " I used the getid3 library on the Cpanel and it worked! So I think the problem is with the localHost. I also tried to print_r() the $file variable: ( [GETID3_VERSION] => 1.9.20-202006061653 [error] => Array ( …
I'd like to be able to add classes to oembed videos on the fly in the post editor. This way I could have some videos act like images and alignleft or alignright and have text wrap around them, while the default behavior would be to set the video full width of the containing element and act responsively on resize. I already have that default behavior working via this function and some CSS: // remove dimensions from oEmbed videos & wrap …
I am new to WordPress sites, and my website has a theme on the home page. It includes a video image link. I want to change this to just a standard image, which when clicks takes the user to a different page on the site. However, it just acts like the image is a video and it tries to play it. Which is not possible. Thanks, Conor
When adding a video block to my page and setting the video to muted autoplay and playsinline appears that the block does not contain all attributes and I ended up with a static image. Does anyone know a fix for this? Cheers!
I made a custom plugin to get post data from another source, when I save a post, I get all data. and also upload a video from source server to our server. But it take a while when saving post until uploading the video. Now, When saving post I need to get all data from source, But schedule uploading video after 1 minute to upload it on background. The Code Example: add_action( 'save_post', 'update_from_source'); function update_from_source($post_id) { // code for …
I wanted to have a link to allow the users to download the videos. But a direct link to an mp4 file opens a native player in some browsers (like Chrome and Safari) and plays the video instead of downloading it. So I'd have to put a note next to the link “Right click and choose to save link as...” to let the users know how to save it, and I'd like to avoid that if possible.
Good Afternoon, i want to embed this video in my wordpress https://streamtape.com/v/7qDqGjlQe4UA9MR/Soul_Land_03_VOSTFR.mp4 Embed code <iframe src="https://streamtape.com/e/7qDqGjlQe4UA9MR/Soul_Land_03_VOSTFR.mp4" width="800" height="600" allowfullscreen allowtransparency allow="autoplay" scrolling="no" frameborder="0"></iframe> I have tried to paste the following code in my theme function.php file but it doesn't function. I would be very happy to receive your help add_action( 'init', function() { wp_embed_register_handler( 'streamtape', '#https://streamtape\.com\/v\/([a-zA-Z0-9_-]+)$#i', 'streamtape_embed_handler' ); } ); function streamtape_embed_handler( $matches, $attr, $url, $rawattr ) { $embed = sprintf( '<IFRAME SRC="https://streamtape.com/e/([a-zA-Z0-9_-]+)$#i" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=800 HEIGHT=600 allowfullscreen></IFRAME>', …
I'm trying to have the poster auto generated for my videos so I don't have to keep taking screen shots of the first frame and manually adding it myself. Is there a way to do this? Reason is because video shows the 1st frame for desktop but doesn't show for mobile so I need to always manually add a poster image and its annoying!
We have two identical sites (one is a staging site) hosted on different servers. Both are running the same WordPress version 4.8.5. On one of these sites Vimeo videos are failing to load (previously these were working fine at some point in the past couple weeks). This has been tested using the default unmodified Seventeen theme to rule out any theme-related issues and the problem is the same. For example, when I insert a Vimeo video link on the faulty …