chris.hearn01@ntlworld.com's avatar

Laracasts website - can't play next video in series

Haven't been to Laracasts for long time... maybe I'm missing something obvious, but having watched first video in "What's new in Laravel 11" , I select "Episode 2" in lefthand list, I see a red play button, but it does nothing - the description below the video DOES seem to change, but video does not. Using Windows 10 PC and Chrome browser (latest version 122) I would post a screenshot, but don't see a way to upload it here. Thanks Chris

0 likes
2 replies
LaryAI's avatar
Level 58

It sounds like you might be experiencing a JavaScript issue on the Laracasts website, where the event listener for the play button isn't triggering the video to play. Here are a few steps you can take to troubleshoot the problem:

  1. Clear your browser cache and cookies: Sometimes, old cached data can cause issues with website functionality. Clearing your cache and cookies can often resolve these issues.

  2. Check for JavaScript errors: Open your browser's developer tools (usually F12 or right-click and select "Inspect") and go to the "Console" tab. Look for any JavaScript errors that might be occurring when you try to play the video. These errors can give you clues about what's going wrong.

  3. Disable browser extensions: Sometimes, browser extensions can interfere with the scripts running on a page. Try disabling extensions, especially ad blockers or script blockers, to see if that resolves the issue.

  4. Try a different browser: If the issue persists, try accessing the site with a different browser to see if the problem is specific to the browser you're using.

  5. Check for updates: Ensure that your browser is up to date, as outdated browsers may not support all the features required by modern websites.

  6. Contact support: If none of the above steps work, it might be a problem with the website itself. In this case, you should reach out to Laracasts support for assistance. They may be aware of the issue and can provide a solution or fix the problem on their end.

Here's a simple JavaScript snippet that simulates what might be happening when you click the play button. This is just for illustrative purposes and not a direct fix for the Laracasts website:

document.addEventListener('DOMContentLoaded', function() {
    var playButton = document.getElementById('play-button');
    playButton.addEventListener('click', function() {
        var video = document.getElementById('video-player');
        if (video) {
            video.play();
        } else {
            console.error('Video player not found!');
        }
    });
});

Remember, this is just an example and not the actual code used by Laracasts. If you're still having trouble after trying these steps, reaching out to Laracasts support is the best course of action.

chris.hearn01@ntlworld.com's avatar
Level 13

Yeah, good call, Chrome needed "laracasts.com" adding as exception for third party cookies - oh not working again... it's my BitDefender package (anti-virus etc) - grrrhhh!

Please or to participate in this conversation.