Shaka Player Embedded
stats_objc.h
Go to the documentation of this file.
1 // Copyright 2020 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // AUTO-GENERATED: DO NOT EDIT
16 
17 #ifndef SHAKA_EMBEDDED_OBJC_STATS_H_
18 #define SHAKA_EMBEDDED_OBJC_STATS_H_
19 
20 #import <Foundation/Foundation.h>
21 
22 #include "macros.h"
23 
24 NS_ASSUME_NONNULL_BEGIN
25 
31 @interface ShakaTrackChoice : NSObject
32 
37 @property (atomic, readonly) double timestamp;
38 
40 @property (atomic, readonly) double id;
41 
43 @property (atomic, readonly) NSString *type;
44 
49 @property (atomic, readonly) BOOL fromAdaptation;
50 
52 @property (atomic, readonly, nullable) NSNumber *bandwidth;
53 
54 @end
55 
56 
62 @interface ShakaStateChange : NSObject
63 
68 @property (atomic, readonly) double timestamp;
69 
74 @property (atomic, readonly) NSString *state;
75 
81 @property (atomic, readonly) double duration;
82 
83 @end
84 
85 
94 @interface ShakaStats : NSObject
95 
97 @property (atomic, readonly) double width;
98 
100 @property (atomic, readonly) double height;
101 
103 @property (atomic, readonly) double streamBandwidth;
104 
109 @property (atomic, readonly) double decodedFrames;
110 
115 @property (atomic, readonly) double droppedFrames;
116 
118 @property (atomic, readonly) double estimatedBandwidth;
119 
125 @property (atomic, readonly) double loadLatency;
126 
128 @property (atomic, readonly) double playTime;
129 
131 @property (atomic, readonly) double bufferingTime;
132 
134 @property (atomic, readonly) NSArray<ShakaTrackChoice *> *switchHistory;
135 
137 @property (atomic, readonly) NSArray<ShakaStateChange *> *stateHistory;
138 
139 @end
140 
141 
142 NS_ASSUME_NONNULL_END
143 #endif // SHAKA_EMBEDDED_OBJC_STATS_H_
#define SHAKA_EXPORT
Definition: macros.h:30
NSString * type
Definition: stats_objc.h:43
double timestamp
Definition: stats_objc.h:37
int width
int height
NSNumber * bandwidth
Definition: stats_objc.h:52