router.beforeEach((to, from, next) => {
if (from.matched.some(record => record.meta.hasMultimedia)) {
stopAllPlayings();
next();
} else next();
});
const routes = [
{
path: '/funnyCatsVideos',
component: require('./views/funny-cats-videos.vue'),
name: 'videos',
meta: { hasMultimedia: true }
},