当前位置:网站首页>Player practice 26 adding slider and window maximization
Player practice 26 adding slider and window maximization
2022-06-12 14:12:00 【Sister Suo】
1. add to positioning
2. add controls , Modify name , Modify maximum value to improve precision 
3.
In the class xplay2 Add
void Xplay2::timerEvent(QTimerEvent* e)
{
long long total = dt.totalMs;
qDebug() << "total: " << total << endl;
if (total > 0)
{
// Currently decoded pts Divide by total pts, It's a ratio
double pos = (double)dt.pts / (double)total;
qDebug()<< "pos: " << pos << endl;
int v = ui.playPos->maximum() * pos;
ui.playPos->setValue(v);
}
}
stay xplay Add a timer to the constructor of
Xplay2::Xplay2(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
dt.start();
startTimer(40);
}
Synchronize control refresh with video (fps=25)
边栏推荐
- TestEngine with ID ‘junit-vintage‘ failed to discover tests
- Redis核心配置和高级数据类型
- Why do Chinese programmers change jobs?
- 1414. minimum number of Fibonacci numbers with sum K
- Alibaba cloud development board haas510 parses serial port JSON data and sends attributes
- Alibaba cloud development board haas510 responds to UART serial port instructions
- Dial up and Ethernet
- Codeforces Round #798 (Div. 2)(A~D)
- 阿里云开发板vscode开发环境搭建
- Tlm/systemc: TLM socket binding problem
猜你喜欢

阿里云开发板HaaS510连接物联网平台--HaaS征文
![[MySQL advanced] index classification and index optimization scheme (V)](/img/8b/2284783d8b81ba2e8fa45a239107ba.png)
[MySQL advanced] index classification and index optimization scheme (V)

Design of PLC intelligent slave station based on PROFIBUS DP protocol

【活动早知道】LiveVideoStack近期活动一览
![[advanced MySQL] evolution of MySQL index data structure (IV)](/img/eb/e32387b172eb4c3a4152dbc3b0cb8f.png)
[advanced MySQL] evolution of MySQL index data structure (IV)

Is Shell Scripting really a big technology?

阿里云开发板HaaS510将串口获取数据发送到物联网平台

简述CGI与FASTCGI区别

Mémoire de l'examen d'entrée à l'université

Socket model of punctual atom stm32f429 core board
随机推荐
Create a slice slice pit using the make method
Hash tables, sets, maps, trees, heaps, and graphs
Go language functions as parameters of functions
[MySQL advanced] index classification and index optimization scheme (V)
Lua callinfo structure, stkid structure resolution
TestEngine with ID ‘junit-vintage‘ failed to discover tests
Mémoire de l'examen d'entrée à l'université
Tlm/systemc: TLM socket binding problem
Tree reconstruction (pre order + middle order or post order + middle order)
Axi4 increase burst / wrap burst/ fix burst and narrow transfer
Player practice 11 audio resampling
Details of bypassing safeseh mechanism by using modules that do not enable safeseh
Leetcode 2185. Counts the string containing the given prefix
2021-05-28
通过loganalyzer展示数据库中的日志
Player practice 15 xdemux and avcodecparameters
Now you must know the pointer
Single bus temperature sensor 18B20 data on cloud (Alibaba cloud)
Bridging and net
CSDN blog points rule