-
AuthorPosts
-
August 31, 2018 at 10:22 pm #1004224
Hi
your Video-Widget does not work.1: if i use a URL from Vimeo i get an endless loading circle
see first part of the video2: If i use a local stored video there is no output at all – except an H3 followed by nothing
The output in the sidebar is this:
<section id="media_video-3" class="widget clearfix widget_media_video"><h3 class="widgettitle">Video</h3><span class="seperator extralight-border"></span></section>
See video:
[video src="https://maskenzauber.com/temp/video-sidebar.mp4" /]Live issue:
Maren
September 2, 2018 at 6:39 am #1004573Hey Maskenzauber,
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,
VinaySeptember 9, 2018 at 1:24 pm #1007583Sorry, but i cant do that.
I gave you a lot of information and i am willing to screencast every part of my installation you need to check.September 10, 2018 at 12:59 pm #1007896Hi,
This issue is probably caused by the missing mediaelement javascript. This script is not loaded by default but only if media elements (i.e. slideshow, video element, etc.) are used on the current page/post. If a video is embedded in the sidebar the script is not loaded by default. However we’ll introduce a new filter with the next theme update which enables you to always load this script and to embed videos in the sidebar too. To fix the issue with the current theme version please add this code to your child theme functions.php:
add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2); function avia_always_load_mediaelement($condition, $options) { $condition = true; return $condition; }
Then switch to the poarent theme enfold and on line 419 in enfold/functions.php replace this code:
$condition2 = ( version_compare( get_bloginfo( 'version' ), '4.9', '>=' ) ) && $condition;
with
$condition = apply_filters( 'avf_enqueue_wp_mediaelement', $condition, $options ); $condition2 = ( version_compare( get_bloginfo( 'version' ), '4.9', '>=' ) ) && $condition;
The next theme update will already contain this change – you don’t need to modify the enfold/functions.php again.
Best regards,
PeterSeptember 11, 2018 at 1:00 pm #1008372Hi Peter,
Sorry – but that didnt work.
Please see here – the whole widget-element is still empty – only the h3 is showing:
https://maskenzauber.com/faq/
From the source:
<section id="media_video-3" class="widget clearfix widget_media_video"><h3 class="widgettitle">Video</h3><span class="seperator extralight-border"></span></section>
This is what i have in enfold/functions.php now:
//load mediaelement js $condition = !( isset($options['disable_mediaelement']) && $options['disable_mediaelement'] == "disable_mediaelement" ) && av_video_assets_required(); $condition = apply_filters( 'avf_enqueue_wp_mediaelement', $condition, $options ); $condition2 = ( version_compare( get_bloginfo( 'version' ), '4.9', '>=' ) ) && $condition; avia_enqueue_script_conditionally( $condition , 'wp-mediaelement'); avia_enqueue_style_conditionally( $condition2 , 'wp-mediaelement'); //With WP 4.9 we need to load the stylesheet seperately
This in functions of my child theme:
add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2); function avia_always_load_mediaelement($condition, $options) { $condition = true; return $condition; }
Maren
September 11, 2018 at 1:56 pm #1008403i think she is right – did not work on my end too:
for the moment take the html widget and use the iframe:
<iframe src="https://player.vimeo.com/video/46232172?autoplay=1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
has on my end the advantage, that i can insert it DSGVO konform: https://webers-testseite.de/maskenzauber/
PS: wunderschöne Arbeiten – echt Klasse !
- This reply was modified 6 years, 2 months ago by Guenni007.
September 11, 2018 at 2:21 pm #1008410Hey!
Strange because the video widget works on my test server with the code I posted above. @Guenni007 are the login credentials still valid? If yes I’d like to test the video widget on your website.
Regards,
PeterSeptember 11, 2018 at 2:43 pm #1008417no i’m working on it right now a lot – sorry
i give you a different page – maybe my webers-testseite is to full with custom codeSeptember 11, 2018 at 2:58 pm #1008424Hi,
I did a quick test and the video plays just fine in the sidebar ( https://webers-testseite.de/weber/a-nice-entry/ ). It’s a standard wordpress video widget in the “Displayed everywhere” widget area.
Best regards,
PeterSeptember 11, 2018 at 5:23 pm #1008464But Dude – this is the selfhosted video. No doubt – that works!
But did you try a vimeo video?yes – i tested it – works on that installation ( you know my webers-testseite is a bit full with code – maybe there is somesthing in conflict with it.
See : https://webers-testseite.de/weber/a-nice-entry/But: – with iframe for me its better because its with my Borlabs Cookie Plugin DSGVO konform.
https://webers-testseite.de/maskenzauber/September 11, 2018 at 11:24 pm #1008645Hi
here is a copy where you can try.
Modifications on both functions have not been done cause they seem not to be the solution.
Credentials in private field
https://staging.h105244.server08.campusspeicher.de/September 12, 2018 at 3:08 pm #1008968Hi,
I added a video widget (with a vimeo video) to the “displayed everywhere” widget area. You can see the video i.e. here: https://staging.h105244.server08.campusspeicher.de/shop/hut-rohlinge/ (right sidebar). I applied the fix to the child theme functions.php.
Best regards,
PeterSeptember 12, 2018 at 9:51 pm #1009079Adding something new (quite different too) is not the same than solving the issue.
I moved your videowidget into the “sidebar pages” to have a direct comparison.
It works but …..
1: my video still does not show up
2: your video seems to be added very different[video src="https://maskenzauber.com/temp/video-widgets.mp4" /]
The URL you can see the difference is –>Info–>FAQMaren
September 13, 2018 at 11:19 am #1009330Hi,
Adding something new (quite different too)
Nope, same configuration you had here: http://maskenzauber.com/temp/video-sidebar.mp4 (first 30 seconds).
Regarding the self hosted video:
I think this is a general bug/issue which we can’t fix/solve on our end. I now switched to the default theme (Twenty Seventeen) and added the video widget to the footer widget area. Then I checked the results and the video didn’t work with the default theme too (you can check it here: https://staging.h105244.server08.campusspeicher.de/datenschutzerklaerung/ in the footer area).I’m not sure if this is a problem with your video, with the mime types you’ve set for video files (see https://webplatform.github.io/docs/tutorials/configuring_mimetypes_on_the_server/#Apache-HTTPD-server—.htaccess for a sample .htaccess entry) or a general wordpress bug.
However I’ve now found a workaround for your problem which also works with your self hosted video and Enfold (only).
1) You need to add this code to the child theme (I’ve already done this on your dev server):
add_filter( 'widget_text', 'do_shortcode' );
It’s required because the text widget does not support/execute shortcodes by default – see https://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/
2) Add a text widget to the sidebar and insert a video shortcode (also used in the template builder)
[av_video src='https://staging.h105244.server08.campusspeicher.de/videos/trailer-short.mp4' mobile_image='' attachment='' attachment_size='' format='16-9' width='16' height='9' conditional_play='' av_uid='']
Replace the src value with your video url and save the widget. Afterwards the video should be displayed in the sidebar (I tested this on your website too).
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.