-
Task
-
Resolution: Unresolved
-
Minor
-
None
-
2.2.4
-
None
-
MOODLE_22_STABLE
Issue
---------------------------------------------------------------------------------
No recordings are being displayed in the module for Adobe Connect version 9. There has been an API change.
The current code looks for a recording length to validate that the object being returned is actually a recording. => See https://github.com/number33/moodle-mod_adobeconnect/blob/MOODLE_20_STABLE/locallib.php#L624
- In Adobe Connect 8, that information was returned as an XML element of its own
- In Adobe Connect 9, that information is returned as an attribute of an existing element ('sco')
Sample AC v8:
~~~~~~~~~~~~~~~
<?xml version="1.0" encoding="utf-8"?>
<results>
<status code="ok"/>
<scos>
<sco sco-id="123456" source-sco-id="" folder-id="234567"
type="content" icon="archive" display-seq="0" is-folder="0">
<name>recording test_0</name>
<url-path>/pxxxxxx/</url-path>
<date-begin>2012-12-18T09:56:14.913+11:00</date-begin>
<date-end>2012-12-18T09:56:17.713+11:00</date-end>
<date-created>2012-12-18T09:56:14.913+11:00</date-created>
<date-modified>2012-12-18T09:56:18.453+11:00</date-modified>
<duration>00:00:02.800</duration>
</sco>
</scos>
</results>
Sample AC v9:
~~~~~~~~~~~~~~~
<?xml version="1.0" encoding="utf-8"?>
<results>
<status code="ok"/>
<scos>
<sco sco-id="123456" source-sco-id="" folder-id="234567"
type="content" icon="archive" display-seq="0" duration="3" is-folder="0">
<name>recording test_0</name>
<url-path>/pxxxxxx/</url-path>
<date-begin>2012-12-18T09:56:14.913+11:00</date-begin>
<date-end>2012-12-18T09:56:17.713+11:00</date-end>
<date-created>2012-12-18T09:56:14.913+11:00</date-created>
<date-modified>2012-12-18T09:56:18.453+11:00</date-modified>
</sco>
</scos>
</results>
Resolution
---------------------------------------------------------------------------------
Allow for both AC8 and AC9 formats.