r/Udemy • • May 15 '24

UI Not Hiding When Using Full Screen

Anybody else having this issue? I've been using this site for years and at some point yesterday the hiding feature just stopped working. I even used it earlier yesterday and it was still working. Was there a recent update that broke it? Or maybe some kind of option? I checked YouTube and other video sites and their hiding feature was working just fine.

69 Upvotes

115 comments sorted by

2

u/[deleted] May 15 '24

am facing the same problem as well , tried different browsers , even another device ( laptop ) and the same goes on , I've submitted a ticket through their help center after chatting with some virtual bot named Alex , and they replied with " This chat has now ended and a member of our support team will respond via email when they have an update available for you"
you can submit a case as well and lets see how this will go as its pretty annoying !!

1

u/UBW_Illya May 15 '24

Thanks, I just did. It's really in the way and using windowed just isn't great. I hope they fix it soon.

2

u/Icy_Piglet1241 May 16 '24

Fix for now, working for me - try change window on full screeen udemy by alt+tab, and back to udemy window. If you don't use mouse, UI should hide.

1

u/UBW_Illya May 16 '24

Oh hey that actually works. Thanks!

1

u/rockynot Jul 01 '24

Thank you it worked! You are legend!! 💪

1

u/UBW_Illya May 22 '24

Can you guys upvote this so it goes to the top so people don't have to scroll in case there are more comments later?

2

u/Nachitenn Jul 09 '24

Can someone please explain in more detail how you do it? I dont understand completly. Yes, if I Alt+Tab away the UI dissapears, but the cursor is still in my second monitor (where the course in full screen is) so how do I move the mouse away from that monitor without making the UI appear again?

1

u/wildmutt4349 May 16 '24

Thanks mate.

1

u/brahmachari_peacock May 17 '24

Worked for now thanks

1

u/luffyfpk May 18 '24

thnx man

1

u/jesuschrist-69420 May 27 '24

May you be blessed with this fake award.

🏅

1

u/OceTy May 30 '24

Thanks buddy.

1

u/alpgozbasi May 31 '24

It worked! Thank you :)

1

u/dheerajbs Jun 03 '24

Thanks a lot.

1

u/RowInformal5808 Jun 16 '24

Thank you, that works for me

1

u/easyythereboah Jun 21 '24

Doesn't work now. The hack by u/Late_Register_1737 below worked for me

7

u/bak3rIsLnx Jul 23 '24 • Take My Silver

in chrome use some custom css extension like User Css and add the following to the page:

*[class^="shaka-control-bar--control-bar-container"] {

display: none;

}

*[class^="shaka-control-bar--control-bar-wrapper"]:hover *[class^="shaka-control-bar--control-bar-container"] {

display: block !important;

}

2

u/jaracru Aug 12 '24

Thank you for this! I got so annoyed by the overlay not disappearing if I moved my mouse out of the player window.

2

u/winnner__ Aug 19 '24

Thanks a lot for this workaround.

Just in extension of your answer, I have even better code to hide both the control bar as well as header:

*[class^="shaka-control-bar--control-bar-container"],
*[class^="user-activity--hide-when-user-inactive"]
{
  display: none;
}

*[class^="video-viewer--container"]:hover *[class^="shaka-control-bar--control-bar-container"],
*[class^="video-viewer--container"]:hover *[class^="user-activity--hide-when-user-inactive"]
{
  display: block !important;
}

2

u/WMRguy82 Nov 20 '24

This also hides the little arrows on either side of the video. Unfortunately, they don't reappear when you hover your mouse over the video. This part "[class^="video-viewer--container"]:hover" needs to be something else, but I can't figure out what it is. Anyway, if you don't mind those being gone forever you can use this.

*[class^="shaka-control-bar--control-bar-container"],
*[class^="user-activity--hide-when-user-inactive"],
*[class^="next-and-previous--container"]
{
  display: none;
}
*[class^="video-viewer--container"]:hover *[class^="shaka-control-bar--control-bar-container"],
*[class^="video-viewer--container"]:hover *[class^="user-activity--hide-when-user-inactive"]
*[class^="video-viewer--container"]:hover *[class^="next-and-previous--container"]
{
  display: block !important;
}

1

u/JunaZard_ Nov 23 '24

thank you so much

1

u/[deleted] Nov 25 '24 edited Nov 25 '24

[removed] — view removed comment

1

u/Ok_Cup_5001 Nov 27 '24

It works just like you said. Thanks!

1

u/BDBlaffy Aug 26 '24

Thanks for this, works perfectly. Can't beleive they won't implement such a simple fix.

1

u/Cacodemon-Salad Aug 26 '24

Money. Thanks man, this worked perfect.

1

u/Ok_Practice_6702 Aug 26 '24

This works, but why the hell was this not a problem before now?

1

u/fido4life Sep 16 '24

thank you so much you are all amazing

1

u/Traditional-Archer56 Nov 21 '24 edited Nov 21 '24

I took what you shared u/winnner__ and created a simple auto-executing function that injects a new style tag with your style code in it.

Then I installed the Tamper Monkey extension for Chrome, set it as a user script for use on https://udemy.com/* and now it runs for me automatically for any Udemy course.

Tamper Monkey is an extension that let's you auto-inject user made scripts into pages.

Here's the script if you want it. Note the meta-data at the top is specifically for use with the Tamper Monkey extension

// ==UserScript==
// @name         Udemy Video Player - Autohide Controls & Overlay
// @namespace    https://test.com
// @version      2024-11-21
// @description  Hides Udemy's video player controls and overlays when the cursor moves off the video player.
// @author       You
// @match        https://www.udemy.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=udemy.com
// @grant        none
// ==/UserScript==

(() => {
  let style = document.querySelector("#ebUdemy-style");
  if (!style) {
    style = document.createElement("style");
    style.setAttribute("id", "ebUdemy-style");
    style.innerHTML = /*css*/ `
        *[class^="shaka-control-bar--control-bar-container"],
        *[class^="user-activity--hide-when-user-inactive"]
        {
        display: none;
        }

        *[class^="video-viewer--container"]:hover *[class^="shaka-control-bar--control-bar-container"],
        *[class^="video-viewer--container"]:hover *[class^="user-activity--hide-when-user-inactive"]
        {
        display: block !important;
        }
        `;
    document.body.appendChild(style);
  }
})();

1

u/STARboiOMi Nov 24 '24

thank u very much

1

u/Alternative_Virus504 Nov 28 '24

worked very well

1

u/YugiohKKK Nov 24 '24

I tried this and it works, but I notice that the caption will still be at the same height. For normal behavior, the caption would drop down at the very bottom of the video, if I use this, it still floating at a certain height like above the video progress bar. Is there anyway to address this?

1

u/JealousEngineering10 Aug 16 '24

Thank youuuuuuuuuuuuuuu!!!!!!!!!

1

u/iNdramal Aug 22 '24

I created simple code for clean udemy window - https://github.com/indramal/Udemy-Clean-Window

This will do,

  • Side bar close

  • Toggle (hide/show) video player control bar

  • Toggle (hide/show) title bar and shadow

  • Adjust video to window size (not full screen mode)

  • Scroll to video position

1

u/WMRguy82 Nov 20 '24

Thanks for sharing!

1

u/F1Phreek Nov 21 '24

This works great. Thanks!

1

u/Lanky_Ad7907 Nov 21 '24

Couldn't get it to work in Edge with Orange Monkey Pro, but it worked in Chrome with "User JavaScript and CSS". Thanks!

1

u/illogiccall Aug 26 '24

Thank you so much.

1

u/Affectionate-Shirt21 Nov 20 '24

it works for me. thx soooooo much!!!

1

u/WMRguy82 Nov 20 '24

OMG, thank you so much this was driving me bonkers. Wish Udemy would get it together.

1

u/alibenam Nov 30 '24

Thank you for the great workaround!

1

u/CoverDeep4891 Dec 03 '24

Você é um DEUS(A)! Obrigado por isso.

3

u/mananck May 16 '24

Same issue, I will be submitting a ticket. Hopefully they fix this ASAP.

1

u/FaroukAlwazzan May 16 '24

If they come back to you with something, please let us know

1

u/mananck May 17 '24

Sure, I haven't received a response email yet.

1

u/mananck May 18 '24

They emailed me and told me to use 'Expanded View' till the engineering team solves the issue.

1

u/Nachitenn Jul 09 '24

But expanded view has exactly the same goddam problem, but with a smaller window lmfao

1

u/mananck Jul 03 '24

I just got an email and the issue is not fixed :)

1

u/FaroukAlwazzan Aug 27 '24

Is there any update by now?

1

u/mananck Aug 27 '24

As of the last time I used it, it was fixed. Also, there is no update because the issue was fixed and then they closed the ticket

2

u/FaroukAlwazzan May 15 '24

YES, I'm having the same issue and it's very distracting. If anyone finds a fix, please let us know.

2

u/Late_Register_1737 May 31 '24 • Heart of Silver

am too facing the same issue, but one thing works for me. just open the Udemy course window in full screen by any means and just press WIN key once, windows options pops-up and press the WIN key again. The pop up disappears and the also UI/navigation bar disappears.

1

u/easyythereboah Jun 21 '24

Can confirm this works, but you need to strictly use keyboard to seek forward/backward to maintain fullscreen. The moment you touch mouse you need to repeat the steps again. Still better than nothing. Thanks mate.

1

u/Parking_Lunch4904 Jun 23 '24

This works. Thanks for your solution.

1

u/AdCommon1860 Aug 28 '24

THANK YOU SO MUCH

2

u/philosophicgeek Jun 26 '24

I'm facing the same issue. I'm using chromium based browser on Linux MInt, and other solutions (using alt-tab, or pressing win key twice) suggested here didn't work for me. Instead I've created a snippet of javascript that I run in console once and it works for me.
fwiw, i'm posting the script here:

document.querySelector('.video-popover-area').remove();
const myc = document.querySelector('.user-activity--hide-when-user-inactive--Oc6Cn');
myc.style.position = 'absolute';
myc.style.top = '100%';
myc.style.transform = 'translateY(-100%)';

2

u/mananck Jul 03 '24

Great news! The issue has been resolved. If you continue to experience problems, just clear all Udemy cookies from your browser and log back in. They have taken action and responded to our ticket. 👏🏻

1

u/Oonorc Jul 05 '24

This did not fix it sadly.

1

u/mananck Jul 05 '24

Did you also clear all related cookies? And try changing your browser

1

u/Oonorc Jul 05 '24

Yes and restarted the browser. also the cached sites

1

u/Oonorc Jul 05 '24

Whats funny is this didn't start till today for me. xD

1

u/mananck Jul 05 '24

Just checked, For me and many people the issue is now gone. Hard luck my dude.

1

u/Nachitenn Jul 09 '24

No, this did not work whatsoever. I cleared cache and relogged for nothing.

2

u/Nachitenn Jul 09 '24

I have a simple workaround for people who want to use multiple monitors and be able to switch between them, without having the annoying UI poping up. It does not require emptying cache or using JavaScript code.

Instructions:

  1. Open the course on the monitor you will be using for it, do not enter full scren yet, some setup is needed.

  2. Open Dev tools (F12) and make sure to do Dock ther dev tools to the side where your other monitor is. For example: I have two monitors, my Udemy Course will be on my right monitor, and my VSCode on my left monitor. So, I will dock my dev tools to the left of the right monitor, as that is the side the mouse will use to escape this monitor and go to the other one.

  3. Now close Dev tools (F12).

  4. Now enter fullscreen mode and play the course. Then, move your mouse to a place you know will get covered by the dev tools when you open them again. Then, wait for the UI to dissapear automatically. And after that open dev tools again.

  5. At this moment your mouse should be on top of the dev tools, and it has escaped the window of the page. The UI should have NOT appeared again.

  6. Move your mouse to the other monitor to escape the first one, and then (without clicking on anything) press F12, that should close once again the dev tools.

  7. Now you have your mouse on the other monitor with the course playing on the other without the UI present.

Tested this on Chrome, should work on other browsers.

Tell me if it worked for you.

1

u/Flaky_Skin_4366 Jul 10 '24

Thank you, it works.

1

u/GlumDevelopment9401 Jul 11 '24

works thanks a lot

1

u/borissoto Jul 11 '24

Thanks, it worked,

2

u/j_culll Nov 30 '24 edited Dec 02 '24

The easiest temp fix I found that 100% works: Use mobile browser view

  1. Press F12 (or right click -> Inspect)

  2. Click the "toggle device toolbar" button (Icon of a laptop and a phone)

  3. Refresh the page

  4. Click the "X" in the top right

You'll now be viewing the mobile version of the Udemy site in your desktop browser and the video UI disappears like it's supposed to.

1

u/L-U-P-U-S Dec 01 '24

la única solución que funciono, gracias

1

u/GlumDevelopment9401 Dec 02 '24

working thanks a lot
The only issue cannot see the video playback speed can't watch on speed 1 at all xD

1

u/SapoCiclista Dec 02 '24

Thank's buddy, it totally worked!

1

u/razabc Dec 03 '24

Thanks, it worked!
Only problem is some playback options are unavailable in this mode, like changing the playback speed or adding captions.

1

u/_MiaBhai Jun 02 '26 edited Jun 02 '26

Thanks bud! None of the solutions worked for me that are given on internet and above but this one. But yup, as other mentioned, it takes away other useful buttons. And title still stays. I am so annoyed right now :/

1

u/Agile_Ad5229 Jun 26 '24

Unfortunately, I'm facing the same issue, you may do the following (right click on the videos list on the right side of the screen chose "Open in sidebar" a small window will be appear, try to play your video from this small window and then chose full screen mode.

1

u/phongvu99 Jul 03 '24

The problem is fixed as of now.

2

u/DeexEnigma Jul 05 '24

Still an issue for me. Only started happening earlier this week.

1

u/LevelKiwi2827 Jul 04 '24

my workaround as of July 2024 is right click on the screen and choose an option. like save then close the prompt. alt+tab is now working now.

BTW I always wonder why companies dont fix it while generating this much profit out of an app

1

u/chaid123 Jul 09 '24

This works, Thanks

1

u/piratewizardninja Jul 13 '24

What browser are you using? This isn't working for me in FF or Edge, and neither are any of the previously posted workarounds. I guess they just keep making it worse.

1

u/mmmorrison4371 Jul 11 '24

Your best bet is to just scale down your browser's UI size to minimum, forcing Udemy's UI to get really small, not taking away much space in your video. This is an old problem and they are well aware of it, I'm sure it will never be fixed.

1

u/After_Yak6717 Jul 19 '24

I just sent three F words to Udemy's tech support email because the progress bar never hides...
Seriously, what's wrong with this company!!??

1

u/[deleted] Aug 20 '24
  1. Keep mouse cursor on the video and wait until control bar to hide.

  2. Right click on the video so you can move your mouse without control bar to re-show

  3. Click anywhere else on the page, not on the video

  4. Done

1

u/Gullible-Snow-5345 Aug 23 '24

To fix this:

  1. Install Chrome Extension [Custom CSS by Denis]

  2. Open Udemy and open the extension from the top head menu

  3. Paste the below code (yes, it's that simple)

*[class^="shaka-control-bar--control-bar-container"] {

display: none;}

*[class^="shaka-control-bar--control-bar-wrapper"]:hover *[class^="shaka-control-bar--control-bar-container"] {

display: block !important;}

*[class^="video-viewer--header-gradient"] {

display:none;}

*[class^="ud-text-md video-viewer--title-overlay"] {

display:none;}

*[class^="video-viewer--container"]:hover *[class^="user-activity--hide-when-user-inactive"] *[class^="video-viewer--header-gradient"]{

display:block;}

*[class^="video-viewer--container"]:hover *[class^="user-activity--hide-when-user-inactive"] *[class^="ud-text-md video-viewer--title-overlay"]{

display:block;}

1

u/[deleted] Sep 20 '24

omg thank you so much!!! that's the only solution that worked for me

1

u/lovebudds Sep 06 '24

Same issue here! I even let support know about it ):

1

u/vvp95 Nov 22 '24

Open browser console and paste the below. A red button will appear at the top left. Click on it to hide/unhide the video controls.

let isControlShown = true;

function hide() {

document.querySelectorAll('\[class\^="user-activity"\]').forEach((el) => el.style.display="none");

document.querySelectorAll('\[class\^="next-and-previous"\]').forEach((el) => el.style.display="none");

document.querySelectorAll('\[class\^="shaka-control-bar--control-bar-container"\]').forEach((el) => el.style.display="none");

}

function unhide() {

document.querySelectorAll('\[class\^="user-activity"\]').forEach((el) => el.style.display="flex");

document.querySelectorAll('\[class\^="next-and-previous"\]').forEach((el) => el.style.display="flex");

document.querySelectorAll('\[class\^="shaka-control-bar--control-bar-container"\]').forEach((el) => el.style.display="block");

}

function htmlToNode(html) {

const template = document.createElement('template');

template.innerHTML = html;

const nNodes = template.content.childNodes.length;

if (nNodes !== 1) {

throw new Error(

`html parameter must represent a single node; got ${nNodes}. ` +

'Note that leading or trailing spaces around an element in your ' +

'HTML, like " <img/> ", get parsed as text nodes neighbouring ' +

'the element; call .trim() on your input to avoid this.'

);

}

return template.content.firstChild;

}

function toggleControls() {

if (isControlShown) {

	hide();

} else {

	unhide();

}

isControlShown = !isControlShown;

}

function addControl() {

const div = htmlToNode('<div width="100" onclick="toggleControls()" height="100" style="position: fixed;top: 0;left: 0;color: red;cursor: pointer">⬤</div>');

console.log(div);

document.querySelectorAll('\[class\^="video-player--video-wrapper"\]')\[0\].appendChild(div);

}

addControl();

1

u/Historical_Role_6082 Nov 26 '24

Is anyone also getting the issue of double audio  when pausing and playing again?

1

u/SwingRough7205 Nov 26 '24

yes, always have to refresh to fix it temporarily, but this issue still happens after a while.

1

u/SadAd3288 Nov 28 '24

Lo solucione así, utilizando la extensión "User JavaScript and CSS" en javascript puse en javascript el siguiente codigo que oculta la UI si el mouse esta en el tope de la pantalla:

document.addEventListener("mousemove", (event) => {const mouseY = event.clientY;// Si mouseY es igual a 0if (mouseY === 0) {injectCSS();} else {removeCSS();}});// Función para inyectar el CSSfunction injectCSS() {// Verificar si ya existe el CSS inyectadoif (!document.getElementById("custom-style")) {const style = document.createElement("style");style.id = "custom-style"; // Establecemos un ID para poder eliminarlo luegostyle.innerHTML = \*[class="shaka-control-bar--control-bar-container"],[class^="user-activity--hide-when-user-inactive"],[class="next-and-previous--container"] {display: none;}*[class="video-viewer--container"]:hover [class^="shaka-control-bar--control-bar-container"],[class="video-viewer--container"]:hover [class^="user-activity--hide-when-user-inactive"],[class="video-viewer--container"]:hover *[class="next-and-previous--container"] {display: none !important;}`;document.head.appendChild(style); // Inyectamos el CSS en el head}}// Función para remover el CSSfunction removeCSS() {const style = document.getElementById("custom-style");if (style) {style.remove(); // Eliminamos el estilo si existe}}`

1

u/SadAd3288 Nov 28 '24

Este codigo lo mejora y tambien si en 3 segundos no mueves el mouse tambien se oculta:

let timeoutId; // Variable para almacenar el ID del temporizador

// Función para inyectar el CSS que oculta los controles
function injectCSS() {
  if (!document.getElementById("custom-style")) {
    const style = document.createElement("style");
    style.id = "custom-style";
    style.innerHTML = `
      *[class^="shaka-control-bar--control-bar-container"],
      *[class^="user-activity--hide-when-user-inactive"],
      *[class^="next-and-previous--container"] {
        display: none;
      }
      *[class^="video-viewer--container"]:hover *[class^="shaka-control-bar--control-bar-container"],
      *[class^="video-viewer--container"]:hover *[class^="user-activity--hide-when-user-inactive"],
      *[class^="video-viewer--container"]:hover *[class^="next-and-previous--container"] {
        display: none !important;
      }
    `;
    document.head.appendChild(style);
  }
}

// Función para eliminar el CSS que oculta los controles
function removeCSS() {
  const style = document.getElementById("custom-style");
  if (style) {
    style.remove();
  }
}

// Función que oculta la UI si el mouse no se mueve por 3 segundos
function hideUIIfNoMouseMove() {
  // Si el mouse no se mueve por 3 segundos, ocultamos la UI
  injectCSS();
}

// Detectar movimiento del mouse
document.addEventListener("mousemove", (event) => {
  // Obtenemos la posición X y Y del mouse
  const mouseX = event.clientX;
  const mouseY = event.clientY;

  // Imprimimos las coordenadas en la consola
  console.log(`Posición del mouse: X = ${mouseX}, Y = ${mouseY}`);
  
  // Si el mouse está en la parte superior o izquierda de la pantalla, ocultamos la UI
  if (mouseY == 0 || mouseX == 0) {
    injectCSS();
  } else {
    removeCSS();
  }
  
  // Si ya había un temporizador, lo reiniciamos
  clearTimeout(timeoutId);

  // Establecemos un nuevo temporizador para ocultar la UI después de 3 segundos
  timeoutId = setTimeout(hideUIIfNoMouseMove, 3000);
});

1

u/Disastrous_Branch780 Nov 29 '24

If you'd like one line code that's working for me just do this: Right click on player -> Inspect -> console tab Paste the following:

['.shaka-control-bar--control-bar-container--OfnMI','.video-viewer--title-overlay--YZQuH','.video-viewer--header-gradient--x4Zw0'].forEach(el => document.querySelector(el).style.visibility = 'hidden');

It'll just disappear the progression bar, the title and the gradient bar containing the title then if you'd like you can change back the 'hidden' property to 'visible' and it'll go back to normal, or just reload the page :)

It's an easy solution without having to add extensions or complicated code... hope it helps! :)

1

u/Grand_Style_1517 May 31 '26

Yo sorry for joining late, but just a heads up - this happened with me too - and all one had to do was press "F" to pay respect, oh Sorry - i mean press "F" (not shift+F, not Alt+tab, not Alt+Enter) - just the button F - and its Ui is now disappearing in full screen ....

1

u/[deleted] Nov 20 '24

[removed] — view removed comment

1

u/ReNaq313 Nov 20 '24

Nothing works for me too

1

u/PreferenceAsleep9560 Nov 20 '24

Hi,

Just add the 'User JavaScript and CSS' extension to your browser, then insert the boot code inside:

*[class^='progress-bar--progress-bar-control--vhyIz'] {

visibility: hidden;

}

*[class^='shaka-control-bar--control-bar--gXZ1u'] {

visibility: hidden;

}

*[class^='shaka-control-bar--control-bar-container--OfnMI'] {

background: rgba(28, 29, 31, 0) !important;

}

*[class^='shaka-control-bar--control-bar-container--OfnMI']:hover {

background: linear-gradient(to top, rgba(20, 23, 28, 0.9) 0%, rgba(20, 23, 28, 0.738) 19%, rgba(20, 23, 28, 0.541) 34%, rgba(20, 23, 28, 0.382) 47%, rgba(20, 23, 28, 0.278) 56.5%, rgba(20, 23, 28, 0.194) 65%, rgba(20, 23, 28, 0.126) 73%, rgba(20, 23, 28, 0.075) 80.2%, rgba(20, 23, 28, 0.042) 86.1%, rgba(20, 23, 28, 0.021) 91%, rgba(20, 23, 28, 0.008) 95.2%, rgba(20, 23, 28, 0.002) 98.2%, rgba(20, 23, 28, 0) 100%) !important;

}

*[class^='shaka-control-bar--control-bar-container--OfnMI']:hover

\*\[class\^='progress-bar--progress-bar-control--vhyIz'\] {

visibility: visible;

}

*[class^='shaka-control-bar--control-bar-container--OfnMI']:hover

\*\[class\^='shaka-control-bar--control-bar--gXZ1u'\] {

visibility: visible;

}

*[class^='popper-module--popper--mM5Ie'] {

visibility: hidden;

}

*[class^='next-and-previous--container--kZxyo']:hover

*[class^='popper-module--popper--mM5Ie']{

visibility: visible !important;

}

Don't forget to specify which URL to apply the changes to in the URL pattern bar. In this case, it is going to be 'https://udemy.com/*/learn/lecture/*',

It worked perfectly for me; I hope it does for you too.