HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
broadcast.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 _BROADCAST_H
28 #define _BROADCAST_H
29 
30 #include "hbbtv_sif_types.h"
31 #include "hbbtv_js.h"
32 #include "plugin.h"
33 
34 //---Constant and macro definitions for public use-----------------------------
35 
36 //---Enumerations for public use-----------------------------------------------
37 
38 //---Global type defs for public use-------------------------------------------
39 
40 //---Global Function prototypes for public use---------------------------------
41 void BroadcastInit(void);
42 S_PLUGIN* BroadcastCreate(NPP instance, char *style_str);
43 void BroadcastDestroy(S_PLUGIN *plugin);
44 
45 void BroadcastSetStyleObject(S_PLUGIN *plugin);
46 void BroadcastSetWindow(S_PLUGIN *plugin, NPWindow *window);
47 void BroadcastPaint(S_PLUGIN *plugin, S_HBBTV_REGION *rect);
48 void BroadcastStreamData(S_PLUGIN *plugin, void *notifyData, U8BIT *data, U32BIT length);
49 void BroadcastStreamNotify(S_PLUGIN *plugin, void *notifyData, NPReason reason);
50 
51 /* Callback functions for the HbbTV engine */
52 void Broadcast_onPlayStateChange(void *videoBroadcast, E_HBBTV_BROADCAST_STATE state,
54 void Broadcast_onChannelChangeError(void *videoBroadcast, void *channel,
56 void Broadcast_onChannelChangeSucceeded(void *videoBroadcast, void *channel);
57 void Broadcast_onFullScreenChange(void *videoBroadcast);
58 void Broadcast_onParentalRatingChange(void *videoBroadcast, void *contentID,
59  void *parental_ratings, void *drmSystemID, BOOLEAN blocked);
60 void Broadcast_onParentalRatingError(void *videoBroadcast, void *contentID,
61  void *parental_ratings, void *drmSystemID);
62 void Broadcast_onSelectedComponentChanged(void *videoBroadcast, HBBTV_JSAVComponent_Type type);
63 void Broadcast_onProgrammesChanged(void *videoBroadcast);
64 void Broadcast_onStreamEvent(void *videoBroadcast, U32BIT event_type, S_HBBTV_SE_INFO *einfo);
65 void Broadcast_onRecordingEvent(void *video_broadcast, HBBTV_JSVideoBroadcast_RECORDING_STATE state,
66  HBBTV_JSVideoBroadcast_RECORDING_ERROR error, void *id);
67 void Broadcast_onPlaySpeedChanged(void *video_broadcast, float speed);
68 void Broadcast_onPlayPositionChanged(void *video_broadcast, U32BIT position);
69 void Broadcast_onDRMRightsError(void *video_broadcast, U8BIT error_state, void *content_id,
70  void *drm_system_id, void *rights_issuer_url);
71 
72 #endif /*BROADCAST_H*/
HBBTV_JSAVComponent_Type
Definition: hbbtv_js.h:94
Definition: npapi.h:178
Definition: plugin.h:77
Definition: npapi.h:516
NPAPI Plugin.
void BroadcastInit(void)
SEventInit - initialise string identifiers for SEvent.
Definition: broadcast.c:251
System Interface, common types.
S_PLUGIN * BroadcastCreate(NPP instance, char *style_str)
Broadcast Create - Create the application manager and store handle.
Definition: broadcast.c:275
Definition of functions implementing the HbbTV Javascript extension.
Definition: hbbtv_js.h:138
HBBTV_JSVideoBroadcast_ERROR_STATE
Definition: hbbtv_js.h:105
Definition: hbbtv_types.h:181