Last active
May 16, 2020 09:13
-
-
Save pa4080/fedee0832b0528955be836c772d62105 to your computer and use it in GitHub Desktop.
Patch for MediaWiki Extension:TimedMediaHandler REL1_34 - allow the new Video Player for ALL users including anonymous
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- includes/TimedMediaHandlerHooks.php 2020-05-16 11:33:18.722588117 +0300 | |
+++ includes/TimedMediaHandlerHooks.patch.php 11:32:52.290407251 +0300 | |
@@ -592,7 +592,8 @@ | |
) { | |
return 'videojs'; | |
} else { | |
- return self::defaultPlayerMode(); | |
+ return 'videojs'; | |
+ //return self::defaultPlayerMode(); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch allows the usage of the new Video Player (provided as beta feature by Extension:TimedMediaHandler, on MW REL1_34) for ALL users including anonymous ones. Here is how to apply the patch:
In order to revert the change before update use:
References:
https://www.thegeekstuff.com/2014/12/patch-command-examples/
diff -u source.file modified.file > patch.file