Designing the enclosure ...
The enclosure is the data created by virtue of sombody attaching some kind of media to an entry. According to the feeds (both RSS and Atom) it requires the following data:
Questions i still have ...
- URL of the media file
- type - designates a standard MIME type. an mp3 would be
type="audio/mpeg"
- length - length in bytes of the media file
- context: PrimaryDirectory
- subject: item number
- verb: "enclosure"
- object: url
- objectType: "enclosure"

Note: i'm seriously drifting to the idea that all of the properties for the enclosure end up being their own quads. For example ...
Feed: The atom feed will generate the following code ...
<link rel="enclosure" type="audio/mpeg" length="1337"
href="http://example.org/audio/ph34r_my_podcast.mp3"/>
.. i will assume that i can put additional properties there.
- type: audio/mpeg
- length: 9200054 (bytes)
- size: 35 (minutes)
- artist: Paula Waby
- playerTemplate: name of player template
- etc ...
Feed: The atom feed will generate the following code ...
<link rel="enclosure" type="audio/mpeg" length="1337"
href="http://example.org/audio/ph34r_my_podcast.mp3"/>
.. i will assume that i can put additional properties there.
Questions i still have ...
- how does one publish a youtube video here ... what would the enclosure look like?
- enclosure: URL (example)
- playerTemplate: youTubeEmbed (see embed code on youtube ... this is a reference to that)
- How do i provide enough information to generate the html to embed players for the various medias, still provide the information for the enclosure in the feed, and provide the ability to download the file?
- If i ever get a reliable player installed, i'll provide that. For now i've given up on it, a simple hyperlink to the file will have to do ... after all that works well.
Tags
- enclosure
Comments
Seth says
I just wiped out my whole quads database with a dumb query ...

source: my test query
UPDATE `quads` SET `context` = "bozo" , `subject` = "71", `verb` = "enclosure", `object` = "http://www.speaktomecatalog.com/mp3/CLKNCAT.mp3" , `objecttype` = "enclosure"
UPDATE `quads` SET `context` = "bozo" , `subject` = "71", `verb` = "enclosure", `object` = "http://www.speaktomecatalog.com/mp3/CLKNCAT.mp3" , `objecttype` = "enclosure"
... it needed a where or something else.