blob: c976116f0013a299fa00d117a5235ec59100150f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
---@meta
---@class ccui.VideoPlayer :ccui.Widget
local VideoPlayer={ }
ccui.VideoPlayer=VideoPlayer
---* brief Get the local video file name.<br>
---* return The video file name.
---@return string
function VideoPlayer:getFileName () end
---* brief Get the URL of remoting video source.<br>
---* return A remoting URL address.
---@return string
function VideoPlayer:getURL () end
---* Starts playback.
---@return self
function VideoPlayer:play () end
---* Checks whether the VideoPlayer is set to listen user input to resume and pause the video<br>
---* return true if the videoplayer user input is set, false otherwise.
---@return boolean
function VideoPlayer:isUserInputEnabled () end
---* Causes the video player to keep aspect ratio or no when displaying the video.<br>
---* param enable Specify true to keep aspect ratio or false to scale the video until <br>
---* both dimensions fit the visible bounds of the view exactly.
---@param enable boolean
---@return self
function VideoPlayer:setKeepAspectRatioEnabled (enable) end
---* Stops playback.
---@return self
function VideoPlayer:stop () end
---* Causes the video player to enter or exit full-screen mode.<br>
---* param fullscreen Specify true to enter full-screen mode or false to exit full-screen mode.
---@param fullscreen boolean
---@return self
function VideoPlayer:setFullScreenEnabled (fullscreen) end
---* Sets a file path as a video source for VideoPlayer.
---@param videoPath string
---@return self
function VideoPlayer:setFileName (videoPath) end
---* Sets a URL as a video source for VideoPlayer.
---@param _videoURL string
---@return self
function VideoPlayer:setURL (_videoURL) end
---* Set the style of the player<br>
---* param style The corresponding style
---@param style int
---@return self
function VideoPlayer:setStyle (style) end
---* Seeks to specified time position.<br>
---* param sec The offset in seconds from the start to seek to.
---@param sec float
---@return self
function VideoPlayer:seekTo (sec) end
---* Indicates whether the video player keep aspect ratio when displaying the video.
---@return boolean
function VideoPlayer:isKeepAspectRatioEnabled () end
---* brief A function which will be called when video is playing.<br>
---* param event @see VideoPlayer::EventType.
---@param event int
---@return self
function VideoPlayer:onPlayEvent (event) end
---* Indicates whether the video player is in full-screen mode.<br>
---* return True if the video player is in full-screen mode, false otherwise.
---@return boolean
function VideoPlayer:isFullScreenEnabled () end
---* Checks whether the VideoPlayer is set with looping mode.<br>
---* return true if the videoplayer is set to loop, false otherwise.
---@return boolean
function VideoPlayer:isLooping () end
---* Checks whether the VideoPlayer is playing.<br>
---* return True if currently playing, false otherwise.
---@return boolean
function VideoPlayer:isPlaying () end
---* brief Set if playback is done in loop mode<br>
---* param looping the video will or not automatically restart at the end
---@param looping boolean
---@return self
function VideoPlayer:setLooping (looping) end
---* Set if the player will enable user input for basic pause and resume of video<br>
---* param enableInput If true, input will be handled for basic functionality (pause/resume)
---@param enableInput boolean
---@return self
function VideoPlayer:setUserInputEnabled (enableInput) end
---*
---@return self
function VideoPlayer:create () end
---*
---@param renderer cc.Renderer
---@param transform mat4_table
---@param flags unsigned_int
---@return self
function VideoPlayer:draw (renderer,transform,flags) end
---* Pauses playback.
---@return self
function VideoPlayer:pause () end
---*
---@return self
function VideoPlayer:onEnter () end
---*
---@return self
function VideoPlayer:onExit () end
---* Resumes playback.
---@return self
function VideoPlayer:resume () end
---*
---@param visible boolean
---@return self
function VideoPlayer:setVisible (visible) end
---*
---@return self
function VideoPlayer:VideoPlayer () end
|