canvas-lms/lib/cc
John Corrigan c3e48f62e1 display inline flv media in ePubs
refs CNVS-21799

- Fetch transcoded mp4 in place of exported flvs.
- Reference mp4s in place of flvs in generated xhtml.
- Do not include in files array files that should not be uploaded to the
  ePub.
- Remove from xhtml references to files that are not included in the
  ePub.

test plan:
- Have a course with an assignment description, quiz description,
  discussion topic description, or wiki page body that contains a
  recorded video comment.
- Export course as an ePub.
- Observe that the video displays inline.

- Have a course with unsupported media (the official _supported_ list
  is: 'jpg', 'gif', 'png', 'mp4', 'm4v', 'flv', 'mp3').
- Export an ePub.
- Observe that the unsupported file is not part of the package (using
  something like Calibre's book editor).
- Observe that the reference to the media has been replaced with an
  explanation of its absence.

Change-Id: I9f5eab8fa1c86e719d69e4ae42451e795ee4b471
Reviewed-on: https://gerrit.instructure.com/64365
Reviewed-by: Matt Berns <mberns@instructure.com>
Tested-by: Jenkins
QA-Review: Landon Holmstead <lholmstead@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2015-10-27 15:36:06 +00:00
..
exporter display inline flv media in ePubs 2015-10-27 15:36:06 +00:00
importer add requirement_count to course copy 2015-10-05 13:00:10 +00:00
qti use Quizzes::ScopedToUser in CC::QTI::QTIGenerator#generate 2015-09-04 19:27:47 +00:00
xsd add requirement_count to course copy 2015-10-05 13:00:10 +00:00
assignment_groups.rb don't copy assignment groups on selective copy 2015-02-25 16:52:35 +00:00
assignment_resources.rb Import Canvas assignments into existing matching groups 2015-09-28 21:12:44 +00:00
basic_lti_links.rb export all external tool settings 2015-05-06 15:15:09 +00:00
canvas_resource.rb add media_tracks.xml reference to exported imsmanifest 2015-06-15 15:03:39 +00:00
cc_exporter.rb cleanup refactor of Rubocop's Lint/DeprecatedClassMethods 2015-04-28 18:38:24 +00:00
cc_helper.rb don't autorequire a bunch of gems that are rarely used 2015-04-09 18:47:50 +00:00
events.rb don't copy deleted calendar events 2012-05-31 12:12:06 -06:00
external_feeds.rb remove unused external feeds columns 2015-01-07 23:36:18 +00:00
grading_standards.rb exclude grading schemes/assignment groups in selective assignment export 2014-08-29 19:48:13 +00:00
importer.rb added an import package identifier 2011-09-23 13:27:28 -06:00
learning_outcomes.rb only export active learning outcomes and groups 2014-05-15 18:40:55 +00:00
manifest.rb export CC 1.3 assignment extension 2014-07-01 14:41:37 +00:00
module_meta.rb add requirement_count to course copy 2015-10-05 13:00:10 +00:00
organization.rb add unpublished module items as organization items on export 2014-09-10 15:13:03 +00:00
resource.rb don't copy all the grading standards in every course copy 2014-03-04 19:12:19 +00:00
rubrics.rb copy assignment rubric outcomes in selective export 2014-08-28 15:33:34 +00:00
schema.rb whitelist for xsd files for the cc module 2012-12-04 11:54:16 -07:00
topic_resources.rb use DisucssionTopic::ScopedToUser in CC::TopicResources#add_topics 2015-08-06 19:00:54 +00:00
web_links.rb moved common cartridge folder up a level 2011-04-18 08:09:08 -06:00
web_resources.rb preserve file student date restrictions on import/export 2015-08-10 15:46:22 +00:00
wiki_resources.rb use WikiPages::ScopedToUser in CC::WikiResources#add_wiki_pages 2015-08-04 15:41:17 +00:00