Tagged: mp4, self-hosted-video
-
AuthorPosts
-
April 18, 2018 at 11:04 am #943533
Hello,
Self hosted videos (mp4) are not working on my website ( = not able to play, no preview image, strange position of control buttons). It was working properly with version 4.1.2 (and WordPress version 4.9.4)
April 19, 2018 at 4:18 am #943860Hey SiGun,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
NikkoApril 23, 2018 at 1:35 pm #945389Hello Niko,
I have created a special staging webpage to show the issue. The login credentials are in the “private data” field.
Regards
April 24, 2018 at 5:07 am #945663Hi SiGun,
Thanks for giving us the link and admin access.
Can you try adding this css code in Quick CSS (located in Enfold > General Styling):#top .mejs-container { max-height: 100% !important; }
Hope it helps :)
Best regards,
NikkoApril 24, 2018 at 8:43 am #945736Hi Nikko,
This works for the most part. Thanks! But is it also possible to have preview image in place (e.g. the featured image) when using the video element? At the moment it is a black box.
Regards
April 25, 2018 at 10:59 pm #946907Hi,
you can try a background image on that div also, to see how it will react and if it will work like you need.
Best regards,
BasilisApril 28, 2018 at 8:42 pm #948443Basilis,
I have no idea how to do this properly. Adding a video using shortcode results in an video with a “preview image”, but using the video element from the layout builder results in a black box. The 4.1.2 version did not have this issue, so I was hoping there was a simple and easy solution for it.
Kind Regards
April 30, 2018 at 6:20 am #948783Hi SiGun,
Can you try the solution posted here by Ismael:
Let us know if this helps.
Best regards,
NikkoApril 30, 2018 at 9:05 am #948868Hello Nikko,
The solution posted by Ismael concerns the auto play for a color section background, not the preview image of a self-hosted video with the video element.
Regards
May 2, 2018 at 4:34 am #949793Hi SiGun,
I apologize for that, can you try adding this php code at the bottom of your functions.php:
function avia_html5_video_embed($path, $image = "", $types = array('webm' => 'type="video/webm"', 'mp4' => 'type="video/mp4"', 'ogv' => 'type="video/ogg"')) { preg_match("!^(.+?)(?:\.([^.]+))?$!", $path, $path_split); $output = ""; if(isset($path_split[1])) { if(!$image && avia_is_200($path_split[1].'.jpg')) { $image = 'poster="'.$path_split[1].'.jpg"'; //poster image isnt accepted by the player currently, waiting for bugfix } $uid = 'player_'.get_the_ID().'_'.mt_rand().'_'.mt_rand(); $output .= '<video class="avia_video" '.$image.' controls id="'.$uid.'" preload="metadata" >'; foreach ($types as $key => $type) { if($path_split[2] == $key || avia_is_200($path_split[1].'.'.$key)) { $output .= ' <source src="'.$path_split[1].'.'.$key.'" '.$type.' />'; } } $output .= '</video>'; } return $output; }
or you can copy the code from here: https://pastebin.com/V1eHF5EE
Let us know if this works :)Best regards,
NikkoMay 17, 2018 at 8:48 am #958010Thanks Nikko for your help, I think the issue is solved.
Regards
May 17, 2018 at 1:34 pm #958139Hi SiGun,
Yes, it has been resolved on the latest version of Enfold :)
Feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Self-hosted video not working’ is closed to new replies.