-
Notifications
You must be signed in to change notification settings - Fork 12
Description
This issue is for discussion of the map viewer capability "Toggle whether default controls are displayed".
Using the <video>
element as an example, the browser renderer is capable of rendering video content on demand of the author using something as simple as
<video controls width="250">
<source src="/media/examples/flower.webm"
type="video/webm">
<source src="/media/examples/flower.mp4"
type="video/mp4">
Sorry, your browser doesn't support embedded videos.
</video>
The video player rendered by that has default controls, styled according to the particular browser implementation. Yet, and I am not an expert, but I believe you can shut the controls off (by omitting the controls
attribute) and provide your own controls (if you wish) which respond to events (handled by script).
Maps should follow a similar approach: if you don't want default controls, don't ask for them. Then, use events emitted by the map 'player' to bind your own self-created controls to the map, with script.