@@ -270,22 +270,13 @@ export class CoreH5PCore {
270270 // Never allow downloading in the app.
271271 displayOptions [ CoreH5PCore . DISPLAY_OPTION_DOWNLOAD ] = false ;
272272
273- // Embed - force setting it if always on or always off. In web, this is done when storing in DB.
274- const embed = this . h5pFramework . getOption ( CoreH5PCore . DISPLAY_OPTION_EMBED , CoreH5PDisplayOptionBehaviour . ALWAYS_SHOW ) ;
275- if ( embed == CoreH5PDisplayOptionBehaviour . ALWAYS_SHOW || embed == CoreH5PDisplayOptionBehaviour . NEVER_SHOW ) {
276- displayOptions [ CoreH5PCore . DISPLAY_OPTION_EMBED ] = ( embed == CoreH5PDisplayOptionBehaviour . ALWAYS_SHOW ) ;
277- }
273+ // Never show the embed option in the app.
274+ displayOptions [ CoreH5PCore . DISPLAY_OPTION_EMBED ] = false ;
278275
279276 if ( ! this . h5pFramework . getOption ( CoreH5PCore . DISPLAY_OPTION_FRAME , true ) ) {
280277 displayOptions [ CoreH5PCore . DISPLAY_OPTION_FRAME ] = false ;
281- } else {
282- displayOptions [ CoreH5PCore . DISPLAY_OPTION_EMBED ] = this . setDisplayOptionOverrides (
283- CoreH5PCore . DISPLAY_OPTION_EMBED , CoreH5PPermission . EMBED_H5P , id ,
284- displayOptions [ CoreH5PCore . DISPLAY_OPTION_EMBED ] ) ;
285-
286- if ( this . h5pFramework . getOption ( CoreH5PCore . DISPLAY_OPTION_COPYRIGHT , true ) == false ) {
287- displayOptions [ CoreH5PCore . DISPLAY_OPTION_COPYRIGHT ] = false ;
288- }
278+ } else if ( this . h5pFramework . getOption ( CoreH5PCore . DISPLAY_OPTION_COPYRIGHT , true ) == false ) {
279+ displayOptions [ CoreH5PCore . DISPLAY_OPTION_COPYRIGHT ] = false ;
289280 }
290281
291282 displayOptions [ CoreH5PCore . DISPLAY_OPTION_COPY ] = this . h5pFramework . hasPermission ( CoreH5PPermission . COPY_H5P , id ) ;
@@ -506,8 +497,8 @@ export class CoreH5PCore {
506497
507498 // tslint:disable: no-bitwise
508499 displayOptions [ CoreH5PCore . DISPLAY_OPTION_FRAME ] = ! ( disable & CoreH5PCore . DISABLE_FRAME ) ;
509- displayOptions [ CoreH5PCore . DISPLAY_OPTION_DOWNLOAD ] = ! ( disable & CoreH5PCore . DISABLE_DOWNLOAD ) ;
510- displayOptions [ CoreH5PCore . DISPLAY_OPTION_EMBED ] = ! ( disable & CoreH5PCore . DISABLE_EMBED ) ;
500+ displayOptions [ CoreH5PCore . DISPLAY_OPTION_DOWNLOAD ] = false ; // Never allow downloading in the app.
501+ displayOptions [ CoreH5PCore . DISPLAY_OPTION_EMBED ] = false ; // Never show the embed option in the app.
511502 displayOptions [ CoreH5PCore . DISPLAY_OPTION_COPYRIGHT ] = ! ( disable & CoreH5PCore . DISABLE_COPYRIGHT ) ;
512503 displayOptions [ CoreH5PCore . DISPLAY_OPTION_ABOUT ] = ! ! this . h5pFramework . getOption ( CoreH5PCore . DISPLAY_OPTION_ABOUT , true ) ;
513504
0 commit comments