From de35cf487eab64e53d5e268504ee3b15da3a7921 Mon Sep 17 00:00:00 2001 From: Osman Bozdag Date: Mon, 2 Sep 2024 06:59:31 +0200 Subject: [PATCH 1/2] docs: Fix track function definition in helpers/html_helper.rst Fix track function definition in helpers/html_helper.rst --- user_guide_src/source/helpers/html_helper.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/user_guide_src/source/helpers/html_helper.rst b/user_guide_src/source/helpers/html_helper.rst index b16bba0eb933..473a446ff42d 100644 --- a/user_guide_src/source/helpers/html_helper.rst +++ b/user_guide_src/source/helpers/html_helper.rst @@ -326,11 +326,12 @@ The following functions are available: .. literalinclude:: html_helper/018.php -.. php:function:: track($name = ''[, $type = false[, $attributes = '']]) +.. php:function:: track($src, $kind, $srcLanguage, $label) - :param string $name: The name of the parameter - :param string $value: The value of the parameter - :param array $attributes: HTML attributes + :param string $src: The path of the media resource + :param string $kind: The kind of timed track + :param string $srcLanguage: The language of the timed track + :param string $label: A user-readable title for the timed track :returns: An HTML track element :rtype: string From e81e8e7f0e7f76c5b94ca843e14bf570ce7bc020 Mon Sep 17 00:00:00 2001 From: Osman Bozdag Date: Fri, 6 Sep 2024 09:51:33 +0200 Subject: [PATCH 2/2] docs: Fix track function src param definition in helpers/html_helper.rst Fix track function src param definition in helpers/html_helper.rst --- user_guide_src/source/helpers/html_helper.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/helpers/html_helper.rst b/user_guide_src/source/helpers/html_helper.rst index 473a446ff42d..aa579307eba9 100644 --- a/user_guide_src/source/helpers/html_helper.rst +++ b/user_guide_src/source/helpers/html_helper.rst @@ -328,7 +328,7 @@ The following functions are available: .. php:function:: track($src, $kind, $srcLanguage, $label) - :param string $src: The path of the media resource + :param string $src: The path of the track (.vtt file) :param string $kind: The kind of timed track :param string $srcLanguage: The language of the timed track :param string $label: A user-readable title for the timed track