Handle available status in bbb-common-web
This commit is contained in:
parent
87b4c3795b
commit
28780f8f21
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user