Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cpasjuste/pplay
/ getDuration
Method
getDuration
src/player/mpv.cpp:203–207 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
201
}
202
203
long Mpv::getDuration() {
204
long duration = 0;
205
mpv_get_property(handle,
"duration"
, MPV_FORMAT_INT64, &duration);
206
return duration;
207
}
208
209
long Mpv::getPosition() {
210
long position = 0;
Callers
1
onDraw
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected