Forum topic: RSS
Submitted by jjbarrows on Tue, 2008/09/09 - 08:54.
hi,
when i include openvideo nodes in an RSS feed they provide links to the source media, but I would like links to the transcoded .flv file, does anyone know who to change this?
(i've tried editing the RSS template (using contemplate module) and can add extra info to the RSS but not replace/remove the source media link)
thanks,
Joseph






In the future op_video will support multiple transcodings per file, so a particular format / bitrate could be produced for RSS feeds.
In the meantime, you can edit op_video_nodeapi() in field.inc and replace every 'source_file' with 'flv_file'.
hi,
now my problem is that in the RSS feed the enclosure type in the playlist is set to application/octet-stream and not video/x-flv, thus the flashplayer i'm feeding the RSS to (as playlist) rejects those entries
i've manually gone into the database and changed all the filemime entries (accidently changed it for everything, not just the flv files, but it works for now)
-joseph
hey joseph, I suppose this is a bit late, but I was able to change type to video/x-flv by changing type to 'video/x-flv' in field.inc:
$rss_items[] = array('key' => 'enclosure',
'attributes' => array(
'url' => file_create_url($video['flv_file']['filepath']),
'length' => $video['flv_file']['filesize'],
'type' => 'video/x-flv'
)
);
Post new comment