in officevideo/officevideo.py [0:0]
def student_view(self, context=None):
"""
The primary view of the OfficeVideoXBlock, shown to students
when viewing courses.
"""
embed_code = self.output_code
if embed_code == '':
embed_code = self.get_officevideo_embed_code(officevideo_url=self.video_url)
html = self.resource_string("static/html/officevideo.html")
frag = Fragment(html.format(embed_code=embed_code, message=self.message, message_display_state=self.message_display_state))
frag.add_css(self.resource_string("static/css/officevideo.css"))
frag.add_javascript(self.resource_string("static/js/src/officevideo.js"))
frag.initialize_js('OfficeVideoXBlock')
return frag