Pepper_37_C_interfaces
pp_media_source_samsung.h
Go to the documentation of this file.
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From samsung/pp_media_source_samsung.idl,
7  * modified Tue Dec 16 10:54:16 2014.
8  */
9 
10 #ifndef PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_
11 #define PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_
12 
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
15 #include "ppapi/c/samsung/pp_media_common_samsung.h"
16 
17 /**
18  * @file
19  * This file defines structures used to describe Media Source states.
20  */
21 
22 
23 /**
24  * @addtogroup Structs
25  * @{
26  */
27 /**
28  * The <code>PP_TimeRange</code> struct contains information about buffered
29  * time range - it's start and end.
30  */
31 struct PP_TimeRange {
32  /**
33  * Time in microseconds of beginning of buffered data
34  */
36  /**
37  * Time in microseconds of ending of buffered data
38  */
40 };
42 /**
43  * @}
44  */
45 
46 /**
47  * @addtogroup Enums
48  * @{
49  */
50 /** Enum representing types of ReadyStates of MediaSource */
51 typedef enum {
52  /**Source is not attached to a media element. */
54  /**Ready for data to be appended. */
56  /**Source is still attached to a media element, but endOfStream(
57  ) has been called. */
61 
62 /** Enum representing types of state returned after adding media source */
63 typedef enum {
64  /**Ok - source added. */
66  /**Player do not support type or codecs. */
68  /**Player reached limit of possible sources or source IDs. */
70  /**ReadyState is not PP_MEDIAREADYSTATE_OPEN. */
72  /**Type or codecs are not specified (empty strings). */
74  /**Status unknown error. */
78 
79 /** Enum representing types of possible returned errors */
80 typedef enum {
81  /** Source unknown error */
83  /** No buffer with such id attached to source */
85  /** No resource */
87  /** Append failed */
89  /** signalled when trying to add new buffer to closed source. */
93 
94 /** Enum representing types of possible returned SourceEnded errors */
95 typedef enum {
96  /** Source ended correctly */
98  /** Source ended because of network error */
100  /** Source ended because of decoding error */
104 /**
105  * @}
106  */
107 
108 #endif /* PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_ */
109 
int64_t PP_MicrosecondsDelta
PP_MicrosecondsDelta start
PP_SourceEndedStatus
PP_MicrosecondsDelta end
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_TimeRange, 16)
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_MediaReadyState, 4)