Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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)

    #943860

    Hey SiGun,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #945389

    Hello Niko,

    I have created a special staging webpage to show the issue. The login credentials are in the “private data” field.

    Regards

    #945663

    Hi 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,
    Nikko

    #945736

    Hi 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

    #946907

    Hi,

    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,
    Basilis

    #948443

    Basilis,

    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

    #948783

    Hi SiGun,

    Can you try the solution posted here by Ismael:

    Let us know if this helps.

    Best regards,
    Nikko

    #948868

    Hello 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

    #949793

    Hi 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,
    Nikko

    #958010

    Thanks Nikko for your help, I think the issue is solved.

    Regards

    #958139

    Hi 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

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Self-hosted video not working’ is closed to new replies.