Handle available status in bbb-common-web

This commit is contained in:
Paul Trudel 2023-03-20 18:38:24 +00:00
parent 87b4c3795b
commit 28780f8f21
2 changed files with 3 additions and 2 deletions

View File

@ -136,7 +136,8 @@ object RecMeta {
def getRecMeta(metaXml: Elem): Option[RecMeta] = {
val id = getText(metaXml, "id", "unknown")
val state = getText(metaXml, "state", "unknown")
val stateVal = getText(metaXml, "state", "unknown")
val state = if (stateVal.equals("available")) "published" else stateVal
val published = getText(metaXml, "published", "true").toString.toBoolean
val startTime = getValLong(metaXml, "start_time", 0)
val endTime = getValLong(metaXml, "end_time", 0)

View File

@ -277,7 +277,7 @@ logger.info 'Generating metadata xml'
metadata_xml = Nokogiri::XML::Builder.new do |xml|
xml.recording do
xml.id(meeting_id)
xml.state('published')
xml.state('available')
xml.published('true')
xml.start_time(start_real_time)
xml.end_time(start_real_time + final_timestamp - initial_timestamp)