Pepper_31_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
samsung
pp_media_control_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_control_samsung.idl,
7
* modified Wed Dec 11 11:44:44 2013.
8
*/
9
10
#ifndef PPAPI_C_SAMSUNG_PP_MEDIA_CONTROL_SAMSUNG_H_
11
#define PPAPI_C_SAMSUNG_PP_MEDIA_CONTROL_SAMSUNG_H_
12
13
#include "ppapi/c/pp_macros.h"
14
15
/**
16
* @file
17
* This file defines structures used to decribe Media Player related enums
18
* like ones describing player states, erros, etc.
19
*/
20
21
22
/**
23
* @addtogroup Enums
24
* @{
25
*/
26
/** Enumeration representing possible states of the player (Media Control) */
27
typedef
enum
{
28
/** Invalid state represents error during processing requests */
29
PP_MEDIASTATE_INVALID
= -1,
30
/**
31
* Initial Media Control state, in this state no resources
32
* are allocated to the player.
33
*/
34
PP_MEDIASTATE_NULL
= 0,
35
/**
36
* State in which resources are allocated (stream/clip is located and can
37
* be accessed by the application) to the player and playback can be started.
38
*/
39
PP_MEDIASTATE_READY
= 1,
40
/**
41
* Playback was running, but is has been paused by the user.
42
* In this state player has still all its resources allocated,
43
* so playback can be immediately resumed from point in which it was paused.
44
* In paused state video is freezed but visible.
45
*/
46
PP_MEDIASTATE_PAUSED
= 2,
47
/** In this state content playback is running (media time is advancing). */
48
PP_MEDIASTATE_PLAYING
= 3
49
}
PP_MediaState
;
50
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_MediaState
, 4);
51
52
/** Enum representing types of error when accessing to the stream/clip data */
53
typedef
enum
{
54
/** No error occured */
55
PP_MEDIAERROR_NO_ERROR
= 0,
56
/** Not autorized to access given resource */
57
PP_MEDIAERROR_NOT_AUTHORIZED
= 1,
58
/** Given path is invalid */
59
PP_MEDIAERROR_FILE_NOT_FOUND
= 2,
60
/** Network error during downloading file */
61
PP_MEDIAERROR_NETWORK_ERROR
= 3,
62
/** Error during decoding stream/clip */
63
PP_MEDIAERROR_DECODE_ERROR
= 4
64
}
PP_MediaError
;
65
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_MediaError
, 4);
66
/**
67
* @}
68
*/
69
70
#endif
/* PPAPI_C_SAMSUNG_PP_MEDIA_CONTROL_SAMSUNG_H_ */
71
PP_MEDIASTATE_PLAYING
Definition:
pp_media_control_samsung.h:48
PP_MediaError
PP_MediaError
Definition:
pp_media_control_samsung.h:53
PP_MEDIASTATE_READY
Definition:
pp_media_control_samsung.h:39
PP_MEDIAERROR_DECODE_ERROR
Definition:
pp_media_control_samsung.h:63
PP_COMPILE_ASSERT_SIZE_IN_BYTES
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_MediaState, 4)
PP_MEDIAERROR_FILE_NOT_FOUND
Definition:
pp_media_control_samsung.h:59
PP_MEDIASTATE_INVALID
Definition:
pp_media_control_samsung.h:29
PP_MEDIAERROR_NOT_AUTHORIZED
Definition:
pp_media_control_samsung.h:57
PP_MEDIASTATE_NULL
Definition:
pp_media_control_samsung.h:34
PP_MEDIAERROR_NETWORK_ERROR
Definition:
pp_media_control_samsung.h:61
PP_MEDIASTATE_PAUSED
Definition:
pp_media_control_samsung.h:46
PP_MEDIAERROR_NO_ERROR
Definition:
pp_media_control_samsung.h:55
PP_MediaState
PP_MediaState
Definition:
pp_media_control_samsung.h:27
Generated on Wed May 4 2016 11:31:13 for Pepper_31_C_interfaces by
1.8.6