canvas-lms/frontend_build
Ed Schiebel c603d6e9f2 fix audio player and video player sizing
closes LA-729
flag=rce_enhancements

The original intent for the audio player was to size it so the buttons
just fit. This ignored the fact that it's rendered w/in an iframe,
so popup menus are clipped. This change sizes the player to leave
room for those popups.

While the ticket was written against the audio player, the same issues
may occur in the video player, either for portrait videos or videos < 400px
wide when closed captions are present.  The original code for
sizing the video player shrank the width to fit
thea video's size, which clipped the buttons. This change sets a minimum
width for the player and letter-boxes the video.

test plan:
  - in the new rce
  - add an audio file
  > expect it to be wide enough to show all the buttons and
    tall enough for the speed and volume popups

  - add a vertical video
  > expect the video sized to fit in the available space in the Computer
    tab of the Upload Media modal
  - Submit to upload
  > expect the player to be wide enough to show all the buttons
  - click the fullscreen button
  > expect the video to be the height of the screen and letterboxed
  - restore to windowed size
  > expect the video to return to its letterboxed size
  - click the video, then the Options button
  - change the video's size
  > expect the video to remain letterboxed

  - add a horizontal video
  > expect the video sized to fit in the available space in the Computer
    tab of the Upload Media modal
  - submit to upload
  > expect the player to be sized to the size of the video
  - fullscreen
  > expect the video to be letterboxed in the fullscreen player
    (if the aspect ration of the video !== that of your monitor,
     or fill the screen if they match)

  - for the horizontal video, select Opitons and
    change the size to be "medium" or "custom" and < 400px wide
    and add subtitles
  > expect the video to be letterboxed in a 400px wide iframe.

Change-Id: Ib5d08dbd7796985d00f656e38a642ab92939d614
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/238432
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Anderson <raanderson@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-06-04 12:58:00 +00:00
..
webpackHooks add webpack notification hooks for gnome/linux 2018-03-14 19:54:40 +00:00
BundleExtensionsPlugin.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
CompiledReferencePlugin.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
baseWebpackConfig.js fix audio player and video player sizing 2020-06-04 12:58:00 +00:00
bundles.js mv non-bundle-entries out of app/coffeescrips/bundles 2019-05-31 04:10:11 +00:00
clientAppPlugin.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
emberHandlebars.js Remove add-module-exports babel plugin & use esModules 2019-05-03 22:49:58 +00:00
i18n.js Remove add-module-exports babel plugin & use esModules 2019-05-03 22:49:58 +00:00
i18nLinerHandlebars.js Remove add-module-exports babel plugin & use esModules 2019-05-03 22:49:58 +00:00
i18nPlugin.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
momentBundles.js add slovenian locale 2019-03-12 14:33:42 +00:00
unextended.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
webpackHooks.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
webpackPublicPath.js Opt our js build tooling dirs into prettier 2018-11-07 22:46:16 +00:00
withExtensions.js Use es Modules for “plugin extensions” 2019-05-01 18:57:46 +00:00