35 Commits

Author SHA1 Message Date
Juan Leyva
41447216ea MDL-60264 media_vimeo: Support restricted videos by domain in the app
As reported in MOBILE-1511, Vimeo videos restricted by domain are not
working in the app.

The reason is simple: The restriction is done by the Referer HTTP
header, when a video is embedded via an iframe in the Moodle Site,
Vimeo checks the Referer to see if it matches the specified domain.

When the video is embedded in the mobile app, the Referer is the one
provided by the app Cordova container so Vimeo won't allow playing the
video.

The solution is to add an extra iframe on top of the Vimeo embedding
one (like a proxy), the app will display an iframe pointing to a page
in the site that will include the iframe pointing to vimeo so the
restriction check will work.
2017-09-28 10:00:21 +02:00
Andrew Nicols
2cad0cd3b6 MDL-57546 mediaplayer_youtube: Respect mobile URLs 2017-07-26 10:40:49 +08:00
Ruslan Kabalin
b03ffb099e MDL-59255 core: Make core_media_manager support RTMP. 2017-07-18 10:29:07 +01:00
Marina Glancy
6b7a32f33c MDL-56579 media_videojs: use new config element for selecting file types 2017-06-28 12:12:48 +08:00
Damyon Wiese
4a0a23e98f MDL-58472 videojs: Force manual initialise
If we let videojs auto-init the video/audio tags present in the page - we cannot guarantee that the
youtube library will be loaded by the time video.js is processing the tag.

Video.js uses the presence of a data-setup attibute to signal that it should auto-init this tag, so
we have to rename our config attribute to something else.
2017-06-13 09:11:20 +08:00
Eloy Lafuente (stronk7)
d989ee1e03 MDL-58853 versions: bump all versions and requires near release
version = 2017051500 release version
requires= 2017050500 current rc1 version
2017-05-09 02:58:28 +02:00
Dan Poltawski
bff89dd434 NOBUG: Fixed SVG browser compatibility 2017-04-21 15:48:28 +01:00
Jun Pataleta
04577e6599 Merge branch 'wip-MDL-58530-master' of git://github.com/marinaglancy/moodle 2017-04-19 16:55:14 +08:00
Marina Glancy
4cf6871ccf MDL-57616 media_videojs: set min height for videos
This partially reverts changes from MDL-57187 that added the limit for all videos and not just videojs.
Videojs displays a big play button that overlaps contents below during video loading.
2017-04-07 16:09:02 +08:00
Marina Glancy
4aaaabb0da MDL-58530 media_videojs: upgrade videojs to 5.18.4 2017-04-07 16:03:15 +08:00
John Okely
fb73f60a36 MDL-58361 media: Make core_meda_manager constructor private 2017-03-28 12:11:14 +08:00
Rajesh Taneja
49bf960cbb MDL-58261 behat: Fixed missing @_file_upload tags 2017-03-16 09:35:26 +08:00
Marina Glancy
63c102e095 MDL-57316 media: create different instances for different pages 2017-02-08 10:17:43 +08:00
John Okely
1abd43763c MDL-57316 media: Setup media plugins in media_manager::instance() 2017-02-07 09:16:01 +08:00
John Okely
c2e00335e1 MDL-57316 videojs: Add behat tests for lesson, url and resource 2017-02-07 09:16:01 +08:00
Dan Poltawski
da06c81947 MDL-57608 media_videojs: lazily load videojs on demand
The videojs javascript is over 1MB of javascript which we don't need to
load on every page, now that we only require it demand, the js can be
lazily loaded when its needed, which keeps the first.js smaller and more
likely to stay in browser cache.
2017-01-12 10:55:18 +08:00
Dan Poltawski
65b593a95c MDL-57608 media_videojs: fix third party locations 2017-01-12 10:55:18 +08:00
Marina Glancy
357e9654ba MDL-57608 media_videojs: load youtube module only when requested 2017-01-12 10:55:11 +08:00
Andrew Nicols
d8326d8364 MDL-57101 media_videojs: Load legacy events before use 2016-12-02 08:58:19 +08:00
Frederic Massart
b52c562a8c
MDL-57101 media_videojs: Dynamic loader works on self-matching nodes 2016-12-01 14:51:40 +08:00
Frederic Massart
36e6789b27
MDL-57101 filter: Load globally available filters on every page
Previous commits were overlooked, they should have passed the
system context to filter_manager::setup_page_for_fitlers(), the
page context was passed instead. Regardless, the processing of
the latter is too excessive for what we need, but, more importantly,
it does not return "Off, but available" filters which we also need.
2016-12-01 14:51:40 +08:00
Frederic Massart
39a9ac4098
MDL-57101 core_media: Only instantiate enabled plugins 2016-12-01 14:50:04 +08:00
Andrew Nicols
3f342da584 Merge branch 'MDL-57101-master-2nd' of git://github.com/FMCorz/moodle 2016-11-30 12:13:54 +08:00
David Monllao
8c291fb06e Merge branch 'wip-MDL-56829-master-2' of git://github.com/marinaglancy/moodle 2016-11-30 10:05:16 +08:00
Eloy Lafuente (stronk7)
04649747a4 MDL-57197 versions: bump all versions and requires near release
version = 2016120500 release version
requires= 2016112900 current rc4 version
2016-11-29 22:57:05 +01:00
Marina Glancy
7d94f001e2 MDL-56829 media_videojs: play inline on iPhone with ios 10 2016-11-29 13:02:31 +08:00
Frederic Massart
a174f2474f
MDL-57101 media_videojs: Set-up player on dynamically loaded content 2016-11-29 12:36:26 +08:00
Marina Glancy
d76dd4d064 MDL-56869 media_videojs: upgrade video.js to 5.12.6 2016-11-16 16:27:30 +08:00
Helen Foster
7f6accd448 MDL-56903 lang: Merge English strings from the en_fix language pack 2016-11-15 11:19:48 +01:00
Marina Glancy
69ba7bf659 MDL-56855 media_videojs: MPEG-2 is not supported 2016-11-10 14:46:47 +08:00
Dan Poltawski
fc760dd19e NOBUG: Fixed SVG browser compatibility 2016-11-08 10:19:16 +00:00
Marina Glancy
fbb36ed1e6 MDL-38158 media: some players do not want fallback to other players
there is already logic to determine whether html5 is supported;
otherwise we may end up with nested <audio> or <video> tags
2016-11-07 11:55:05 +08:00
Marina Glancy
2a63c0b1c2 MDL-38158 media: missing require and videojs fallback
Problems picked up by behat tests
2016-11-07 09:22:32 +08:00
Marina Glancy
7e3f637301 MDL-38158 media_videojs: Add Video.JS player 2016-11-04 17:30:43 +08:00
Marina Glancy
fab11235d8 MDL-38158 core_media: Convert media players to new plugin type
AMOS BEGIN
  MOV [siteyoutube,core_media],[pluginname,media_youtube]
  MOV [siteyoutube_desc,core_media],[pluginname_help,media_youtube]
  MOV [sitevimeo,core_media],[pluginname,media_vimeo]
  MOV [sitevimeo_desc,core_media],[pluginname_help,media_vimeo]
  MOV [html5audio,core_media],[pluginname,media_html5audio]
  MOV [html5audio_desc,core_media],[pluginname_help,media_html5audio]
  MOV [html5video,core_media],[pluginname,media_html5video]
  MOV [html5video_desc,core_media],[pluginname_help,media_html5video]
  MOV [flashanimation,core_media],[pluginname,media_swf]
  MOV [flashanimation_desc,core_media],[pluginname_help,media_swf]
AMOS END
2016-11-04 17:30:40 +08:00