Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

html5 player keypress

  • 6 ответов
  • 1 имеет эту проблему
  • 12 просмотров
  • Последний ответ от unreator

more options

My question is rather simple, is there any way to change how much you skip video when you press left or right key arrow in mozilla html5 player. Right now it skips 15 sec instead of standard 5 sec like in all players. All i found is some function in video while using inspector called keypress from chrome://global...videocontrols.xml:1237 but i can't edit it.

My question is rather simple, is there any way to change how much you skip video when you press left or right key arrow in mozilla html5 player. Right now it skips 15 sec instead of standard 5 sec like in all players. All i found is some function in video while using inspector called keypress from chrome://global...videocontrols.xml:1237 but i can't edit it.

Выбранное решение

I did exactly as @jscher2000 said, i just wrote an easiest extension that overrided the file with my edited file that had a changed value of time skip. I used this guide: https://developer.mozilla.org/en-US/docs/Building_an_Extension

you type "chrome://global/content/bindings/videocontrols.xml" in adress bar and you save it to get a xml file, then you open it with notepad, search for "oldval - 15" and "oldval + 15" and change it to whatever you want, put it in right folder (where sample.xul is in guide),

content of chrome.manifest: " content sample chrome/content/ override chrome://global/content/bindings/videocontrols.xml chrome://sample/content/videocontrols.xml "

i think that's the easiest way, i was planning to try to put this setting in about:config but it's working fine right now so i didn't bother.

Прочитайте этот ответ в контексте 👍 0

Все ответы (6)

more options

Seeems like image didnt attach.

Изменено unreator

more options

That chrome:// file most likely is part of Firefox's program files and not so easy to edit (not to mention, subject to replacement at each update). In principle, it would be easier to override the built-in function with an extension or possibly a userscript. I haven't searched for one...

more options

Any tips how to do it myself? Also is there any pettition to mozilla so they would change it to more default setting :)? Seems like it's just 10 sec to find and edit it, or maybe i can just compile full mozilla project with only this setting changed.

Изменено unreator

more options

Nvm, did it myself.

more options

Please explain what you did so others can try your idea.

more options

Выбранное решение

I did exactly as @jscher2000 said, i just wrote an easiest extension that overrided the file with my edited file that had a changed value of time skip. I used this guide: https://developer.mozilla.org/en-US/docs/Building_an_Extension

you type "chrome://global/content/bindings/videocontrols.xml" in adress bar and you save it to get a xml file, then you open it with notepad, search for "oldval - 15" and "oldval + 15" and change it to whatever you want, put it in right folder (where sample.xul is in guide),

content of chrome.manifest: " content sample chrome/content/ override chrome://global/content/bindings/videocontrols.xml chrome://sample/content/videocontrols.xml "

i think that's the easiest way, i was planning to try to put this setting in about:config but it's working fine right now so i didn't bother.