video playback controls only visible on hover
video playback controls only visible on hover
video playback controls only visible on hover
I did a couple of things to fix this issue… I added a function that adds a class to my Vimeo iFrame: https://wp-time.com/add-custom-class-to-wordpress-iframe-video/ function video_class($html) { if (preg_match(‘/(vimeo.com)/’, $html)) { return str_replace(‘<iframe’, ‘<iframe class=”video”‘, $html); } else { return $html; } } add_filter(’embed_oembed_html’, ‘video_class’, 99, 4); I implemented some JS to change the properties of … Read more
Why, on Attachment pages, where the media is a video, is the video is appearing twice as Widgets in the sidebar?
Try to place this in your style.css embed, iframe, object, video { margin-bottom: 1.6em; max-width: 100%; vertical-align: middle; }
For the most popular video services, you can just paste the link on a line by itself in the post editor: https://en.support.wordpress.com/videos/ For mp4 files hosted offsite on unsupported sites, you can try to use a service like this (http://embed.ly/) but I don’t think it will work well. More likely, you’ll have to sign up … Read more
Have you had a look at Tubepress – http://tubepress.org/ ? Then you could create a new category and a custom layout for that category.
In an old project, I ended up writing my own. And working with WordPress library to feed the players (audio and video), so there’s no foreign UI and a template builds the player with the proper attachment info. The audio player was implemented with JPlayer. The jQuery HTML5 Audio / Video Library jPlayer is the … Read more
<?php if (strstr($audio, ‘<iframe’)) { echo $audio; } else { echo wp_oembed_get( get_post_meta($post->ID, ‘_format_audio_embed’, true) ); } ?> Of course, this would require that you get the custom field with the audio embed code or url into $audio 🙂 Edit – try: <?php $audio = get_post_meta($post->ID, ‘_format_audio_embed’, true); if (strstr($audio, ‘<iframe’)) { echo $audio; } … Read more
Just got this working adding a text metabox for the youtube id. Then added this lines before the link in the slider just below the opening tag: <?php if ( get_post_meta( get_the_id(), ‘video’, true) != ” ) { $video= get_post_meta( get_the_id(), ‘video’, true); ?> Here goes the embed code but we replace with <?php echo … Read more
stop all video players when starting an other to play?