saveMedia | R Documentation |
This function upload a media file to LaBB-CAT, associating it with a given transcript.
saveMedia(labbcat.url, id, media, track.suffix = NULL)
labbcat.url |
URL to the LaBB-CAT instance |
id |
The transcript ID. |
media |
The path to the media to upload. |
track.suffix |
The track suffix for the media, if any. |
For this function to work, the credentials used to connect to the server must have at least 'edit' access.
A named list describing the attributes of the uploaded media:
trackSuffix The track suffix of the media
mimeType The MIME type of the file
url URL to the content of the file
name Name of the file in LaBB-CAT
getAvailableMedia
deleteMedia
## Not run:
## upload transcript
saveMedia(
labbcat.url, "my-transcript.eaf", "my-transcript/audio/room-mic.wav", "-room")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.