Skip to content
Snippets Groups Projects

Adapt watch.html path to current RWTH moodle

2 files
+ 1
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 0
3
if (window.location.host === 'engage.streaming.rwth-aachen.de') {
if (!window.location.href.startsWith('https://engage.streaming.rwth-aachen.de/paella/ui/watch.html'))
console.warn('looks like we are running outside a player context‽')
const inFrame = (window.parent !== window)
const vId = new URLSearchParams(location.search).get('id')
fetch(`https://engage.streaming.rwth-aachen.de/search/episode.json?${new URLSearchParams({id:vId}).toString()}`)
Loading