![]() If not provided, the default value is 30 Optional: default frame rate value to use if calculation fails It's also recommended to add a listner for the event in order to be notified if there is an error during the calculation process (meaning that default values in configuration will be used). Then add a listener for the event in order to be notified when the frame rate value is available. Include the plugin JavaScript file after the AMP script in the of your html page: The event lets the user to get a notification every time the drop frame flag value changes. If there is an error while calculating the frame rate value (for example, the input is an AES encrypted source), the event is fired in order to notify the user about the error and that the default configuration values will be used. The calculation and parsing logic are asynchronous operations that start when loading a video source into the player in order to be notified when the frame rate and time scale values are available, you can register a listener for the event. Player.currentTime(omPresentationTime(absoluteTime)) Seek to the absolute time represented by the timecode Get the absolute time for the timecode This method also lets the user override the frame rate value manually. If the calculation fails, it returns the default value configured in the plugin options. This method returns the frame rate value of the current video source based on the tfhd/ trun MP4 boxes of the first MPEG-DASH video fragment. For this scenario, the default frame rate value from the plugin configuration options will be used or you can manually override the frame rate value. ![]() IMPORTANT: The frame rate calculation does not support Advanced Encryption Standard (AES) clear key encrypted content. In order to expose these features, the plugin adds the following methods and events to the Azure Media Player (AMP) API: This plugin calculates the frame rate of the current video source based on the tfhd/ trun MP4 boxes of the first MPEG-DASH video fragment, parses the time scale value from the MPEG-DASH client manifest, and also provides a way to generate the timecode for a given absolute time from the player (and the other way around). Services: media-services platforms: javascript author: Services: Frame Rate and Timecode Calculator Plugin for Azure Media Player InformationĪttributions: Southworks 2017 Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |