<audio> and <video> tags in KA webpages
I have seen a couple programs recently that have audio and video. The program that has audio just uses the audio tag and does not seem to be dodging any restrictions. The program with video does use some "hacky" code to add in the video.
Audio: https://khanacademy.org/cs/i/4688120582717440
Video: https://khanacademy.org/cs/i/5712178225037312
I wanted to know whether these programs aligned with the disallowed functionality section of the guidelines below.
To ensure that the webpages you create on Khan Academy will continue working in the future, they should not use functionalities intentionally disabled for reasons of security, privacy, or user experience.
- Sound: Webpages should only create sounds using the files available to ProcessingJS programs or the Web Audio API oscillator. Webpages should also only play sounds in response to user interaction. Webpages should not play sounds immediately upon load.
Neither the audio tag nor the video tag bring up any warnings when used, so they do not seem to be intentionally disabled functionalities. It seems that the audio tag might violate the guidelines about sound because it is not using a file available to PJS programs nor is it using the oscillator.
If anyone could provide a clear explanation of whether or not these are allowed that would be appreciated.
Please sign in to leave a comment.