Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Learn More

html5 player keypress

  • 6 отговора
  • 1 има този проблем
  • 11 изгледи
  • Последен отговор от 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

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.