Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Learn More

html5 player keypress

  • 6 yanıt
  • 1 kişi bu sorunu yaşıyor
  • 11 gösterim
  • Son yanıtı yazan: 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.

Seçilen çözüm

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.

Bu yanıtı konu içinde okuyun 👍 0

Tüm Yanıtlar (6)

more options

Seeems like image didnt attach.

unreator tarafından tarihinde düzenlendi

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 tarafından tarihinde düzenlendi

more options

Nvm, did it myself.

more options

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

more options

Seçilen çözüm

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.