/** @param node <Playlist> node */
void
-Playlist::as_xml (xmlpp::Node* node)
+Playlist::as_xml (xmlpp::Node* node, bool with_content_paths)
{
BOOST_FOREACH (shared_ptr<Content> i, _content) {
- i->as_xml (node->add_child ("Content"));
+ i->as_xml (node->add_child ("Content"), with_content_paths);
}
}
return best_summary;
}
+
+bool
+Playlist::video_content_at (DCPTime time) const
+{
+ BOOST_FOREACH (shared_ptr<Content> i, _content) {
+ if (i->video && i->position() <= time && time < i->end()) {
+ return true;
+ }
+ }
+
+ return false;
+}