Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Learn More

html5 player keypress

  • 6 respostas
  • 1 tem este problema
  • 14 visualizações
  • Última resposta por 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.

Solução escolhida

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.

Ler esta resposta no contexto 👍 0

Todas as respostas (6)

more options

Seeems like image didnt attach.

Modificado por unreator a

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.

Modificado por unreator a

more options

Nvm, did it myself.

more options

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

more options

Solução escolhida

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.