The functionality to control DRM is provided as a function of the device's OS and the browser running on it. The following is an example of the flow of a JavaScript-based playback player that plays videos in a browser.