June 27, 2017 at 6:09 pm #26903
LearnDash newest version 2.4.5 introduces a new feature called Video Progression which allows video auto-start (auto-play), and auto-complete (Mark Complete) for lessons and topics.
I have been trying to get this to work with a Vimeo based video in a lesson, but it does not work. (Within the Invent theme.)
The Video Progression features work with YouTube based videos, but not Vimeo.
I can change the theme to Twenty Seventeen, and all Video Progression features work with Vimeo.
Does anyone have ideas on this?
Thanks!June 28, 2017 at 12:53 pm #26919
VeenaModeratorPost count: 8167
Can you pls share a link to an example page so that we can check if any js error happening .June 28, 2017 at 2:23 pm #26923
I received the following information from the LearnDash support team –
Looking at the JS console we see some errors https://dl.dropbox.com/s/3jagtxjyz2w598y/20170627-074535-ipc0b.png?dl=0 most notably is the one “Error: Syntax error, unrecognized expression: a[href*=#]” within jQuery. This is what is causing jQuery to not call the LD ready hook. Basically jQuery is just stopping.
Looking into the theme code we search for the pattern ‘a[href*=#]’. Found a few hits in the theme JS files. So we started disabling these lines one by one and found the lines affecting the jQuery error. In the theme file js/main.js lines 138-152 is the JS function highlight_menu(). Within this function there are a number of jQuery calls using that selector pattern ‘a[href*=#]’. The problem is the ‘#’ is somewhat reserved and needs to be escaped so instead of using ‘a[href*=#]’ it needs to be written as ‘a[href*=\\#]’ (not the double backslashes before the #.
This is the function before: https://dl.dropbox.com/s/nd5kt09lf82vi3j/20170627-080031-4ajxq.png?dl=0
and after with escaped ‘#’: https://dl.dropbox.com/s/0n6qob9xgavxstg/20170627-080108-g6ezk.png?dl=0
– ThanksJune 29, 2017 at 1:56 pm #26938
dany710ParticipantPost count: 7
livemesh gallery plugin users had problems with YouTube videos playing? Mine show up as black frames.July 17, 2017 at 8:20 pm #27056
I have updated to the most recent theme version and still have the issue with the auto-start function.
Strangely auto-start will work when I am logged in as admin, but not as a subscriber.
Any other ideas to try?July 18, 2017 at 3:26 am #27060
Probably the page is being cached? Generally for admins the pages are not cached but for end users the page is cached. Can you pls verify if the js/main.js file being served matched exactly the one in the latest version of the theme.
You can provide me a link to the site and I can check the same too.July 18, 2017 at 7:37 pm #27069
Do you have a private message method for me to give you a link and login?July 19, 2017 at 10:29 am #27072
You just post like normal but click on the option ‘Set as private reply’ in the checkbox below the editor and Tags field. The post will be hidden from everyone except the moderators of the forum.July 20, 2017 at 5:42 pm #27076July 20, 2017 at 7:29 pm #27077
shahjijahangirshahMemberPost count: 2This reply has been marked as private.July 24, 2017 at 6:23 am #27145
Sorry I have no rights to check things on your site. Also can you pls post a link to the page where this is happening? That will help me debug this issue.
Pls give me admin rights – after all this site is still under development. Thank you.July 27, 2017 at 6:41 pm #27163July 27, 2017 at 6:47 pm #27164July 31, 2017 at 1:58 pm #27175
I tried accessing the course you sent with the teststudent account (not admin – it works in admin account anyway) in all 4 browsers I have installed on my desktop and had absolutely no issues taking Lesson 1 with Vimeo Video auto-starting in all cases.
We tested your site from two dev machines in two different locations – one running Mac OS X and another Windows 10.
When you retest on your side, can you pls make sure you open a tab in private or incognito mode (https://support.google.com/chrome/answer/95464?co=GENIE.Platform%3DAndroid&hl=en) and see if it makes a difference? That way you will overcome problem of caching or some extension blocking the video (like the adblocker extensions).
You must be logged in to reply to this topic.