Справка MediaWiki API

Это автоматически сгенерированная страница документации MediaWiki API.

Документация и примеры: https://www.mediawiki.org/wiki/API

action=timedtext

(main | timedtext)
  • Этот модуль внутренний или нестабильный. Его операции могут измениться без предупреждения.
  • Этот модуль требует прав на чтение.
  • Источник: TimedMediaHandler
  • Лицензия: GPL-2.0-or-later

Provides timed text content for usage by <track> elements

Параметры:
title

The media file title for which to retrieve timed text

pageid

The pageid of the media file for which to retrieve timed text

Type: integer
trackformat

The file format in which to return timed text

Одно из следующих значений: srt, vtt
lang

The language of the timed text to retrieve

Пример:
Fetch an SRT subtitle file in German for the file Example.ogv
api.php?action=timedtext&title=File:Example.ogv&lang=de&trackformat=vtt [открыть в песочнице]