@@ -39,7 +39,7 @@ inline void OnPlayPauseStop(int32_t id, PlayerState* state) {
39
39
40
40
Dart_CObject type_object;
41
41
type_object.type = Dart_CObject_kString;
42
- type_object.value .as_string = " playbackEvent" ;
42
+ type_object.value .as_string = const_cast < char *>( " playbackEvent" ) ;
43
43
44
44
Dart_CObject is_playing_object;
45
45
is_playing_object.type = Dart_CObject_kBool;
@@ -66,7 +66,7 @@ inline void OnPosition(int32_t id, PlayerState* state) {
66
66
67
67
Dart_CObject type_object;
68
68
type_object.type = Dart_CObject_kString;
69
- type_object.value .as_string = " positionEvent" ;
69
+ type_object.value .as_string = const_cast < char *>( " positionEvent" ) ;
70
70
71
71
Dart_CObject index_object;
72
72
index_object.type = Dart_CObject_kInt32;
@@ -97,7 +97,7 @@ inline void OnComplete(int32_t id, PlayerState* state) {
97
97
98
98
Dart_CObject type_object;
99
99
type_object.type = Dart_CObject_kString;
100
- type_object.value .as_string = " completeEvent" ;
100
+ type_object.value .as_string = const_cast < char *>( " completeEvent" ) ;
101
101
102
102
Dart_CObject is_completed_object;
103
103
is_completed_object.type = Dart_CObject_kBool;
@@ -120,7 +120,7 @@ inline void OnVolume(int32_t id, PlayerState* state) {
120
120
121
121
Dart_CObject type_object;
122
122
type_object.type = Dart_CObject_kString;
123
- type_object.value .as_string = " volumeEvent" ;
123
+ type_object.value .as_string = const_cast < char *>( " volumeEvent" ) ;
124
124
125
125
Dart_CObject volume_object;
126
126
volume_object.type = Dart_CObject_kDouble;
@@ -142,7 +142,7 @@ inline void OnRate(int32_t id, PlayerState* state) {
142
142
143
143
Dart_CObject type_object;
144
144
type_object.type = Dart_CObject_kString;
145
- type_object.value .as_string = " rateEvent" ;
145
+ type_object.value .as_string = const_cast < char *>( " rateEvent" ) ;
146
146
147
147
Dart_CObject rate_object;
148
148
rate_object.type = Dart_CObject_kDouble;
@@ -166,7 +166,7 @@ inline void OnOpen(int32_t id, PlayerState* state) {
166
166
167
167
Dart_CObject type_object;
168
168
type_object.type = Dart_CObject_kString;
169
- type_object.value .as_string = " openEvent" ;
169
+ type_object.value .as_string = const_cast < char *>( " openEvent" ) ;
170
170
171
171
Dart_CObject index_object;
172
172
index_object.type = Dart_CObject_kInt32;
@@ -179,7 +179,7 @@ inline void OnOpen(int32_t id, PlayerState* state) {
179
179
auto types_objects =
180
180
std::unique_ptr<Dart_CObject[]>(new Dart_CObject[media_items.size ()]);
181
181
auto types_object_refs =
182
- std::unique_ptr<Dart_CObject*[]>(new Dart_CObject*[media_items.size ()]);
182
+ std::unique_ptr<Dart_CObject* []>(new Dart_CObject*[media_items.size ()]);
183
183
std::vector<std::string> types_str (media_items.size ());
184
184
std::vector<const char *> types_ptr (media_items.size ());
185
185
for (int32_t i = 0 ; i < media_items.size (); i++) {
@@ -198,7 +198,7 @@ inline void OnOpen(int32_t id, PlayerState* state) {
198
198
auto resources_objects =
199
199
std::unique_ptr<Dart_CObject[]>(new Dart_CObject[media_items.size ()]);
200
200
auto resources_object_refs =
201
- std::unique_ptr<Dart_CObject*[]>(new Dart_CObject*[media_items.size ()]);
201
+ std::unique_ptr<Dart_CObject* []>(new Dart_CObject*[media_items.size ()]);
202
202
std::vector<std::string> resources_str (media_items.size ());
203
203
std::vector<const char *> resources_ptr (media_items.size ());
204
204
for (int32_t i = 0 ; i < media_items.size (); i++) {
@@ -233,7 +233,7 @@ inline void OnVideoDimensions(int32_t id, int32_t video_width,
233
233
234
234
Dart_CObject type_object;
235
235
type_object.type = Dart_CObject_kString;
236
- type_object.value .as_string = " videoDimensionsEvent" ;
236
+ type_object.value .as_string = const_cast < char *>( " videoDimensionsEvent" ) ;
237
237
238
238
Dart_CObject video_width_object;
239
239
video_width_object.type = Dart_CObject_kInt32;
@@ -260,7 +260,7 @@ inline void OnVideo(int32_t id, int size, uint8_t* frame) {
260
260
261
261
Dart_CObject type_object;
262
262
type_object.type = Dart_CObject_kString;
263
- type_object.value .as_string = " videoEvent" ;
263
+ type_object.value .as_string = const_cast < char *>( " videoEvent" ) ;
264
264
265
265
Dart_CObject frame_object;
266
266
frame_object.type = Dart_CObject_kTypedData;
@@ -284,7 +284,7 @@ inline void OnBuffering(int32_t id, float buffering) {
284
284
285
285
Dart_CObject type_object;
286
286
type_object.type = Dart_CObject_kString;
287
- type_object.value .as_string = " bufferingEvent" ;
287
+ type_object.value .as_string = const_cast < char *>( " bufferingEvent" ) ;
288
288
289
289
Dart_CObject buffering_object;
290
290
buffering_object.type = Dart_CObject_kDouble;
0 commit comments