Skip to content

Commit

Permalink
feat: enable fullscreen, autoplay, camera, display-capture, `…
Browse files Browse the repository at this point in the history
…fullscreen`, `microphone` in iframe ResourceLink
  • Loading branch information
wazelin committed Jul 19, 2023
1 parent 9e70f55 commit ac76630
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
CHANGELOG
=========

2.8.0
-----

* Added support for `fullscreen`, `autoplay`, `camera`, `display-capture`, `fullscreen`, `microphone` in iframe ResourceLink
* Fixed Deep Linking URL validation

2.7.0
-----

* Added support for configurable LTI message TTL via `JWT_TTL` environment variable

2.6.0
-----

Expand Down
2 changes: 1 addition & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
application_env: '%env(resolve:APP_ENV)%'
application_api_key: '%env(resolve:APP_API_KEY)%'
application_vendors: '%kernel.project_dir%/vendor/composer/installed.php'
application_version: '2.7.0'
application_version: '2.8.0'
container.dumper.inline_factories: true
cache.redis.namespace: '%env(default:cache.redis.namespace.default:REDIS_CACHE_NAMESPACE)%'
cache.redis.namespace.default: 'devkit'
Expand Down
5 changes: 4 additions & 1 deletion templates/platform/message/ltiResourceLinkLaunch.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@
$('#launch-in-iframe').click(function () {
$(this).closest('.card').find('.card-body').replaceWith(
$('<div>').addClass('card-body embed-responsive embed-responsive-16by9').append(
$('<iframe>').addClass('embed-responsive-item').attr('src', $(this).data('url'))
$('<iframe>').addClass('embed-responsive-item').attr({
src: $(this).data('url'),
allow: 'fullscreen *;autoplay *;camera *;display-capture *;fullscreen* ;microphone *'
})
)
);
});
Expand Down

0 comments on commit ac76630

Please sign in to comment.