Merge branch '090-encrypted-recording' into mconf-live0.6.2
This commit is contained in:
commit
d8174e3d78
@ -111,6 +111,13 @@ done_files.each do |df|
|
||||
|
||||
BigBlueButton.logger.info("Creating metadata.xml")
|
||||
|
||||
# Get the real-time start and end timestamp
|
||||
meeting_start = BigBlueButton::Events.first_event_timestamp("#{meeting_process_dir}/events.xml")
|
||||
meeting_end = BigBlueButton::Events.last_event_timestamp("#{meeting_process_dir}/events.xml")
|
||||
match = /.*-(\d+)$/.match(meeting_id)
|
||||
real_start_time = match[1]
|
||||
real_end_time = (real_start_time.to_i + (meeting_end.to_i - meeting_start.to_i)).to_s
|
||||
|
||||
# Create metadata.xml
|
||||
b = Builder::XmlMarkup.new(:indent => 2)
|
||||
metaxml = b.recording {
|
||||
@ -118,8 +125,8 @@ done_files.each do |df|
|
||||
b.state("available")
|
||||
b.published(true)
|
||||
# Date Format for recordings: Thu Mar 04 14:05:56 UTC 2010
|
||||
b.start_time(BigBlueButton::Events.first_event_timestamp("#{meeting_process_dir}/events.xml"))
|
||||
b.end_time(BigBlueButton::Events.last_event_timestamp("#{meeting_process_dir}/events.xml"))
|
||||
b.start_time(real_start_time)
|
||||
b.end_time(real_end_time)
|
||||
b.download {
|
||||
b.format("encrypted")
|
||||
b.link("http://#{playback_host}/mconf_encrypted/#{meeting_id}/#{meeting_id}.dat")
|
||||
@ -168,4 +175,4 @@ done_files.each do |df|
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user