![]() ![]() media_player ( media, is_widescreen=False, show_like=True, show_dislike=True, show_download=False, show_embed=False, show_playerbar=True, show_popout=True, show_resize=False, show_share=True, js_init=None, **kwargs ) ¶ This will trigger the same error handling If some post-validation error is detected **kwargs – Validated and filtered form values.player ( subclass) – The player prefs mapped object to store the data in.Necessary to manually map field values to the data dictionary. Since form widgets may be nested or named differently than the keys Map validated field values to PlayerPrefs.data. player ( subclass) – The player prefs mapped object to retrieve the default.value ( dict) – A (sparse) dict of values to populate the form with.If the value dict is not fully populated, populate any missing entries PlayerPrefsForm ( *args, **kw ) ¶ display ( value, player, **kwargs ) ¶ĭisplay the form with default values from the given player. Setting this to False ensures that the resize (expand/shrink) controls will supports_resizing = True ¶Ī flag that allows us to mark the few players that can’t be resized. XHTML that will not be escaped by Genshi.Īn optional .PlayerPrefsForm. The final markup if appropriate for the player. Parameters:Įrror_text – Optional error text that should be included in Render the XHTML markup for this player instance. Return type:Ī javascript string which will evaluate to an instance Information see mediadrop/public/scripts/mcore/players/. Way of initializing and interacting with the player. Render a javascript string to instantiate a javascript player.Įach player has a client-side component to provide a consistent name ¶Ī unicode string identifier for this class. This allows for easy filtering of URIs by feeding any number of Return a subset of the uris for this player. display_name ¶Ī unicode display name for the class, to be used in the settings UI. Uris ( list) – A collection of StorageURI tuples to test.īoolean result for each of the given URIs.Īn optional default data dictionary for user preferences. This is a class method, not an instance or static method. Test all the given URIs to see if they can be played by this player. Return the desired viewable width + any extra for the player. Return the desired viewable height + the height of the controls. Undefined, a sane default value is provided. elem_id ( unicode, None, Default) – The element ID to use when rendering.data ( dict or None) – Optional player preferences from the database.uris ( list) – The StorageURIs this player has said it can_play().media ( instance) – The media object that will be rendered. ![]() Initialize the player with the media that it will be playing. _init_ ( media, uris, data=None, width=None, height=None, autoplay=False, autobuffer=False, qualified=False, **kwargs ) ¶ Player Base Class that all players must implement. AbstractPlayer ( media, uris, data=None, width=None, height=None, autoplay=False, autobuffer=False, qualified=False, **kwargs ) ¶ That has this feature is .Ībstract Base Class ¶ class. Players thatĭo this will have links, in MediaDrop’s admin backend, to a page where an adminĬan use the rendered form to edit the Player instance. Methods can map the form values to and from the data dict. Players can optionally define a dict of editable properties in their Player that can play one of the StorageURIs is rendered. Handling player interactions (resizes, clicks, etc.).Īsked, in order, if it can use any of the available StorageURIs. Library, that inherits from goog.ui.Component and is responsible for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |