Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • _static-resources
  • main
  • v0.0.1
  • v0.0.2
  • v0.0.3
  • v0.0.4
6 results

Target

Select target project
  • moodleOpenCastDownloads/ff-ext
  • lukasj/ff-ext
2 results
Select Git revision
  • _static-resources
  • main
  • v0.0.1
  • v0.0.2
  • v0.0.3
5 results
Show changes

Commits on Source 5

......@@ -55,7 +55,7 @@ Nevertheless it is possible to get extensions signed by Mozilla and self-distrib
### downloads, with caveats _\*sigh\*_
tl;dr: Build it from source yourself, or use [the download/install site](https://dev.sudo42.de/public/ff-addons/oem.html).\
tl;dr: Use the source, or [visit the download/install site](https://dev.sudo42.de/public/ff-addons/oem.html).\
Read below for slightly more in-depth information.
#### external site
......
if (window.location.host === 'engage.streaming.rwth-aachen.de') {
if (!window.location.href.startsWith('https://engage.streaming.rwth-aachen.de/paella/ui/watch.html'))
if (!window.location.href.startsWith('https://engage.streaming.rwth-aachen.de/paella/ui/watch.html') || !window.location.href.startsWith('https://engage.streaming.rwth-aachen.de//paella7/ui/watch.html'))
console.warn('looks like we are running outside a player context‽')
const inFrame = (window.parent !== window)
......@@ -8,7 +8,7 @@ if (window.location.host === 'engage.streaming.rwth-aachen.de') {
.then(d=>d.json())
.then(meta => {
window._meta = meta
let videoTracks = meta['search-results'].result.mediapackage.media.track
let videoTracks = meta['result'][0].mediapackage.media.track
.filter(t=> t.mimetype.startsWith('video/') && t.url.startsWith('http'))
.sort((a,b) =>
a.mimetype.localeCompare(b.mimetype)
......@@ -59,7 +59,7 @@ function genIdPrefix(videoId) {
}
function genVideoContainerId(vidIdOrMeta) {
if (typeof vidIdOrMeta === 'object')
vidIdOrMeta = vidIdOrMeta['search-results'].result.id
vidIdOrMeta = vidIdOrMeta['result'][0].id
return `${genIdPrefix(vidIdOrMeta)}_container`
}
......@@ -77,7 +77,7 @@ const FMT = (()=>{
})()
function genLinkList(tracks, meta) {
let videoTitle = meta['search-results'].result.dcTitle || '?'
let videoTitle = meta['result'][0].dc.title[0] || '?'
let videoLinkList = document.createElement('ul')
videoLinkList.classList.add('videoLinkList')
tracks.forEach(track => {
......@@ -100,7 +100,7 @@ Audio: ${mAud.channels}ch@${FMT.hz(mAud.samplingrate)} (${FMT.bps(mAud.bitrate)}
}
function genLinkContainer(tracks, meta) {
let videoTitle = meta['search-results'].result.dcTitle || '?'
let videoTitle = meta['result'][0].dc.title[0] || '?'
let details = document.createElement('details')
details.id = genVideoContainerId(meta)
details.classList.add('_ext-openExcellenceMedia_container')
......
{
"manifest_version": 2,
"manifest_version": 3,
"name": "OpenExcellenceMedia",
"version": "0.0.3",
"version": "0.0.4",
"description": "Adds download links to videos on RWTH moodle which are served using an OpenCast iframe.",
"homepage_url": "https://git.fsmpi.rwth-aachen.de/moodleOpenCastDownloads/ff-ext",
"icons": {
......@@ -15,14 +15,14 @@
"content_scripts": [
{
"all_frames": true,
"matches": ["https://moodle.rwth-aachen.de/*", "https://engage.streaming.rwth-aachen.de/paella/ui/*"],
"matches": ["https://moodle.rwth-aachen.de/*", "https://engage.streaming.rwth-aachen.de/*"],
"js": ["free.js"],
"css": ["free.css"]
}
],
"browser_specific_settings": {
"gecko": {
"id": "{ad4c20e4-957a-45ff-a48e-a5497ccd59d5}",
"id": "{6e584591-b424-4330-ab93-765a260b0bb2}",
"strict_min_version": "60.0",
"update_url": "https://dev.sudo42.de/public/ff-addons/updates.json"
}
......