If you open a new tab the video should continue unless you have some unusual browser settings/extensions.
If you navigate out in the same tab, the video cannot continue. You can store the current time in the browser cache on page leave and resume it (or calculate the new time when you’re back).