Extension:TimedMediaHandler/VideoJS Player/sv



The VideoJS Player is the replacement video player for MediaWiki and will soon replace the older video player featured on Wikimedia projects.

Den baseras på VideoJS, och har ett modernare, snabbare gränssnitt med stöd för mobila enheter och HTML5.

Du kan aktivera den på Wikimedia-wikier som en Betafunktion i det stationära läget genom att gå till dina inställningar.

Usage


There is both an audio and video player. You can find examples of both players on this page. Once launched you will see a control bar when interacting with the video.



The controls in order from left to right are:


 * VideoJS play pause control.png Play/pause control
 * VideoJS volume control.png Volume control
 * Playback position
 * Remaining playback time
 * VideoJS subtitle control.png Subtitle language selector and subtitle style controls
 * VideoJS resolution control.png Resolution selector
 * VideoJS picture-in-picture control.png Optional Picture-in-Picture control
 * VideoJS fullscreen control.png Fullscreen control
 * VideoJS file description control.png Info button to take you to the file description page

Mouse and keyboard controls

 * Click the play icon above the thumbnail to begin playback of the media file.
 * Right click or middle click the thumbnail to open the file description page
 * Play/Pause the player with a single mouse click inside the player window
 * Double click the player window to enter or leave fullscreen mode
 * The following keyboard controls are available:
 * k / spacebar-key : Play/pause the media playback
 * f-key : Enter/Leave fullscreen
 * m-key : Mute the audio
 * The player is fully keyboard accessible using tab, enter and spacebar keys

Varför?
Spelaren som Wikimedia använde sedan 2010 hade flera allvarliga nackdelar, som hindrade oss från att göra förbättringar.


 * Den är krångligt att använda på mobila apparater.
 * Ingen större spridning bland andra.
 * Skrevs innan HTML5 standardiserades.
 * Använder ett eget system för undertexterna.
 * Skrevs för att vara kompatibelt med Explorer 6 och använde den tidens JavaScript-standarder.
 * Skrevs innan vår egen JavaScript-stack utvecklades.
 * Har i praktiken inte underhållits i 8 år.

Kända problem

 * When a wiki is being switched, for several days you might notice that some pages will show the old player and other pages the new player. This is expected and caused by caching. No action or bug report is required for this.
 * Undertext kanske saknas i vissa filer. Vi avslutade stöd för wikitext i undertexten. Vi råder dig att skriva om de här undertexterna (T224258).
 * Audio opens a dialog rather than displayed inline when there is a transcription. This is a deliberate change, that will in future allow us to display transcriptions for audio. Please see T246035.

Videospelaren utvecklas fortfarande, men om du upplever några problem, får du gärna rapportera dem på diskussionssidan eller skicka in dem till Phabricator.

Developers
Developers working on features that use the Video.js player will need to initialize and configure it appropriately. Below is an example of typical usage.

Basic Configuration Example
The  can also be provided in the HTML  element instead of in JS:

Advanced configuration with Ogv.js support
If you need cross-platform playback of OGG or WebM files (many files in Commons are in these formats), you can use the Ogv.js plugin for Video.js, which is also included in TimedMediaHandler. Example configuration: