-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zh-cn]: update translation for HTMLMediaElement #23712
Conversation
Preview URLs
Flaws (12)Note! 2 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
(comment last updated: 2024-09-21 02:55:59) |
|
||
- {{domxref("HTMLAudioElement")}} | ||
- {{domxref("HTMLVideoElement")}} | ||
- {{HTMLElement("audio")}} | ||
- {{HTMLElement("video")}} | ||
- {{HTMLElement("video")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
- {{HTMLElement("video")}} | |
- {{HTMLElement("video")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
少了末尾的空行
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里列出了当前 PR 存在的问题,下次请注意一下
|
||
## 语法 | ||
|
||
在类似 {{domxref("EventTarget.addEventListener", "addEventListener()")}} 的方法中使用此事件名,或者设置一个事件处理器属性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可省略最后的量词
|
||
## 事件类型 | ||
|
||
一个通用型 {{domxref("Event")}} 。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多了个空格,这里写“通用 Event”即可
|
||
- {{domxref("HTMLAudioElement")}} | ||
- {{domxref("HTMLVideoElement")}} | ||
- {{HTMLElement("audio")}} | ||
- {{HTMLElement("video")}} | ||
- {{HTMLElement("video")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
少了末尾的空行
```plain | ||
audio|video.audioTracks | ||
``` | ||
所返回的列表是 _活的_;这指的是,当音频轨道从媒体元素上增加或删除时,列表的内容将会动态的变化。一旦你引用了该列表,你可以监控它以检测何时有新的音轨被添加或已存在的音轨被删除。参阅 [AudioTrackList events](/zh-CN/docs/Web/API/AudioTrackList#events) 来学习更多关于获取一个媒体元素音轨列表变化的信息。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
返回的列表是“动态的”,注意,中文之间不能有空格,这里可以用星号来表示斜体
- {{domxref("HTMLMediaElement")}}: 用于指定 `HTMLMediaElement.audioTracks` 属性的接口 | ||
- {{HTMLElement("audio")}}, {{HTMLElement("video")}} | ||
- {{domxref("AudioTrack")}}, {{domxref("AudioTrackList")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意标点符号
</tr> | ||
</tbody> | ||
</table> | ||
当用户代理可以播放媒体时就会触发 **`canplay`** 事件,但是预计没有加载足够的数据以流畅的播放媒体至结束,可能需要停顿来缓存更多内容。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们对事件的第一段的描述格式是固定的,“xxx 事件会在 xxx 时触发”。
|
||
## 事件类型 | ||
|
||
一个通用型 {{domxref("Event")}} 。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同第一个文档
|
||
使用 `addEventListener()`: | ||
使用 `addEventListener()`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
标点错了,原来是对的
}); | ||
``` | ||
|
||
使用 `oncanplay` 事件处理器属性: | ||
使用`oncanplay`事件处理器属性: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
空格应该保留
|
||
## 参见 | ||
|
||
- {{domxref("HTMLAudioElement")}} | ||
- {{domxref("HTMLVideoElement")}} | ||
- {{HTMLElement("audio")}} | ||
- {{HTMLElement("video")}} | ||
- {{HTMLElement("video")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最后必须保留一个空行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢🙏
Co-authored-by: Allo <[email protected]>
Description
Update some description of
Motivation
Additional details
Related issues and pull requests