1#[cfg(feature = "unity_engine-video-videoplayer-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 delegate::{Delegate, IDelegate},
11 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12 object::{IObject, Object},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 object_2::{IObject_2, Object_2},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/video/videoplayer/VideoPlayer_EventHandler.md"))]
22 #[::unity::class(namespace = "UnityEngine.Video", name = "VideoPlayer.EventHandler")]
23 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
24 pub struct VideoPlayer_EventHandler {}
25
26 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/video/videoplayer/VideoPlayer.md"))]
27 #[::unity::class(namespace = "UnityEngine.Video", name = "VideoPlayer")]
28 #[parent(crate::unity_engine::behaviour::Behaviour)]
29 pub struct VideoPlayer {
30 #[offset(24)]
31 #[rename(name = "prepareCompleted")]
32 pub prepare_completed: crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler,
33 #[offset(32)]
34 #[rename(name = "loopPointReached")]
35 pub loop_point_reached: crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler,
36 #[offset(40)]
37 #[rename(name = "started")]
38 pub started: crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler,
39 #[offset(48)]
40 #[rename(name = "frameDropped")]
41 pub frame_dropped: crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler,
42 #[offset(56)]
43 #[rename(name = "errorReceived")]
44 pub error_received: crate::unity_engine::video::videoplayer::VideoPlayer_ErrorEventHandler,
45 #[offset(64)]
46 #[rename(name = "seekCompleted")]
47 pub seek_completed: crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler,
48 #[offset(72)]
49 #[rename(name = "clockResyncOccurred")]
50 pub clock_resync_occurred: crate::unity_engine::video::videoplayer::VideoPlayer_TimeEventHandler,
51 #[offset(80)]
52 #[rename(name = "frameReady")]
53 pub frame_ready: crate::unity_engine::video::videoplayer::VideoPlayer_FrameReadyEventHandler,
54 }
55
56 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/video/videoplayer/VideoPlayer_FrameReadyEventHandler.md"))]
57 #[::unity::class(namespace = "UnityEngine.Video", name = "VideoPlayer.FrameReadyEventHandler")]
58 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
59 pub struct VideoPlayer_FrameReadyEventHandler {}
60
61 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/video/videoplayer/VideoPlayer_ErrorEventHandler.md"))]
62 #[::unity::class(namespace = "UnityEngine.Video", name = "VideoPlayer.ErrorEventHandler")]
63 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
64 pub struct VideoPlayer_ErrorEventHandler {}
65
66 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/video/videoplayer/VideoPlayer_TimeEventHandler.md"))]
67 #[::unity::class(namespace = "UnityEngine.Video", name = "VideoPlayer.TimeEventHandler")]
68 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
69 pub struct VideoPlayer_TimeEventHandler {}
70}
71
72#[cfg(feature = "unity_engine-video-videoplayer-types")]
73pub use __types::*;
74
75#[cfg(feature = "unity_engine-video-videoplayer")]
76pub trait IVideoPlayer_EventHandlerMethods: IVideoPlayer_EventHandler {
77 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
78 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
79 unsafe {
80 let __receiver =
81 <VideoPlayer_EventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x3f378b0usize)as*mut u8,();
83(VideoPlayer_EventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
84 }
85 }
86 #[doc = "`Invoke(crate::unity_engine::video::videoplayer::VideoPlayer)` overload"]
87 fn invoke(self, source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>) -> () {
88 unsafe {
89 let __receiver =
90 <VideoPlayer_EventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 13usize,
101 __vt.len(),
102 <VideoPlayer_EventHandler as ::unity::ClassIdentity>::NAME,
103 "Invoke",
104 )
105 });
106 let __inner: extern "C" fn(
107 VideoPlayer_EventHandler,
108 crate::unity_engine::video::videoplayer::VideoPlayer,
109 ::unity::OptionalMethod,
110 ) -> () = ::core::mem::transmute(__vi.method_ptr);
111 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112 __inner(__receiver, ::core::convert::Into::into(source), __mi)
113 }
114 }
115 }
116}
117
118#[cfg(feature = "unity_engine-video-videoplayer")]
119impl<__T: IVideoPlayer_EventHandler> IVideoPlayer_EventHandlerMethods for __T {}
120
121#[cfg(feature = "unity_engine-video-videoplayer")]
122impl VideoPlayer_EventHandler {
123 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125 }
126
127 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129 }
130}
131
132#[cfg(feature = "unity_engine-video-videoplayer")]
133impl VideoPlayer_EventHandler {
134 #[doc = "Direct (non-virtual) call to `VideoPlayer_EventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, source: crate::unity_engine::video::videoplayer::VideoPlayer) -> () {
136 let __mi = Self::invoke_method_info();
137 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::video::videoplayer::VideoPlayer, ::unity::OptionalMethod) -> () =
138 ::core::mem::transmute(__mi.method_ptr);
139 __inner(this.into(), source, ::core::option::Option::None)
140 }
141}
142
143#[cfg(feature = "unity_engine-video-videoplayer")]
144impl VideoPlayer_EventHandler {
145 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
146 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
147 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148 panic!(
149 "{}
150::{}
151 failed to instantiate",
152 ::core::stringify!(VideoPlayer_EventHandler),
153 ::core::stringify!(new),
154 )
155 });
156 <Self as IVideoPlayer_EventHandlerMethods>::ctor(this, object, method);
157 this
158 }
159}
160
161#[cfg(feature = "unity_engine-video-videoplayer")]
162impl VideoPlayer {
163 #[doc = "`get_controlledAudioTrackMaxCount()` overload"]
164 pub fn get_controlled_audio_track_max_count() -> u16 {
165 unsafe {
166 ::unity::il2cpp_call!((::unity::module_base()+0x3f35800usize)as*mut u8,u16;
167 )
168 }
169 }
170
171 #[doc = "`InvokePrepareCompletedCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer)` overload"]
172 pub fn invoke_prepare_completed_callback_internal(
173 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
174 ) -> () {
175 unsafe {
176 ::unity::il2cpp_call!((::unity::module_base()+0x3f36990usize)as*mut u8,();
177(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source))
178 }
179 }
180
181 #[doc = "`InvokeFrameReadyCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer, i64)` overload"]
182 pub fn invoke_frame_ready_callback_internal(
183 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
184 frame_idx: impl ::core::convert::Into<i64>,
185 ) -> () {
186 unsafe {
187 ::unity::il2cpp_call!((::unity::module_base()+0x3f36d10usize)as*mut u8,();
188(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source),(i64)::core::convert::Into::into(frame_idx))
189 }
190 }
191
192 #[doc = "`InvokeLoopPointReachedCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer)` overload"]
193 pub fn invoke_loop_point_reached_callback_internal(
194 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
195 ) -> () {
196 unsafe {
197 ::unity::il2cpp_call!((::unity::module_base()+0x3f370a0usize)as*mut u8,();
198(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source))
199 }
200 }
201
202 #[doc = "`InvokeStartedCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer)` overload"]
203 pub fn invoke_started_callback_internal(source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>) -> () {
204 unsafe {
205 ::unity::il2cpp_call!((::unity::module_base()+0x3f370c0usize)as*mut u8,();
206(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source))
207 }
208 }
209
210 #[doc = "`InvokeFrameDroppedCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer)` overload"]
211 pub fn invoke_frame_dropped_callback_internal(source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>) -> () {
212 unsafe {
213 ::unity::il2cpp_call!((::unity::module_base()+0x3f370e0usize)as*mut u8,();
214(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source))
215 }
216 }
217
218 #[doc = "`InvokeErrorReceivedCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer, ::unity::Il2CppString)` overload"]
219 pub fn invoke_error_received_callback_internal(
220 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
221 error_str: impl ::core::convert::Into<::unity::Il2CppString>,
222 ) -> () {
223 unsafe {
224 ::unity::il2cpp_call!((::unity::module_base()+0x3f37100usize)as*mut u8,();
225(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source),(::unity::Il2CppString)::core::convert::Into::into(error_str))
226 }
227 }
228
229 #[doc = "`InvokeSeekCompletedCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer)` overload"]
230 pub fn invoke_seek_completed_callback_internal(source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>) -> () {
231 unsafe {
232 ::unity::il2cpp_call!((::unity::module_base()+0x3f37490usize)as*mut u8,();
233(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source))
234 }
235 }
236
237 #[doc = "`InvokeClockResyncOccurredCallback_Internal(crate::unity_engine::video::videoplayer::VideoPlayer, f64)` overload"]
238 pub fn invoke_clock_resync_occurred_callback_internal(
239 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
240 seconds: impl ::core::convert::Into<f64>,
241 ) -> () {
242 unsafe {
243 ::unity::il2cpp_call!((::unity::module_base()+0x3f374b0usize)as*mut u8,();
244(crate::unity_engine::video::videoplayer::VideoPlayer)::core::convert::Into::into(source),(f64)::core::convert::Into::into(seconds))
245 }
246 }
247}
248
249#[cfg(feature = "unity_engine-video-videoplayer")]
250pub trait IVideoPlayerMethods: IVideoPlayer {
251 #[doc = "`get_source()` overload"]
252 fn get_source(self) -> crate::unity_engine::video::videosource::VideoSource {
253 unsafe {
254 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x3f342c0usize)as*mut u8,crate::unity_engine::video::videosource::VideoSource;
256(VideoPlayer)__receiver)
257 }
258 }
259 #[doc = "`set_source(crate::unity_engine::video::videosource::VideoSource)` overload"]
260 fn set_source(self, value: impl ::core::convert::Into<crate::unity_engine::video::videosource::VideoSource>) -> () {
261 unsafe {
262 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 ::unity::il2cpp_call!((::unity::module_base()+0x3f34310usize)as*mut u8,();
264(VideoPlayer)__receiver,(crate::unity_engine::video::videosource::VideoSource)::core::convert::Into::into(value))
265 }
266 }
267 #[doc = "`get_url()` overload"]
268 fn get_url(self) -> ::unity::Il2CppString {
269 unsafe {
270 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 ::unity::il2cpp_call!((::unity::module_base()+0x3f34360usize)as*mut u8, ::unity::Il2CppString;
272(VideoPlayer)__receiver)
273 }
274 }
275 #[doc = "`set_url(::unity::Il2CppString)` overload"]
276 fn set_url(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
277 unsafe {
278 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279 ::unity::il2cpp_call!((::unity::module_base()+0x3f343b0usize)as*mut u8,();
280(VideoPlayer)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
281 }
282 }
283 #[doc = "`get_clip()` overload"]
284 fn get_clip(self) -> crate::unity_engine::video::videoclip::VideoClip {
285 unsafe {
286 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287 ::unity::il2cpp_call!((::unity::module_base()+0x3f34400usize)as*mut u8,crate::unity_engine::video::videoclip::VideoClip;
288(VideoPlayer)__receiver)
289 }
290 }
291 #[doc = "`set_clip(crate::unity_engine::video::videoclip::VideoClip)` overload"]
292 fn set_clip(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoclip::VideoClip>) -> () {
293 unsafe {
294 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295 ::unity::il2cpp_call!((::unity::module_base()+0x3f34450usize)as*mut u8,();
296(VideoPlayer)__receiver,(crate::unity_engine::video::videoclip::VideoClip)::core::convert::Into::into(value))
297 }
298 }
299 #[doc = "`get_renderMode()` overload"]
300 fn get_render_mode(self) -> crate::unity_engine::video::videorendermode::VideoRenderMode {
301 unsafe {
302 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303 ::unity::il2cpp_call!((::unity::module_base()+0x3f344a0usize)as*mut u8,crate::unity_engine::video::videorendermode::VideoRenderMode;
304(VideoPlayer)__receiver)
305 }
306 }
307 #[doc = "`set_renderMode(crate::unity_engine::video::videorendermode::VideoRenderMode)` overload"]
308 fn set_render_mode(self, value: impl ::core::convert::Into<crate::unity_engine::video::videorendermode::VideoRenderMode>) -> () {
309 unsafe {
310 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311 ::unity::il2cpp_call!((::unity::module_base()+0x3f344f0usize)as*mut u8,();
312(VideoPlayer)__receiver,(crate::unity_engine::video::videorendermode::VideoRenderMode)::core::convert::Into::into(value))
313 }
314 }
315 #[doc = "`get_targetCamera()` overload"]
316 fn get_target_camera(self) -> crate::unity_engine::camera::Camera {
317 unsafe {
318 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319 ::unity::il2cpp_call!((::unity::module_base()+0x3f34540usize)as*mut u8,crate::unity_engine::camera::Camera;
320(VideoPlayer)__receiver)
321 }
322 }
323 #[doc = "`set_targetCamera(crate::unity_engine::camera::Camera)` overload"]
324 fn set_target_camera(self, value: impl ::core::convert::Into<crate::unity_engine::camera::Camera>) -> () {
325 unsafe {
326 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327 ::unity::il2cpp_call!((::unity::module_base()+0x3f34590usize)as*mut u8,();
328(VideoPlayer)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(value))
329 }
330 }
331 #[doc = "`get_targetTexture()` overload"]
332 fn get_target_texture(self) -> crate::unity_engine::rendertexture::RenderTexture {
333 unsafe {
334 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
335 ::unity::il2cpp_call!((::unity::module_base()+0x3f345e0usize)as*mut u8,crate::unity_engine::rendertexture::RenderTexture;
336(VideoPlayer)__receiver)
337 }
338 }
339 #[doc = "`set_targetTexture(crate::unity_engine::rendertexture::RenderTexture)` overload"]
340 fn set_target_texture(self, value: impl ::core::convert::Into<crate::unity_engine::rendertexture::RenderTexture>) -> () {
341 unsafe {
342 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
343 ::unity::il2cpp_call!((::unity::module_base()+0x3f34630usize)as*mut u8,();
344(VideoPlayer)__receiver,(crate::unity_engine::rendertexture::RenderTexture)::core::convert::Into::into(value))
345 }
346 }
347 #[doc = "`get_targetMaterialRenderer()` overload"]
348 fn get_target_material_renderer(self) -> crate::unity_engine::renderer::Renderer {
349 unsafe {
350 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
351 ::unity::il2cpp_call!((::unity::module_base()+0x3f34680usize)as*mut u8,crate::unity_engine::renderer::Renderer;
352(VideoPlayer)__receiver)
353 }
354 }
355 #[doc = "`set_targetMaterialRenderer(crate::unity_engine::renderer::Renderer)` overload"]
356 fn set_target_material_renderer(self, value: impl ::core::convert::Into<crate::unity_engine::renderer::Renderer>) -> () {
357 unsafe {
358 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
359 ::unity::il2cpp_call!((::unity::module_base()+0x3f346d0usize)as*mut u8,();
360(VideoPlayer)__receiver,(crate::unity_engine::renderer::Renderer)::core::convert::Into::into(value))
361 }
362 }
363 #[doc = "`get_targetMaterialProperty()` overload"]
364 fn get_target_material_property(self) -> ::unity::Il2CppString {
365 unsafe {
366 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
367 ::unity::il2cpp_call!((::unity::module_base()+0x3f34720usize)as*mut u8, ::unity::Il2CppString;
368(VideoPlayer)__receiver)
369 }
370 }
371 #[doc = "`set_targetMaterialProperty(::unity::Il2CppString)` overload"]
372 fn set_target_material_property(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
373 unsafe {
374 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
375 ::unity::il2cpp_call!((::unity::module_base()+0x3f34770usize)as*mut u8,();
376(VideoPlayer)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
377 }
378 }
379 #[doc = "`get_aspectRatio()` overload"]
380 fn get_aspect_ratio(self) -> crate::unity_engine::video::videoaspectratio::VideoAspectRatio {
381 unsafe {
382 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
383 ::unity::il2cpp_call!((::unity::module_base()+0x3f347c0usize)as*mut u8,crate::unity_engine::video::videoaspectratio::VideoAspectRatio;
384(VideoPlayer)__receiver)
385 }
386 }
387 #[doc = "`set_aspectRatio(crate::unity_engine::video::videoaspectratio::VideoAspectRatio)` overload"]
388 fn set_aspect_ratio(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoaspectratio::VideoAspectRatio>) -> () {
389 unsafe {
390 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
391 ::unity::il2cpp_call!((::unity::module_base()+0x3f34810usize)as*mut u8,();
392(VideoPlayer)__receiver,(crate::unity_engine::video::videoaspectratio::VideoAspectRatio)::core::convert::Into::into(value))
393 }
394 }
395 #[doc = "`get_targetCameraAlpha()` overload"]
396 fn get_target_camera_alpha(self) -> f32 {
397 unsafe {
398 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
399 ::unity::il2cpp_call!((::unity::module_base()+0x3f34860usize)as*mut u8,f32;
400(VideoPlayer)__receiver)
401 }
402 }
403 #[doc = "`set_targetCameraAlpha(f32)` overload"]
404 fn set_target_camera_alpha(self, value: impl ::core::convert::Into<f32>) -> () {
405 unsafe {
406 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
407 ::unity::il2cpp_call!((::unity::module_base()+0x3f348b0usize)as*mut u8,();
408(VideoPlayer)__receiver,(f32)::core::convert::Into::into(value))
409 }
410 }
411 #[doc = "`get_targetCamera3DLayout()` overload"]
412 fn get_target_camera3_d_layout(self) -> crate::unity_engine::video::video3dlayout::Video3DLayout {
413 unsafe {
414 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
415 ::unity::il2cpp_call!((::unity::module_base()+0x3f34900usize)as*mut u8,crate::unity_engine::video::video3dlayout::Video3DLayout;
416(VideoPlayer)__receiver)
417 }
418 }
419 #[doc = "`set_targetCamera3DLayout(crate::unity_engine::video::video3dlayout::Video3DLayout)` overload"]
420 fn set_target_camera3_d_layout(self, value: impl ::core::convert::Into<crate::unity_engine::video::video3dlayout::Video3DLayout>) -> () {
421 unsafe {
422 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
423 ::unity::il2cpp_call!((::unity::module_base()+0x3f34950usize)as*mut u8,();
424(VideoPlayer)__receiver,(crate::unity_engine::video::video3dlayout::Video3DLayout)::core::convert::Into::into(value))
425 }
426 }
427 #[doc = "`get_texture()` overload"]
428 fn get_texture(self) -> crate::unity_engine::texture::Texture {
429 unsafe {
430 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431 ::unity::il2cpp_call!((::unity::module_base()+0x3f349a0usize)as*mut u8,crate::unity_engine::texture::Texture;
432(VideoPlayer)__receiver)
433 }
434 }
435 #[doc = "`Prepare()` overload"]
436 fn prepare(self) -> () {
437 unsafe {
438 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439 ::unity::il2cpp_call!((::unity::module_base()+0x3f349f0usize)as*mut u8,();
440(VideoPlayer)__receiver)
441 }
442 }
443 #[doc = "`get_isPrepared()` overload"]
444 fn get_is_prepared(self) -> bool {
445 unsafe {
446 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
447 ::unity::il2cpp_call!((::unity::module_base()+0x3f34a40usize)as*mut u8,bool;
448(VideoPlayer)__receiver)
449 }
450 }
451 #[doc = "`get_waitForFirstFrame()` overload"]
452 fn get_wait_for_first_frame(self) -> bool {
453 unsafe {
454 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
455 ::unity::il2cpp_call!((::unity::module_base()+0x3f34a90usize)as*mut u8,bool;
456(VideoPlayer)__receiver)
457 }
458 }
459 #[doc = "`set_waitForFirstFrame(bool)` overload"]
460 fn set_wait_for_first_frame(self, value: impl ::core::convert::Into<bool>) -> () {
461 unsafe {
462 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
463 ::unity::il2cpp_call!((::unity::module_base()+0x3f34ae0usize)as*mut u8,();
464(VideoPlayer)__receiver,(bool)::core::convert::Into::into(value))
465 }
466 }
467 #[doc = "`get_playOnAwake()` overload"]
468 fn get_play_on_awake(self) -> bool {
469 unsafe {
470 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
471 ::unity::il2cpp_call!((::unity::module_base()+0x3f34b30usize)as*mut u8,bool;
472(VideoPlayer)__receiver)
473 }
474 }
475 #[doc = "`set_playOnAwake(bool)` overload"]
476 fn set_play_on_awake(self, value: impl ::core::convert::Into<bool>) -> () {
477 unsafe {
478 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479 ::unity::il2cpp_call!((::unity::module_base()+0x3f34b80usize)as*mut u8,();
480(VideoPlayer)__receiver,(bool)::core::convert::Into::into(value))
481 }
482 }
483 #[doc = "`Play()` overload"]
484 fn play(self) -> () {
485 unsafe {
486 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
487 ::unity::il2cpp_call!((::unity::module_base()+0x3f34bd0usize)as*mut u8,();
488(VideoPlayer)__receiver)
489 }
490 }
491 #[doc = "`Pause()` overload"]
492 fn pause(self) -> () {
493 unsafe {
494 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
495 ::unity::il2cpp_call!((::unity::module_base()+0x3f34c20usize)as*mut u8,();
496(VideoPlayer)__receiver)
497 }
498 }
499 #[doc = "`Stop()` overload"]
500 fn stop(self) -> () {
501 unsafe {
502 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
503 ::unity::il2cpp_call!((::unity::module_base()+0x3f34c70usize)as*mut u8,();
504(VideoPlayer)__receiver)
505 }
506 }
507 #[doc = "`get_isPlaying()` overload"]
508 fn get_is_playing(self) -> bool {
509 unsafe {
510 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
511 ::unity::il2cpp_call!((::unity::module_base()+0x3f34cc0usize)as*mut u8,bool;
512(VideoPlayer)__receiver)
513 }
514 }
515 #[doc = "`get_isPaused()` overload"]
516 fn get_is_paused(self) -> bool {
517 unsafe {
518 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
519 ::unity::il2cpp_call!((::unity::module_base()+0x3f34d10usize)as*mut u8,bool;
520(VideoPlayer)__receiver)
521 }
522 }
523 #[doc = "`get_canSetTime()` overload"]
524 fn get_can_set_time(self) -> bool {
525 unsafe {
526 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
527 ::unity::il2cpp_call!((::unity::module_base()+0x3f34d60usize)as*mut u8,bool;
528(VideoPlayer)__receiver)
529 }
530 }
531 #[doc = "`get_time()` overload"]
532 fn get_time(self) -> f64 {
533 unsafe {
534 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
535 ::unity::il2cpp_call!((::unity::module_base()+0x3f34db0usize)as*mut u8,f64;
536(VideoPlayer)__receiver)
537 }
538 }
539 #[doc = "`set_time(f64)` overload"]
540 fn set_time(self, value: impl ::core::convert::Into<f64>) -> () {
541 unsafe {
542 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
543 ::unity::il2cpp_call!((::unity::module_base()+0x3f34e00usize)as*mut u8,();
544(VideoPlayer)__receiver,(f64)::core::convert::Into::into(value))
545 }
546 }
547 #[doc = "`get_frame()` overload"]
548 fn get_frame(self) -> i64 {
549 unsafe {
550 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
551 ::unity::il2cpp_call!((::unity::module_base()+0x3f34e50usize)as*mut u8,i64;
552(VideoPlayer)__receiver)
553 }
554 }
555 #[doc = "`set_frame(i64)` overload"]
556 fn set_frame(self, value: impl ::core::convert::Into<i64>) -> () {
557 unsafe {
558 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
559 ::unity::il2cpp_call!((::unity::module_base()+0x3f34ea0usize)as*mut u8,();
560(VideoPlayer)__receiver,(i64)::core::convert::Into::into(value))
561 }
562 }
563 #[doc = "`get_clockTime()` overload"]
564 fn get_clock_time(self) -> f64 {
565 unsafe {
566 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
567 ::unity::il2cpp_call!((::unity::module_base()+0x3f34ef0usize)as*mut u8,f64;
568(VideoPlayer)__receiver)
569 }
570 }
571 #[doc = "`get_canStep()` overload"]
572 fn get_can_step(self) -> bool {
573 unsafe {
574 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
575 ::unity::il2cpp_call!((::unity::module_base()+0x3f34f40usize)as*mut u8,bool;
576(VideoPlayer)__receiver)
577 }
578 }
579 #[doc = "`StepForward()` overload"]
580 fn step_forward(self) -> () {
581 unsafe {
582 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
583 ::unity::il2cpp_call!((::unity::module_base()+0x3f34f90usize)as*mut u8,();
584(VideoPlayer)__receiver)
585 }
586 }
587 #[doc = "`get_canSetPlaybackSpeed()` overload"]
588 fn get_can_set_playback_speed(self) -> bool {
589 unsafe {
590 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
591 ::unity::il2cpp_call!((::unity::module_base()+0x3f34fe0usize)as*mut u8,bool;
592(VideoPlayer)__receiver)
593 }
594 }
595 #[doc = "`get_playbackSpeed()` overload"]
596 fn get_playback_speed(self) -> f32 {
597 unsafe {
598 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
599 ::unity::il2cpp_call!((::unity::module_base()+0x3f35030usize)as*mut u8,f32;
600(VideoPlayer)__receiver)
601 }
602 }
603 #[doc = "`set_playbackSpeed(f32)` overload"]
604 fn set_playback_speed(self, value: impl ::core::convert::Into<f32>) -> () {
605 unsafe {
606 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
607 ::unity::il2cpp_call!((::unity::module_base()+0x3f35080usize)as*mut u8,();
608(VideoPlayer)__receiver,(f32)::core::convert::Into::into(value))
609 }
610 }
611 #[doc = "`get_isLooping()` overload"]
612 fn get_is_looping(self) -> bool {
613 unsafe {
614 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
615 ::unity::il2cpp_call!((::unity::module_base()+0x3f350d0usize)as*mut u8,bool;
616(VideoPlayer)__receiver)
617 }
618 }
619 #[doc = "`set_isLooping(bool)` overload"]
620 fn set_is_looping(self, value: impl ::core::convert::Into<bool>) -> () {
621 unsafe {
622 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
623 ::unity::il2cpp_call!((::unity::module_base()+0x3f35120usize)as*mut u8,();
624(VideoPlayer)__receiver,(bool)::core::convert::Into::into(value))
625 }
626 }
627 #[doc = "`get_canSetTimeSource()` overload"]
628 fn get_can_set_time_source(self) -> bool {
629 unsafe {
630 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
631 ::unity::il2cpp_call!((::unity::module_base()+0x3f35170usize)as*mut u8,bool;
632(VideoPlayer)__receiver)
633 }
634 }
635 #[doc = "`get_timeSource()` overload"]
636 fn get_time_source(self) -> crate::unity_engine::video::videotimesource::VideoTimeSource {
637 unsafe {
638 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
639 ::unity::il2cpp_call!((::unity::module_base()+0x3f351c0usize)as*mut u8,crate::unity_engine::video::videotimesource::VideoTimeSource;
640(VideoPlayer)__receiver)
641 }
642 }
643 #[doc = "`set_timeSource(crate::unity_engine::video::videotimesource::VideoTimeSource)` overload"]
644 fn set_time_source(self, value: impl ::core::convert::Into<crate::unity_engine::video::videotimesource::VideoTimeSource>) -> () {
645 unsafe {
646 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
647 ::unity::il2cpp_call!((::unity::module_base()+0x3f35210usize)as*mut u8,();
648(VideoPlayer)__receiver,(crate::unity_engine::video::videotimesource::VideoTimeSource)::core::convert::Into::into(value))
649 }
650 }
651 #[doc = "`get_timeReference()` overload"]
652 fn get_time_reference(self) -> crate::unity_engine::video::videotimereference::VideoTimeReference {
653 unsafe {
654 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
655 ::unity::il2cpp_call!((::unity::module_base()+0x3f35260usize)as*mut u8,crate::unity_engine::video::videotimereference::VideoTimeReference;
656(VideoPlayer)__receiver)
657 }
658 }
659 #[doc = "`set_timeReference(crate::unity_engine::video::videotimereference::VideoTimeReference)` overload"]
660 fn set_time_reference(self, value: impl ::core::convert::Into<crate::unity_engine::video::videotimereference::VideoTimeReference>) -> () {
661 unsafe {
662 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
663 ::unity::il2cpp_call!((::unity::module_base()+0x3f352b0usize)as*mut u8,();
664(VideoPlayer)__receiver,(crate::unity_engine::video::videotimereference::VideoTimeReference)::core::convert::Into::into(value))
665 }
666 }
667 #[doc = "`get_externalReferenceTime()` overload"]
668 fn get_external_reference_time(self) -> f64 {
669 unsafe {
670 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
671 ::unity::il2cpp_call!((::unity::module_base()+0x3f35300usize)as*mut u8,f64;
672(VideoPlayer)__receiver)
673 }
674 }
675 #[doc = "`set_externalReferenceTime(f64)` overload"]
676 fn set_external_reference_time(self, value: impl ::core::convert::Into<f64>) -> () {
677 unsafe {
678 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
679 ::unity::il2cpp_call!((::unity::module_base()+0x3f35350usize)as*mut u8,();
680(VideoPlayer)__receiver,(f64)::core::convert::Into::into(value))
681 }
682 }
683 #[doc = "`get_canSetSkipOnDrop()` overload"]
684 fn get_can_set_skip_on_drop(self) -> bool {
685 unsafe {
686 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
687 ::unity::il2cpp_call!((::unity::module_base()+0x3f353a0usize)as*mut u8,bool;
688(VideoPlayer)__receiver)
689 }
690 }
691 #[doc = "`get_skipOnDrop()` overload"]
692 fn get_skip_on_drop(self) -> bool {
693 unsafe {
694 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
695 ::unity::il2cpp_call!((::unity::module_base()+0x3f353f0usize)as*mut u8,bool;
696(VideoPlayer)__receiver)
697 }
698 }
699 #[doc = "`set_skipOnDrop(bool)` overload"]
700 fn set_skip_on_drop(self, value: impl ::core::convert::Into<bool>) -> () {
701 unsafe {
702 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
703 ::unity::il2cpp_call!((::unity::module_base()+0x3f35440usize)as*mut u8,();
704(VideoPlayer)__receiver,(bool)::core::convert::Into::into(value))
705 }
706 }
707 #[doc = "`get_frameCount()` overload"]
708 fn get_frame_count(self) -> u64 {
709 unsafe {
710 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
711 ::unity::il2cpp_call!((::unity::module_base()+0x3f35490usize)as*mut u8,u64;
712(VideoPlayer)__receiver)
713 }
714 }
715 #[doc = "`get_frameRate()` overload"]
716 fn get_frame_rate(self) -> f32 {
717 unsafe {
718 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
719 ::unity::il2cpp_call!((::unity::module_base()+0x3f354e0usize)as*mut u8,f32;
720(VideoPlayer)__receiver)
721 }
722 }
723 #[doc = "`get_length()` overload"]
724 fn get_length(self) -> f64 {
725 unsafe {
726 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
727 ::unity::il2cpp_call!((::unity::module_base()+0x3f35530usize)as*mut u8,f64;
728(VideoPlayer)__receiver)
729 }
730 }
731 #[doc = "`get_width()` overload"]
732 fn get_width(self) -> u32 {
733 unsafe {
734 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
735 ::unity::il2cpp_call!((::unity::module_base()+0x3f35580usize)as*mut u8,u32;
736(VideoPlayer)__receiver)
737 }
738 }
739 #[doc = "`get_height()` overload"]
740 fn get_height(self) -> u32 {
741 unsafe {
742 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
743 ::unity::il2cpp_call!((::unity::module_base()+0x3f355d0usize)as*mut u8,u32;
744(VideoPlayer)__receiver)
745 }
746 }
747 #[doc = "`get_pixelAspectRatioNumerator()` overload"]
748 fn get_pixel_aspect_ratio_numerator(self) -> u32 {
749 unsafe {
750 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
751 ::unity::il2cpp_call!((::unity::module_base()+0x3f35620usize)as*mut u8,u32;
752(VideoPlayer)__receiver)
753 }
754 }
755 #[doc = "`get_pixelAspectRatioDenominator()` overload"]
756 fn get_pixel_aspect_ratio_denominator(self) -> u32 {
757 unsafe {
758 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
759 ::unity::il2cpp_call!((::unity::module_base()+0x3f35670usize)as*mut u8,u32;
760(VideoPlayer)__receiver)
761 }
762 }
763 #[doc = "`get_audioTrackCount()` overload"]
764 fn get_audio_track_count(self) -> u16 {
765 unsafe {
766 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
767 ::unity::il2cpp_call!((::unity::module_base()+0x3f356c0usize)as*mut u8,u16;
768(VideoPlayer)__receiver)
769 }
770 }
771 #[doc = "`GetAudioLanguageCode(u16)` overload"]
772 fn get_audio_language_code(self, track_index: impl ::core::convert::Into<u16>) -> ::unity::Il2CppString {
773 unsafe {
774 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
775 ::unity::il2cpp_call!((::unity::module_base()+0x3f35710usize)as*mut u8, ::unity::Il2CppString;
776(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index))
777 }
778 }
779 #[doc = "`GetAudioChannelCount(u16)` overload"]
780 fn get_audio_channel_count(self, track_index: impl ::core::convert::Into<u16>) -> u16 {
781 unsafe {
782 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
783 ::unity::il2cpp_call!((::unity::module_base()+0x3f35760usize)as*mut u8,u16;
784(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index))
785 }
786 }
787 #[doc = "`GetAudioSampleRate(u16)` overload"]
788 fn get_audio_sample_rate(self, track_index: impl ::core::convert::Into<u16>) -> u32 {
789 unsafe {
790 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
791 ::unity::il2cpp_call!((::unity::module_base()+0x3f357b0usize)as*mut u8,u32;
792(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index))
793 }
794 }
795 #[doc = "`get_controlledAudioTrackCount()` overload"]
796 fn get_controlled_audio_track_count(self) -> u16 {
797 unsafe {
798 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
799 ::unity::il2cpp_call!((::unity::module_base()+0x3f35840usize)as*mut u8,u16;
800(VideoPlayer)__receiver)
801 }
802 }
803 #[doc = "`set_controlledAudioTrackCount(u16)` overload"]
804 fn set_controlled_audio_track_count(self, value: impl ::core::convert::Into<u16>) -> () {
805 unsafe {
806 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
807 ::unity::il2cpp_call!((::unity::module_base()+0x3f358e0usize)as*mut u8,();
808(VideoPlayer)__receiver,(u16)::core::convert::Into::into(value))
809 }
810 }
811 #[doc = "`EnableAudioTrack(u16, bool)` overload"]
812 fn enable_audio_track(self, track_index: impl ::core::convert::Into<u16>, enabled: impl ::core::convert::Into<bool>) -> () {
813 unsafe {
814 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
815 ::unity::il2cpp_call!((::unity::module_base()+0x3f35a40usize)as*mut u8,();
816(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index),(bool)::core::convert::Into::into(enabled))
817 }
818 }
819 #[doc = "`IsAudioTrackEnabled(u16)` overload"]
820 fn is_audio_track_enabled(self, track_index: impl ::core::convert::Into<u16>) -> bool {
821 unsafe {
822 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
823 ::unity::il2cpp_call!((::unity::module_base()+0x3f35aa0usize)as*mut u8,bool;
824(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index))
825 }
826 }
827 #[doc = "`get_audioOutputMode()` overload"]
828 fn get_audio_output_mode(self) -> crate::unity_engine::video::videoaudiooutputmode::VideoAudioOutputMode {
829 unsafe {
830 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
831 ::unity::il2cpp_call!((::unity::module_base()+0x3f35af0usize)as*mut u8,crate::unity_engine::video::videoaudiooutputmode::VideoAudioOutputMode;
832(VideoPlayer)__receiver)
833 }
834 }
835 #[doc = "`set_audioOutputMode(crate::unity_engine::video::videoaudiooutputmode::VideoAudioOutputMode)` overload"]
836 fn set_audio_output_mode(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoaudiooutputmode::VideoAudioOutputMode>) -> () {
837 unsafe {
838 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
839 ::unity::il2cpp_call!((::unity::module_base()+0x3f35b40usize)as*mut u8,();
840(VideoPlayer)__receiver,(crate::unity_engine::video::videoaudiooutputmode::VideoAudioOutputMode)::core::convert::Into::into(value))
841 }
842 }
843 #[doc = "`get_canSetDirectAudioVolume()` overload"]
844 fn get_can_set_direct_audio_volume(self) -> bool {
845 unsafe {
846 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
847 ::unity::il2cpp_call!((::unity::module_base()+0x3f35b90usize)as*mut u8,bool;
848(VideoPlayer)__receiver)
849 }
850 }
851 #[doc = "`GetDirectAudioVolume(u16)` overload"]
852 fn get_direct_audio_volume(self, track_index: impl ::core::convert::Into<u16>) -> f32 {
853 unsafe {
854 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
855 ::unity::il2cpp_call!((::unity::module_base()+0x3f35be0usize)as*mut u8,f32;
856(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index))
857 }
858 }
859 #[doc = "`SetDirectAudioVolume(u16, f32)` overload"]
860 fn set_direct_audio_volume(self, track_index: impl ::core::convert::Into<u16>, volume: impl ::core::convert::Into<f32>) -> () {
861 unsafe {
862 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
863 ::unity::il2cpp_call!((::unity::module_base()+0x3f35c30usize)as*mut u8,();
864(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index),(f32)::core::convert::Into::into(volume))
865 }
866 }
867 #[doc = "`GetDirectAudioMute(u16)` overload"]
868 fn get_direct_audio_mute(self, track_index: impl ::core::convert::Into<u16>) -> bool {
869 unsafe {
870 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
871 ::unity::il2cpp_call!((::unity::module_base()+0x3f35c90usize)as*mut u8,bool;
872(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index))
873 }
874 }
875 #[doc = "`SetDirectAudioMute(u16, bool)` overload"]
876 fn set_direct_audio_mute(self, track_index: impl ::core::convert::Into<u16>, mute: impl ::core::convert::Into<bool>) -> () {
877 unsafe {
878 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
879 ::unity::il2cpp_call!((::unity::module_base()+0x3f35ce0usize)as*mut u8,();
880(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index),(bool)::core::convert::Into::into(mute))
881 }
882 }
883 #[doc = "`GetTargetAudioSource(u16)` overload"]
884 fn get_target_audio_source(self, track_index: impl ::core::convert::Into<u16>) -> crate::unity_engine::audiosource::AudioSource {
885 unsafe {
886 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
887 ::unity::il2cpp_call!((::unity::module_base()+0x3f35d40usize)as*mut u8,crate::unity_engine::audiosource::AudioSource;
888(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index))
889 }
890 }
891 #[doc = "`SetTargetAudioSource(u16, crate::unity_engine::audiosource::AudioSource)` overload"]
892 fn set_target_audio_source(
893 self,
894 track_index: impl ::core::convert::Into<u16>,
895 source: impl ::core::convert::Into<crate::unity_engine::audiosource::AudioSource>,
896 ) -> () {
897 unsafe {
898 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
899 ::unity::il2cpp_call!((::unity::module_base()+0x3f35d90usize)as*mut u8,();
900(VideoPlayer)__receiver,(u16)::core::convert::Into::into(track_index),(crate::unity_engine::audiosource::AudioSource)::core::convert::Into::into(source))
901 }
902 }
903 #[doc = "`add_prepareCompleted(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
904 fn add_prepare_completed(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
905 unsafe {
906 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
907 ::unity::il2cpp_call!((::unity::module_base()+0x3f35df0usize)as*mut u8,();
908(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
909 }
910 }
911 #[doc = "`remove_prepareCompleted(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
912 fn remove_prepare_completed(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
913 unsafe {
914 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
915 ::unity::il2cpp_call!((::unity::module_base()+0x3f35ea0usize)as*mut u8,();
916(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
917 }
918 }
919 #[doc = "`add_loopPointReached(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
920 fn add_loop_point_reached(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
921 unsafe {
922 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
923 ::unity::il2cpp_call!((::unity::module_base()+0x3f35f50usize)as*mut u8,();
924(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
925 }
926 }
927 #[doc = "`remove_loopPointReached(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
928 fn remove_loop_point_reached(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
929 unsafe {
930 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
931 ::unity::il2cpp_call!((::unity::module_base()+0x3f36000usize)as*mut u8,();
932(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
933 }
934 }
935 #[doc = "`add_started(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
936 fn add_started(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
937 unsafe {
938 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
939 ::unity::il2cpp_call!((::unity::module_base()+0x3f360b0usize)as*mut u8,();
940(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
941 }
942 }
943 #[doc = "`remove_started(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
944 fn remove_started(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
945 unsafe {
946 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
947 ::unity::il2cpp_call!((::unity::module_base()+0x3f36160usize)as*mut u8,();
948(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
949 }
950 }
951 #[doc = "`add_frameDropped(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
952 fn add_frame_dropped(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
953 unsafe {
954 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
955 ::unity::il2cpp_call!((::unity::module_base()+0x3f36210usize)as*mut u8,();
956(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
957 }
958 }
959 #[doc = "`remove_frameDropped(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
960 fn remove_frame_dropped(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
961 unsafe {
962 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
963 ::unity::il2cpp_call!((::unity::module_base()+0x3f362c0usize)as*mut u8,();
964(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
965 }
966 }
967 #[doc = "`add_errorReceived(crate::unity_engine::video::videoplayer::VideoPlayer_ErrorEventHandler)` overload"]
968 fn add_error_received(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_ErrorEventHandler>) -> () {
969 unsafe {
970 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
971 ::unity::il2cpp_call!((::unity::module_base()+0x3f36370usize)as*mut u8,();
972(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_ErrorEventHandler)::core::convert::Into::into(value))
973 }
974 }
975 #[doc = "`remove_errorReceived(crate::unity_engine::video::videoplayer::VideoPlayer_ErrorEventHandler)` overload"]
976 fn remove_error_received(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_ErrorEventHandler>) -> () {
977 unsafe {
978 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
979 ::unity::il2cpp_call!((::unity::module_base()+0x3f36420usize)as*mut u8,();
980(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_ErrorEventHandler)::core::convert::Into::into(value))
981 }
982 }
983 #[doc = "`add_seekCompleted(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
984 fn add_seek_completed(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
985 unsafe {
986 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
987 ::unity::il2cpp_call!((::unity::module_base()+0x3f364d0usize)as*mut u8,();
988(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
989 }
990 }
991 #[doc = "`remove_seekCompleted(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)` overload"]
992 fn remove_seek_completed(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler>) -> () {
993 unsafe {
994 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
995 ::unity::il2cpp_call!((::unity::module_base()+0x3f36580usize)as*mut u8,();
996(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_EventHandler)::core::convert::Into::into(value))
997 }
998 }
999 #[doc = "`add_clockResyncOccurred(crate::unity_engine::video::videoplayer::VideoPlayer_TimeEventHandler)` overload"]
1000 fn add_clock_resync_occurred(
1001 self,
1002 value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_TimeEventHandler>,
1003 ) -> () {
1004 unsafe {
1005 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1006 ::unity::il2cpp_call!((::unity::module_base()+0x3f36630usize)as*mut u8,();
1007(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_TimeEventHandler)::core::convert::Into::into(value))
1008 }
1009 }
1010 #[doc = "`remove_clockResyncOccurred(crate::unity_engine::video::videoplayer::VideoPlayer_TimeEventHandler)` overload"]
1011 fn remove_clock_resync_occurred(
1012 self,
1013 value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_TimeEventHandler>,
1014 ) -> () {
1015 unsafe {
1016 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1017 ::unity::il2cpp_call!((::unity::module_base()+0x3f366e0usize)as*mut u8,();
1018(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_TimeEventHandler)::core::convert::Into::into(value))
1019 }
1020 }
1021 #[doc = "`get_sendFrameReadyEvents()` overload"]
1022 fn get_send_frame_ready_events(self) -> bool {
1023 unsafe {
1024 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1025 ::unity::il2cpp_call!((::unity::module_base()+0x3f36790usize)as*mut u8,bool;
1026(VideoPlayer)__receiver)
1027 }
1028 }
1029 #[doc = "`set_sendFrameReadyEvents(bool)` overload"]
1030 fn set_send_frame_ready_events(self, value: impl ::core::convert::Into<bool>) -> () {
1031 unsafe {
1032 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1033 ::unity::il2cpp_call!((::unity::module_base()+0x3f367e0usize)as*mut u8,();
1034(VideoPlayer)__receiver,(bool)::core::convert::Into::into(value))
1035 }
1036 }
1037 #[doc = "`add_frameReady(crate::unity_engine::video::videoplayer::VideoPlayer_FrameReadyEventHandler)` overload"]
1038 fn add_frame_ready(self, value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_FrameReadyEventHandler>) -> () {
1039 unsafe {
1040 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1041 ::unity::il2cpp_call!((::unity::module_base()+0x3f36830usize)as*mut u8,();
1042(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_FrameReadyEventHandler)::core::convert::Into::into(value))
1043 }
1044 }
1045 #[doc = "`remove_frameReady(crate::unity_engine::video::videoplayer::VideoPlayer_FrameReadyEventHandler)` overload"]
1046 fn remove_frame_ready(
1047 self,
1048 value: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer_FrameReadyEventHandler>,
1049 ) -> () {
1050 unsafe {
1051 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1052 ::unity::il2cpp_call!((::unity::module_base()+0x3f368e0usize)as*mut u8,();
1053(VideoPlayer)__receiver,(crate::unity_engine::video::videoplayer::VideoPlayer_FrameReadyEventHandler)::core::convert::Into::into(value))
1054 }
1055 }
1056 #[doc = "`.ctor()` overload"]
1057 fn ctor(self) -> () {
1058 unsafe {
1059 let __receiver = <VideoPlayer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1060 ::unity::il2cpp_call!((::unity::module_base()+0x3f37840usize)as*mut u8,();
1061(VideoPlayer)__receiver)
1062 }
1063 }
1064}
1065
1066#[cfg(feature = "unity_engine-video-videoplayer")]
1067impl<__T: IVideoPlayer> IVideoPlayerMethods for __T {}
1068
1069#[cfg(feature = "unity_engine-video-videoplayer")]
1070impl VideoPlayer {
1071 pub fn get_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1072 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1073 }
1074
1075 pub fn set_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1076 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1077 }
1078
1079 pub fn get_url_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1080 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1081 }
1082
1083 pub fn set_url_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1084 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1085 }
1086
1087 pub fn get_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1088 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1089 }
1090
1091 pub fn set_clip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1092 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1093 }
1094
1095 pub fn get_render_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1096 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1097 }
1098
1099 pub fn set_render_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1101 }
1102
1103 pub fn get_target_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
1105 }
1106
1107 pub fn set_target_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
1109 }
1110
1111 pub fn get_target_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1113 }
1114
1115 pub fn set_target_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1117 }
1118
1119 pub fn get_target_material_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1121 }
1122
1123 pub fn set_target_material_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1125 }
1126
1127 pub fn get_target_material_property_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1129 }
1130
1131 pub fn set_target_material_property_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1133 }
1134
1135 pub fn get_aspect_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1137 }
1138
1139 pub fn set_aspect_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1141 }
1142
1143 pub fn get_target_camera_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1145 }
1146
1147 pub fn set_target_camera_alpha_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1149 }
1150
1151 pub fn get_target_camera3_d_layout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1153 }
1154
1155 pub fn set_target_camera3_d_layout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1157 }
1158
1159 pub fn get_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1161 }
1162
1163 pub fn prepare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1165 }
1166
1167 pub fn get_is_prepared_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1169 }
1170
1171 pub fn get_wait_for_first_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1173 }
1174
1175 pub fn set_wait_for_first_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1177 }
1178
1179 pub fn get_play_on_awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1181 }
1182
1183 pub fn set_play_on_awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1185 }
1186
1187 pub fn play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1189 }
1190
1191 pub fn pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1193 }
1194
1195 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1197 }
1198
1199 pub fn get_is_playing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1201 }
1202
1203 pub fn get_is_paused_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1205 }
1206
1207 pub fn get_can_set_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1209 }
1210
1211 pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
1213 }
1214
1215 pub fn set_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1217 }
1218
1219 pub fn get_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1221 }
1222
1223 pub fn set_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1225 }
1226
1227 pub fn get_clock_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1229 }
1230
1231 pub fn get_can_step_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1233 }
1234
1235 pub fn step_forward_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
1237 }
1238
1239 pub fn get_can_set_playback_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1241 }
1242
1243 pub fn get_playback_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1245 }
1246
1247 pub fn set_playback_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
1249 }
1250
1251 pub fn get_is_looping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
1253 }
1254
1255 pub fn set_is_looping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
1257 }
1258
1259 pub fn get_can_set_time_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
1261 }
1262
1263 pub fn get_time_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
1265 }
1266
1267 pub fn set_time_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
1269 }
1270
1271 pub fn get_time_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
1273 }
1274
1275 pub fn set_time_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
1277 }
1278
1279 pub fn get_external_reference_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
1281 }
1282
1283 pub fn set_external_reference_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
1285 }
1286
1287 pub fn get_can_set_skip_on_drop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
1289 }
1290
1291 pub fn get_skip_on_drop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
1293 }
1294
1295 pub fn set_skip_on_drop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
1297 }
1298
1299 pub fn get_frame_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
1301 }
1302
1303 pub fn get_frame_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
1305 }
1306
1307 pub fn get_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1308 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
1309 }
1310
1311 pub fn get_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1312 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[60]
1313 }
1314
1315 pub fn get_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[61]
1317 }
1318
1319 pub fn get_pixel_aspect_ratio_numerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1320 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[62]
1321 }
1322
1323 pub fn get_pixel_aspect_ratio_denominator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1324 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[63]
1325 }
1326
1327 pub fn get_audio_track_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1328 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[64]
1329 }
1330
1331 pub fn get_audio_language_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1332 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[65]
1333 }
1334
1335 pub fn get_audio_channel_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1336 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[66]
1337 }
1338
1339 pub fn get_audio_sample_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1340 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[67]
1341 }
1342
1343 pub fn get_controlled_audio_track_max_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1344 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[68]
1345 }
1346
1347 pub fn get_controlled_audio_track_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[69]
1349 }
1350
1351 pub fn set_controlled_audio_track_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[70]
1353 }
1354
1355 pub fn enable_audio_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[73]
1357 }
1358
1359 pub fn is_audio_track_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[74]
1361 }
1362
1363 pub fn get_audio_output_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[75]
1365 }
1366
1367 pub fn set_audio_output_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[76]
1369 }
1370
1371 pub fn get_can_set_direct_audio_volume_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[77]
1373 }
1374
1375 pub fn get_direct_audio_volume_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[78]
1377 }
1378
1379 pub fn set_direct_audio_volume_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[79]
1381 }
1382
1383 pub fn get_direct_audio_mute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[80]
1385 }
1386
1387 pub fn set_direct_audio_mute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[81]
1389 }
1390
1391 pub fn get_target_audio_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[82]
1393 }
1394
1395 pub fn set_target_audio_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[83]
1397 }
1398
1399 pub fn add_prepare_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[84]
1401 }
1402
1403 pub fn remove_prepare_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[85]
1405 }
1406
1407 pub fn add_loop_point_reached_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[86]
1409 }
1410
1411 pub fn remove_loop_point_reached_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[87]
1413 }
1414
1415 pub fn add_started_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[88]
1417 }
1418
1419 pub fn remove_started_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[89]
1421 }
1422
1423 pub fn add_frame_dropped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[90]
1425 }
1426
1427 pub fn remove_frame_dropped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[91]
1429 }
1430
1431 pub fn add_error_received_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[92]
1433 }
1434
1435 pub fn remove_error_received_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[93]
1437 }
1438
1439 pub fn add_seek_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1440 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[94]
1441 }
1442
1443 pub fn remove_seek_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1444 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[95]
1445 }
1446
1447 pub fn add_clock_resync_occurred_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1448 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[96]
1449 }
1450
1451 pub fn remove_clock_resync_occurred_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1452 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[97]
1453 }
1454
1455 pub fn get_send_frame_ready_events_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1456 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[98]
1457 }
1458
1459 pub fn set_send_frame_ready_events_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1460 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[99]
1461 }
1462
1463 pub fn add_frame_ready_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1464 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[100]
1465 }
1466
1467 pub fn remove_frame_ready_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1468 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[101]
1469 }
1470
1471 pub fn invoke_prepare_completed_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1472 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[102]
1473 }
1474
1475 pub fn invoke_frame_ready_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1476 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[103]
1477 }
1478
1479 pub fn invoke_loop_point_reached_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1480 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[104]
1481 }
1482
1483 pub fn invoke_started_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1484 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[105]
1485 }
1486
1487 pub fn invoke_frame_dropped_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1488 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[106]
1489 }
1490
1491 pub fn invoke_error_received_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1492 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[107]
1493 }
1494
1495 pub fn invoke_seek_completed_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1496 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[108]
1497 }
1498
1499 pub fn invoke_clock_resync_occurred_callback_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1500 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[109]
1501 }
1502
1503 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1504 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[110]
1505 }
1506}
1507
1508#[cfg(feature = "unity_engine-video-videoplayer")]
1509impl VideoPlayer {
1510 #[doc = "`.ctor()` — no args"]
1511 pub fn new() -> Self {
1512 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1513 panic!(
1514 "{}
1515::{}
1516 failed to instantiate",
1517 ::core::stringify!(VideoPlayer),
1518 ::core::stringify!(new),
1519 )
1520 });
1521 <Self as IVideoPlayerMethods>::ctor(this);
1522 this
1523 }
1524}
1525
1526#[cfg(feature = "unity_engine-video-videoplayer")]
1527pub trait IVideoPlayer_FrameReadyEventHandlerMethods: IVideoPlayer_FrameReadyEventHandler {
1528 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
1529 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
1530 unsafe {
1531 let __receiver =
1532 <VideoPlayer_FrameReadyEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1533 ::unity::il2cpp_call!((::unity::module_base()+0x3f37910usize)as*mut u8,();
1534(VideoPlayer_FrameReadyEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
1535 }
1536 }
1537 #[doc = "`Invoke(crate::unity_engine::video::videoplayer::VideoPlayer, i64)` overload"]
1538 fn invoke(
1539 self,
1540 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
1541 frame_idx: impl ::core::convert::Into<i64>,
1542 ) -> () {
1543 unsafe {
1544 let __receiver =
1545 <VideoPlayer_FrameReadyEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1546 {
1547 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1548 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
1549 panic!(
1550 "unity: virtual slot {}
1551 out of range (vtable len {}
1552) on the runtime class behind {}
1553 (method `{}
1554`)",
1555 13usize,
1556 __vt.len(),
1557 <VideoPlayer_FrameReadyEventHandler as ::unity::ClassIdentity>::NAME,
1558 "Invoke",
1559 )
1560 });
1561 let __inner: extern "C" fn(
1562 VideoPlayer_FrameReadyEventHandler,
1563 crate::unity_engine::video::videoplayer::VideoPlayer,
1564 i64,
1565 ::unity::OptionalMethod,
1566 ) -> () = ::core::mem::transmute(__vi.method_ptr);
1567 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1568 __inner(
1569 __receiver,
1570 ::core::convert::Into::into(source),
1571 ::core::convert::Into::into(frame_idx),
1572 __mi,
1573 )
1574 }
1575 }
1576 }
1577}
1578
1579#[cfg(feature = "unity_engine-video-videoplayer")]
1580impl<__T: IVideoPlayer_FrameReadyEventHandler> IVideoPlayer_FrameReadyEventHandlerMethods for __T {}
1581
1582#[cfg(feature = "unity_engine-video-videoplayer")]
1583impl VideoPlayer_FrameReadyEventHandler {
1584 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1585 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1586 }
1587
1588 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1589 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1590 }
1591}
1592
1593#[cfg(feature = "unity_engine-video-videoplayer")]
1594impl VideoPlayer_FrameReadyEventHandler {
1595 #[doc = "Direct (non-virtual) call to `VideoPlayer_FrameReadyEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1596 pub unsafe fn invoke(
1597 this: impl ::core::convert::Into<::unity::IlInstance>,
1598 source: crate::unity_engine::video::videoplayer::VideoPlayer,
1599 frame_idx: i64,
1600 ) -> () {
1601 let __mi = Self::invoke_method_info();
1602 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::video::videoplayer::VideoPlayer, i64, ::unity::OptionalMethod) -> () =
1603 ::core::mem::transmute(__mi.method_ptr);
1604 __inner(this.into(), source, frame_idx, ::core::option::Option::None)
1605 }
1606}
1607
1608#[cfg(feature = "unity_engine-video-videoplayer")]
1609impl VideoPlayer_FrameReadyEventHandler {
1610 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
1611 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
1612 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1613 panic!(
1614 "{}
1615::{}
1616 failed to instantiate",
1617 ::core::stringify!(VideoPlayer_FrameReadyEventHandler),
1618 ::core::stringify!(new),
1619 )
1620 });
1621 <Self as IVideoPlayer_FrameReadyEventHandlerMethods>::ctor(this, object, method);
1622 this
1623 }
1624}
1625
1626#[cfg(feature = "unity_engine-video-videoplayer")]
1627pub trait IVideoPlayer_ErrorEventHandlerMethods: IVideoPlayer_ErrorEventHandler {
1628 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
1629 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
1630 unsafe {
1631 let __receiver =
1632 <VideoPlayer_ErrorEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1633 ::unity::il2cpp_call!((::unity::module_base()+0x3f37850usize)as*mut u8,();
1634(VideoPlayer_ErrorEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
1635 }
1636 }
1637 #[doc = "`Invoke(crate::unity_engine::video::videoplayer::VideoPlayer, ::unity::Il2CppString)` overload"]
1638 fn invoke(
1639 self,
1640 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
1641 message: impl ::core::convert::Into<::unity::Il2CppString>,
1642 ) -> () {
1643 unsafe {
1644 let __receiver =
1645 <VideoPlayer_ErrorEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1646 {
1647 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1648 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
1649 panic!(
1650 "unity: virtual slot {}
1651 out of range (vtable len {}
1652) on the runtime class behind {}
1653 (method `{}
1654`)",
1655 13usize,
1656 __vt.len(),
1657 <VideoPlayer_ErrorEventHandler as ::unity::ClassIdentity>::NAME,
1658 "Invoke",
1659 )
1660 });
1661 let __inner: extern "C" fn(
1662 VideoPlayer_ErrorEventHandler,
1663 crate::unity_engine::video::videoplayer::VideoPlayer,
1664 ::unity::Il2CppString,
1665 ::unity::OptionalMethod,
1666 ) -> () = ::core::mem::transmute(__vi.method_ptr);
1667 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1668 __inner(
1669 __receiver,
1670 ::core::convert::Into::into(source),
1671 ::core::convert::Into::into(message),
1672 __mi,
1673 )
1674 }
1675 }
1676 }
1677}
1678
1679#[cfg(feature = "unity_engine-video-videoplayer")]
1680impl<__T: IVideoPlayer_ErrorEventHandler> IVideoPlayer_ErrorEventHandlerMethods for __T {}
1681
1682#[cfg(feature = "unity_engine-video-videoplayer")]
1683impl VideoPlayer_ErrorEventHandler {
1684 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1685 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1686 }
1687
1688 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1689 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1690 }
1691}
1692
1693#[cfg(feature = "unity_engine-video-videoplayer")]
1694impl VideoPlayer_ErrorEventHandler {
1695 #[doc = "Direct (non-virtual) call to `VideoPlayer_ErrorEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1696 pub unsafe fn invoke(
1697 this: impl ::core::convert::Into<::unity::IlInstance>,
1698 source: crate::unity_engine::video::videoplayer::VideoPlayer,
1699 message: ::unity::Il2CppString,
1700 ) -> () {
1701 let __mi = Self::invoke_method_info();
1702 let __inner: extern "C" fn(
1703 ::unity::IlInstance,
1704 crate::unity_engine::video::videoplayer::VideoPlayer,
1705 ::unity::Il2CppString,
1706 ::unity::OptionalMethod,
1707 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1708 __inner(this.into(), source, message, ::core::option::Option::None)
1709 }
1710}
1711
1712#[cfg(feature = "unity_engine-video-videoplayer")]
1713impl VideoPlayer_ErrorEventHandler {
1714 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
1715 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
1716 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1717 panic!(
1718 "{}
1719::{}
1720 failed to instantiate",
1721 ::core::stringify!(VideoPlayer_ErrorEventHandler),
1722 ::core::stringify!(new),
1723 )
1724 });
1725 <Self as IVideoPlayer_ErrorEventHandlerMethods>::ctor(this, object, method);
1726 this
1727 }
1728}
1729
1730#[cfg(feature = "unity_engine-video-videoplayer")]
1731pub trait IVideoPlayer_TimeEventHandlerMethods: IVideoPlayer_TimeEventHandler {
1732 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
1733 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
1734 unsafe {
1735 let __receiver =
1736 <VideoPlayer_TimeEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1737 ::unity::il2cpp_call!((::unity::module_base()+0x3f379e0usize)as*mut u8,();
1738(VideoPlayer_TimeEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
1739 }
1740 }
1741 #[doc = "`Invoke(crate::unity_engine::video::videoplayer::VideoPlayer, f64)` overload"]
1742 fn invoke(
1743 self,
1744 source: impl ::core::convert::Into<crate::unity_engine::video::videoplayer::VideoPlayer>,
1745 seconds: impl ::core::convert::Into<f64>,
1746 ) -> () {
1747 unsafe {
1748 let __receiver =
1749 <VideoPlayer_TimeEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1750 {
1751 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1752 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
1753 panic!(
1754 "unity: virtual slot {}
1755 out of range (vtable len {}
1756) on the runtime class behind {}
1757 (method `{}
1758`)",
1759 13usize,
1760 __vt.len(),
1761 <VideoPlayer_TimeEventHandler as ::unity::ClassIdentity>::NAME,
1762 "Invoke",
1763 )
1764 });
1765 let __inner: extern "C" fn(
1766 VideoPlayer_TimeEventHandler,
1767 crate::unity_engine::video::videoplayer::VideoPlayer,
1768 f64,
1769 ::unity::OptionalMethod,
1770 ) -> () = ::core::mem::transmute(__vi.method_ptr);
1771 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1772 __inner(
1773 __receiver,
1774 ::core::convert::Into::into(source),
1775 ::core::convert::Into::into(seconds),
1776 __mi,
1777 )
1778 }
1779 }
1780 }
1781}
1782
1783#[cfg(feature = "unity_engine-video-videoplayer")]
1784impl<__T: IVideoPlayer_TimeEventHandler> IVideoPlayer_TimeEventHandlerMethods for __T {}
1785
1786#[cfg(feature = "unity_engine-video-videoplayer")]
1787impl VideoPlayer_TimeEventHandler {
1788 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1789 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1790 }
1791
1792 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1793 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1794 }
1795}
1796
1797#[cfg(feature = "unity_engine-video-videoplayer")]
1798impl VideoPlayer_TimeEventHandler {
1799 #[doc = "Direct (non-virtual) call to `VideoPlayer_TimeEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1800 pub unsafe fn invoke(
1801 this: impl ::core::convert::Into<::unity::IlInstance>,
1802 source: crate::unity_engine::video::videoplayer::VideoPlayer,
1803 seconds: f64,
1804 ) -> () {
1805 let __mi = Self::invoke_method_info();
1806 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::video::videoplayer::VideoPlayer, f64, ::unity::OptionalMethod) -> () =
1807 ::core::mem::transmute(__mi.method_ptr);
1808 __inner(this.into(), source, seconds, ::core::option::Option::None)
1809 }
1810}
1811
1812#[cfg(feature = "unity_engine-video-videoplayer")]
1813impl VideoPlayer_TimeEventHandler {
1814 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
1815 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
1816 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1817 panic!(
1818 "{}
1819::{}
1820 failed to instantiate",
1821 ::core::stringify!(VideoPlayer_TimeEventHandler),
1822 ::core::stringify!(new),
1823 )
1824 });
1825 <Self as IVideoPlayer_TimeEventHandlerMethods>::ctor(this, object, method);
1826 this
1827 }
1828}
1829
1830#[cfg(feature = "unity_engine-video-videoplayer")]
1831#[doc(hidden)]
1832pub mod prelude {
1833 pub use super::{
1834 IVideoPlayer, IVideoPlayerMethods, IVideoPlayer_ErrorEventHandler, IVideoPlayer_ErrorEventHandlerMethods, IVideoPlayer_EventHandler,
1835 IVideoPlayer_EventHandlerMethods, IVideoPlayer_FrameReadyEventHandler, IVideoPlayer_FrameReadyEventHandlerMethods,
1836 IVideoPlayer_TimeEventHandler, IVideoPlayer_TimeEventHandlerMethods, VideoPlayer, VideoPlayer_ErrorEventHandler, VideoPlayer_EventHandler,
1837 VideoPlayer_FrameReadyEventHandler, VideoPlayer_TimeEventHandler,
1838 };
1839 #[cfg(feature = "system-delegate")]
1840 pub use crate::system::delegate::IDelegateMethods;
1841 #[cfg(feature = "system-multicastdelegate")]
1842 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
1843 #[cfg(feature = "system-object")]
1844 pub use crate::system::object::IObjectMethods;
1845 #[cfg(feature = "unity_engine-behaviour")]
1846 pub use crate::unity_engine::behaviour::IBehaviourMethods;
1847 #[cfg(feature = "unity_engine-component")]
1848 pub use crate::unity_engine::component::IComponentMethods;
1849 #[cfg(feature = "unity_engine-object_2")]
1850 pub use crate::unity_engine::object_2::IObject_2Methods;
1851 pub use crate::{
1852 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
1853 unity_engine::{behaviour::IBehaviour, component::IComponent, object_2::IObject_2},
1854 };
1855}