HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
avcontrol.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2013 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
26 // pre-processor mechanism so multiple inclusions don't cause compilation error
27 #ifndef _AVCONTROL_H
28 #define _AVCONTROL_H
29 
30 #include "plugin.h"
31 
32 //---Constant and macro definitions for public use-----------------------------
33 
34 
35 //---Enumerations for public use-----------------------------------------------
36 
37 
38 //---Global type defs for public use-------------------------------------------
39 
40 
41 //---Global Function prototypes for public use---------------------------------
42 
43 S_PLUGIN* AVControlCreate(NPP instance, E_PluginType type, char *style_str, char *data, S32BIT width, S32BIT height);
44 void AVControlDestroy(S_PLUGIN *plugin);
45 
46 void AVControlSetStyleObject(S_PLUGIN *plugin);
47 void AVControlSetWindow(S_PLUGIN *plugin, NPWindow *window);
48 void AVControlPaint(S_PLUGIN *plugin, S_HBBTV_REGION *region);
49 void AVControlSetAudioParams(S_PLUGIN *plugin, BOOLEAN cache, S32BIT loop);
50 
51 void AVControl_onPlayStateChange(void *AVControl);
52 void AVControl_onPlayPositionChanged(void *AVControl, U32BIT position);
53 void AVControl_onFullScreenChange(void *AVControl);
54 void AVControl_onSelectedComponentChanged(void *AVControl, HBBTV_JSAVComponent_Type type);
55 void AVControl_onDRMRightsError(void *av_control, U8BIT error_state, void *content_id,
56  void *drm_system_id, void *rights_issuer_url);
57 
58 #endif /*_AVCONTROL_H*/
HBBTV_JSAVComponent_Type
Definition: hbbtv_js.h:94
Definition: npapi.h:178
Definition: plugin.h:77
Definition: npapi.h:516
NPAPI Plugin.
S_PLUGIN * AVControlCreate(NPP instance, E_PluginType type, char *style_str, char *data, S32BIT width, S32BIT height)
AVControl Create - Create the av control and store in link list.
Definition: avcontrol.c:238
Definition: hbbtv_types.h:181