fixed problem with demo10
This commit is contained in:
parent
d56130a239
commit
67914cf1f4
3
bbb-api-demo/.gitignore
vendored
Normal file
3
bbb-api-demo/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
build
|
||||
lib
|
||||
src/main/webapp/bbb_api_conf.jsp
|
@ -440,51 +440,53 @@ public String getRecordings(String meetingID) {
|
||||
for (int i = 0; i < recordingList.getLength(); i++) {
|
||||
Element recording = (Element) recordingList.item(i);
|
||||
|
||||
String recordID = recording.getElementsByTagName("recordID").item(0).getTextContent();
|
||||
String name = recording.getElementsByTagName("name").item(0).getTextContent();
|
||||
String description = "";
|
||||
NodeList metadata = recording.getElementsByTagName("metadata");
|
||||
if(metadata.getLength()>0){
|
||||
Element metadataElem = (Element) metadata.item(0);
|
||||
if(metadataElem.getElementsByTagName("description").getLength() > 0){
|
||||
description = metadataElem.getElementsByTagName("description").item(0).getTextContent();
|
||||
if(recording.getElementsByTagName("recordID").getLength()>0){
|
||||
|
||||
String recordID = recording.getElementsByTagName("recordID").item(0).getTextContent();
|
||||
String name = recording.getElementsByTagName("name").item(0).getTextContent();
|
||||
String description = "";
|
||||
NodeList metadata = recording.getElementsByTagName("metadata");
|
||||
if(metadata.getLength()>0){
|
||||
Element metadataElem = (Element) metadata.item(0);
|
||||
if(metadataElem.getElementsByTagName("description").getLength() > 0){
|
||||
description = metadataElem.getElementsByTagName("description").item(0).getTextContent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String starttime = recording.getElementsByTagName("startTime").item(0).getTextContent();
|
||||
String published = recording.getElementsByTagName("published").item(0).getTextContent();
|
||||
String playback = "";
|
||||
String length = "";
|
||||
NodeList formats = recording.getElementsByTagName("format");
|
||||
for (int j = 0; j < formats.getLength(); j++){
|
||||
Element format = (Element) formats.item(j);
|
||||
|
||||
String typeP = format.getElementsByTagName("type").item(0).getTextContent();
|
||||
String urlP = format.getElementsByTagName("url").item(0).getTextContent();
|
||||
String lengthP = format.getElementsByTagName("length").item(0).getTextContent();
|
||||
|
||||
if (j != 0){
|
||||
playback +=", ";
|
||||
}
|
||||
playback += StringEscapeUtils.escapeXml("<a href='" + urlP + "'>" + typeP + "</a>");
|
||||
|
||||
if(typeP.equalsIgnoreCase("slides")){
|
||||
length = lengthP;
|
||||
String starttime = recording.getElementsByTagName("startTime").item(0).getTextContent();
|
||||
String published = recording.getElementsByTagName("published").item(0).getTextContent();
|
||||
String playback = "";
|
||||
String length = "";
|
||||
NodeList formats = recording.getElementsByTagName("format");
|
||||
for (int j = 0; j < formats.getLength(); j++){
|
||||
Element format = (Element) formats.item(j);
|
||||
|
||||
String typeP = format.getElementsByTagName("type").item(0).getTextContent();
|
||||
String urlP = format.getElementsByTagName("url").item(0).getTextContent();
|
||||
String lengthP = format.getElementsByTagName("length").item(0).getTextContent();
|
||||
|
||||
if (j != 0){
|
||||
playback +=", ";
|
||||
}
|
||||
playback += StringEscapeUtils.escapeXml("<a href='" + urlP + "'>" + typeP + "</a>");
|
||||
|
||||
if(typeP.equalsIgnoreCase("slides")){
|
||||
length = lengthP;
|
||||
}
|
||||
}
|
||||
|
||||
newXMLdoc += "<recording>";
|
||||
|
||||
newXMLdoc += "<recordID>" + recordID + "</recordID>";
|
||||
newXMLdoc += "<name>" + name + "</name>";
|
||||
newXMLdoc += "<description>" + description + "</description>";
|
||||
newXMLdoc += "<startTime>" + starttime + "</startTime>";
|
||||
newXMLdoc += "<published>" + published + "</published>";
|
||||
newXMLdoc += "<playback>" + playback + "</playback>";
|
||||
newXMLdoc += "<length>" + length + "</length>";
|
||||
|
||||
newXMLdoc += "</recording>";
|
||||
}
|
||||
|
||||
newXMLdoc += "<recording>";
|
||||
|
||||
newXMLdoc += "<recordID>" + recordID + "</recordID>";
|
||||
newXMLdoc += "<name>" + name + "</name>";
|
||||
newXMLdoc += "<description>" + description + "</description>";
|
||||
newXMLdoc += "<startTime>" + starttime + "</startTime>";
|
||||
newXMLdoc += "<published>" + published + "</published>";
|
||||
newXMLdoc += "<playback>" + playback + "</playback>";
|
||||
newXMLdoc += "<length>" + length + "</length>";
|
||||
|
||||
newXMLdoc += "</recording>";
|
||||
|
||||
}
|
||||
}catch (Exception e) {
|
||||
e.printStackTrace(System.out);
|
||||
|
Loading…
Reference in New Issue
Block a user