init.js 513 B

12345678910111213141516171819202122232425
  1. require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
  2. ready(function () {
  3. PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED_CDM, function (row) {
  4. if (row) {
  5. row.select("video").each(function (v) {
  6. v.setAttribute("muted", true);
  7. });
  8. }
  9. return true;
  10. });
  11. PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED, function (row) {
  12. if (row) {
  13. row.select("video").each(function (v) {
  14. v.setAttribute("muted", true);
  15. });
  16. }
  17. return true;
  18. });
  19. });
  20. });