예제 #1
0
파일: talk.py 프로젝트: samlex20/pretalx
 def recording(self):
     for receiver, response in register_recording_provider.send_robust(
             self.request.event):
         if (response and not isinstance(response, Exception)
                 and hasattr(response, 'get_recording')):
             recording = response.get_recording(self.submission)
             if recording and recording['iframe']:
                 return recording
     return {}
예제 #2
0
파일: talk.py 프로젝트: toshywoshy/pretalx
 def recording(self):
     for __, response in register_recording_provider.send_robust(
             self.request.event):
         if (response and not isinstance(response, Exception)
                 and getattr(response, "get_recording", None)):
             recording = response.get_recording(self.submission)
             if recording and recording["iframe"]:
                 return recording
     return {}
예제 #3
0
 def recording(self):
     for receiver, response in register_recording_provider.send_robust(
             self.request.event):
         if (response and not isinstance(response, Exception)
                 and hasattr(response, 'get_recording')):
             recording = response.get_recording(self.object.submission)
             if recording and recording['iframe']:
                 return recording
         else:
             print(response)
     if self.object.submission.rendered_recording_iframe:
         return {
             'iframe': self.object.submission.rendered_recording_iframe,
             'csp_header': 'https://media.ccc.de',
         }
     return {}