Currently, the factories utilized to generate presenterRTC and audienceRTC instances of baseRTC are included in the controllers.js file. Ideally, these factories would be defined in separate presenter-rtc.js and audience-rtc.js files, which currently exist in the folder structure. The code was included in controllers.js in favor of the separate files because the latter would produce the following error:
"provider not defined error for audienceRTC -> audienceRTCProvider"
Currently, the factories utilized to generate presenterRTC and audienceRTC instances of baseRTC are included in the controllers.js file. Ideally, these factories would be defined in separate presenter-rtc.js and audience-rtc.js files, which currently exist in the folder structure. The code was included in controllers.js in favor of the separate files because the latter would produce the following error: "provider not defined error for audienceRTC -> audienceRTCProvider"