rushkoff / rushkoff-archive

Douglas Rushkoff's article archive
0 stars 1 forks source link

External media: what types/sites do we need to support? #2

Open wu-lee opened 1 year ago

wu-lee commented 1 year ago

Once we start venturing beyond articles we have the source text for, we have a potential issue of catering for the diverse formats and presentations these come in.

Of course, we could just host files, but these won't necessarily be easy for people to browse and access. Often they can be on platforms which don't allow you access to the source files, and/or require you to go via their website, or possibly some embedded player or viewer.

Here are the main ways of embedding video/audio on the web:

For the first two cases, we can either host the content:

If we embed content in iframe tags, there are many platforms which host audio and video, each of which may have a different looking player, with (most importantly) different requirements to embed them. Some examples off the top of my head:

Likewise, for PDF articles and e-books, the ways of embedding these on the web are similar:

Except - there is no HTML5 support for PDF as there is for audio/video. Some browsers (Firefox, for instance) have an integral PDF reader, which makes it appear you're reading the PDF online, but this isn't everyone's experience.

Platforms which might host PDF/e-books in an embeddable form:

So: I thought about this and wondered how we'd support all that in the Rushkoff Archive site, and decided it would probably be a bit of a mission - I could get overwhelmed with different cases to support!

Even one platform can have its own diversity of format. You-Tube is a case in point - videos can come in funny aspect ratios, and there are various styles of URL which are used in different cases. See here for a list of You-Tube URLs seen in the wild!

On a previous site I worked on which embedded You-Tube videos, using Forestry.io as a UI, when a You-Tube URL was cut-and pasted in, sometimes they wouldn't work on the site because the URLs were in the wrong format to work in an iframe embed. What needs to be done for them to work is to extract the video ID code from the URL and just use that in a suitable HTML embed tag. Therefore this is what the Rushkoff Archive site does currently - it uses a 3rd party library to parse the URLs recorded in the Forestry form, and turn that into something uniform which works reliably. However because it was quite old and did not understand some You-Tube URLs now in circulation, I discovered I needed to fix it up. (More details in the issue #7)

Therefore, in the face of this potential diversity, what I suggest is that we first map out the problem, by collecting a list of those resources Doug would like to include, and then identifying:

This will then feed back to the decision on which platforms and/or media types to support, and how.