BlockAttributes blockAttributes,
VolantisProtocol protocol,
MarinerPageContext pageContext)
throws PAPIException {
AudioAttributes attributes =
(AudioAttributes) blockAttributes;
// Nothing to do if the source cannot be generated.
AssetResolver resolver = pageContext.getAssetResolver();
String src = resolver.computeURLAsString(selected);
if (src == null) {
return;
}
aAttributes.setId(attributes.getId());
aAttributes.setTitle(attributes.getTitle());
aAttributes.setAssetURLSuffix(attributes.getAssetURLsuffix());
aAttributes.setSrc(src);
aAttributes.setTagName("audio");
// Add any event attributes.