hyperaudio / hyperaudio-lite

Hyperaudio Lite - a Super-lightweight Interactive Transcript Player
MIT License
128 stars 38 forks source link

Feature Request: Peertube Support #185

Open candidexmedia opened 11 months ago

candidexmedia commented 11 months ago

Hello! Thank you for making this app! I've been looking for something like this for a long time.

I was wondering if it was possible to support Peertube, a decentralized video platform running on the ActivityPub protocol (think YouTube-version of Mastodon).

Peertube's API is documented here: https://docs.joinpeertube.org/api/embed-player

Here's an example of an embed code for this video, hosted on an instance of Peertube called diode.zone:

<div style="position: relative; padding-top: 56.25%;">
  <iframe 
    title="HALiteIntro" 
    width="100%" 
    height="100%" 
    src="https://diode.zone/videos/embed/40f8f830-f265-4a51-9ed2-8c17f89ba170?autoplay=1&amp;title=0&amp;warningTitle=0&amp;peertubeLink=0" 
    frameborder="0" 
    allowfullscreen="" 
    sandbox="allow-same-origin allow-scripts allow-popups" 
    style="position: absolute; inset: 0px;">
  </iframe>
</div>
candidexmedia commented 11 months ago

You can view the API playground here: https://diode.zone/videos/test-embed/40f8f830-f265-4a51-9ed2-8c17f89ba170

maboa commented 11 months ago

Hi – from the information you've kindly provided, this looks possible. You could take a look at how we've supported other players and perhaps submit a pull request, with the relevant changes. Otherwise I'll take a look in the new year.