fixed problem with demo10

This commit is contained in:
Markos Calderon 2011-11-17 10:32:15 -08:00
parent d56130a239
commit 67914cf1f4
2 changed files with 46 additions and 41 deletions

3
bbb-api-demo/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build
lib
src/main/webapp/bbb_api_conf.jsp

View File

@ -440,6 +440,8 @@ public String getRecordings(String meetingID) {
for (int i = 0; i < recordingList.getLength(); i++) { for (int i = 0; i < recordingList.getLength(); i++) {
Element recording = (Element) recordingList.item(i); Element recording = (Element) recordingList.item(i);
if(recording.getElementsByTagName("recordID").getLength()>0){
String recordID = recording.getElementsByTagName("recordID").item(0).getTextContent(); String recordID = recording.getElementsByTagName("recordID").item(0).getTextContent();
String name = recording.getElementsByTagName("name").item(0).getTextContent(); String name = recording.getElementsByTagName("name").item(0).getTextContent();
String description = ""; String description = "";
@ -484,7 +486,7 @@ public String getRecordings(String meetingID) {
newXMLdoc += "<length>" + length + "</length>"; newXMLdoc += "<length>" + length + "</length>";
newXMLdoc += "</recording>"; newXMLdoc += "</recording>";
}
} }
}catch (Exception e) { }catch (Exception e) {
e.printStackTrace(System.out); e.printStackTrace(System.out);