Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Lightbox Ultimate – Cannot get local mp4 or flash videos to play
- This topic has 11 replies, 4 voices, and was last updated 7 years, 4 months ago by wpCommerce.
-
AuthorPosts
-
June 3, 2017 at 3:27 pm #14288batdesignMember
I can get youtube videos to open happily in the lightbox, but mp4 or flv videos do not open the lightbox. I’ve tried everything. I’ve activated every video method in the settings. I’ve tried different paths and the dropbox method. I checked that the url works by opening it directly.
I’ve switched to the default theme. Same response. I’ve deactivated most of my plugins. No difference.
I’m assuming there is no JS conflict as the lightbox opens for the YT videos.
June 4, 2017 at 6:11 am #75780wpCommerceModeratorHi, Which shortcode are you using? Please provide a link to the page in questions so I can take a look.
June 4, 2017 at 2:18 pm #75781batdesignMemberHello,
Thank you for your response. The code is pushed up and available. Since this is a public forum, would you mind sending an email to us so that we can get credentials to you?
The dev site is not publicly accessible.
June 4, 2017 at 2:34 pm #75782batdesignMemberAs a side note, the error in the console (and this only appears for mp4 or mlv videos using the lightbox or flowplayer option – not youtube, vimeo or any other third party) is:
Uncaught SyntaxError: Invalid or unexpected token
the error is at line 237 on wp_lightbox_flowplayer_includes.php
We have a youtube video popping out in a lightbox on the same page using your plugin and it is working fine. It is just the options that relate to using a video on our server that are throwing the error.
June 4, 2017 at 2:39 pm #75783batdesignMemberSorry, forgot to answer your question above. We tried both shortcodes related to hosted videos:
wp_lightbox_mp4_video
wp_lightbox_flowplayer_video
[wp_lightbox_mp4_video link=”https://linktovideo” width=”640″ height=”480″ source=”https://linktocoverimage.jpg” img_attributes=”class=img-fluid”]
If you can send over an email we will be sure to get you credentials and the site info.
June 4, 2017 at 2:45 pm #75784batdesignMemberActually, I might have narrowed it down. We are using advanced custom fields and in order to get the field values from the wysiwyg field we have to do:
$field_data = get_sub_field('content');
$field_data = apply_filters('the_content', $field_data);Is it possible that the apply_filters is messing up those two shortcodes? Again, all your other shortcodes work fine going through the same filters.
June 6, 2017 at 5:13 am #75785wpCommerceModeratorIt’s possible. But I will be able to tell more once we take a look at the HTML source. I have sent an email to your registered email address for site access. Let me know if you don’t receive it.
June 6, 2017 at 4:53 pm #75786batdesignMemberresponse sent this morning. it is coming from a batdesign email address. If you did not get it please let me know.
June 9, 2017 at 12:03 pm #75787batdesignMemberJust in case anyone else comes here, I have discovered that this plugin is not compatible with [the] advanced custom fields [plugin]. The problem is what I listed above. Actually, it is not compatible with anything you have to run through the wordpress ‘do_content’ filter.
All shortcodes work except the ones where they have put javascript inline (which are the two shortcodes used to embed videos you self host).
If you are not a developer, are using advanced custom fields (or possibly anything you need to run through to ‘do_content’ filter), and want to link to self hosted videos then this plugin will not work for you.[The “Advanced Custom Fields” plugin is not compatible with Lightbox Ultimate.]June 9, 2017 at 3:23 pm #75788wzpModeratorWhere, pray tell, can I find do_content() in the WordPress Codex, or WordPress source code?
July 20, 2017 at 10:28 pm #75789afrocubanMemberI´m having problems trying to play a Flash DVD from anchor text using the relevant shortcode. The Flash DVD is on my server and I can play it via any browser, as can be seen here (www.afrocubanallstarsonline.com/eng/Maryland/flashdvd.swf). However it does not play from a wordpress page I created to test it. Page is: [http://afrocubanallstarsonline.com/eng/?page_id=4659]. I get a message a message stating that the xml file can not be loaded (it´s a Flash DVD with Menus, etc). Message as follows:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: afrocubanallstarsonline.com/eng/Maryland/flashdvd.swf?w.afrocubanallstarsonline.com/eng/Maryland/flashdvd.swf?width=855&height=480 cannot load data from AuthoredContent.xml.
at EncoreSWF/onApplicationCreate()
at EncoreSWF/___EncoreSWF_Application1_creationComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Any clue? Do you think that´s necesary to edit the links at the AuthoredContent.xml. They are all src!
Please help,
Juan de Marcos
July 21, 2017 at 6:04 am #75790wpCommerceModeratorHi, I believe the problem is with the www prefix. You are trying to load a page with the www subdomain [http://www.afrocubanallstarsonline.com/eng/Maryland/flashdvd.swf] from a page that doesn’t have that prefix [http://afrocubanallstarsonline.com/eng/?page_id=4659]:
https://stackoverflow.com/questions/2001533/as3-security-sandbox-violation
-
AuthorPosts
- You must be logged in to reply to this topic.