fingergit / airplay2-win Goto Github PK
View Code? Open in Web Editor NEWAirplay2 for windows
License: MIT License
Airplay2 for windows
License: MIT License
if (event.user.code == VIDEO_SIZE_CHANGED_CODE) {
RECT rtc, rtd;
::SystemParametersInfo(SPI_GETWORKAREA, 0, (PVOID)&rtc, 0);
::GetWindowRect(GetDesktopWindow(), &rtd);
int maxwidth = GetSystemMetrics(SM_CXSCREEN),
maxheight = GetSystemMetrics(SM_CYSCREEN),
fullwidth = GetSystemMetrics(SM_CXSCREEN),
fullheight = GetSystemMetrics(SM_CYFULLSCREEN),
twid = 0,
thet = 0;
unsigned int rawwidth = (unsigned int)event.user.data1,
rawheight = (unsigned int)event.user.data2;
double proportion = rawwidth / rawheight;
bool tskbarpos = rtc.top != rtd.top;
std::cout
<< "[Before processing]FullRes: "
<< maxwidth << ", "
<< maxheight << ", " << std::endl
<< "[Before processing]NoTaskbar: "
<< fullwidth << ", "
<< fullheight << ", " << std::endl;
int tskbarwid = (tskbarpos) ? maxheight - fullheight : maxwidth - fullwidth;
std::cout << "TaskbarWidth: " << tskbarwid << std::endl;
std::cout
<< "BigWidth: " << rawwidth-fullwidth
<< "BigHeight: " << rawheight-fullheight << std::endl;
if (rawwidth > fullwidth | rawheight > fullheight) {
if (
((rawwidth > fullwidth) ? rawwidth - fullwidth : fullwidth - rawwidth)
>
((rawheight > fullheight) ? rawheight - fullheight : fullheight - rawheight)
&
rawwidth>fullwidth
) {
int twid = fullwidth - 20;
std::cout << twid << std::endl;
std::cout
<< twid / rawwidth << std::endl
<< twid / (int)rawwidth << std::endl
<< (int)twid / (int)rawwidth << std::endl
<< (double)twid / (double)rawwidth << std::endl;
int thet = (int)(((double)twid / (double)rawwidth) * (double)rawheight);
}
else {
int thet = fullheight - 20;
std::cout
<< thet / rawheight << std::endl
<< thet / (int)rawheight << std::endl
<< (int)thet / (int)rawheight << std::endl
<< (double)thet / (double)rawheight << std::endl
<< ((double)thet / (double)rawheight) * (double)rawheight << std::endl;
double twid = (((double)thet / (double)rawheight) * (double)rawwidth);
// (956/1080)*1440=-9.2559631349317831e+61
}
}
else {
twid = rawwidth, thet = rawheight;
}
std::cout
<< "FullRes: "
<< maxwidth << ", "
<< maxheight << ", "
<< "NoTaskbar: "
<< fullwidth << ", "
<< fullheight << ", "
<< "FromIDevices: "
<< rawwidth << ", "
<< rawheight << ", "
<< "Outputting: "
<< twid << ", "
<< thet << std::endl;
/*
OnInit: 0, 0
[Before processing]FullRes: 1920, 1080,
[Before processing]NoTaskbar: 1920, 976,
TaskbarWidth: 104
BigWidth: 4294966816BigHeight: 104
0
0
0
0.885185
956
FullRes: 1920, 1080, NoTaskbar: 1920, 976, FromIDevices: 1440, 1080, Outputting: 0, 0
*/
if (twid != m_rect.w || thet != m_rect.h || m_yuv == NULL) {
unInitVideo();
initVideo(twid, thet);
}
}
@fingergit: How I can contact you by email?
Can I have your email address?
You can remove this ticket after sending the reply ^^
Thanks in advance.
播放mv的时候,就卡住缓冲了,打印log有显示mv的地址.然后过一会链接就断了
Trying airplay-win and -dll-demo with iPad (1?) iOS 9.3.5. I see the options on the iPad in both cases. Connecting does not seem to do much, and when I enable mirroring, it disappears from the list.
Source files FgAirplayChannel.cpp
and FgAirplayChannel.h
is missing in the project
能留个联系方式,交流学习一下吗?
您好,请问下生成MP4文件有什么方法呢?
连接iphone和ipad后,程序崩溃退出。
在FgAirplayChannel::decodeH264Data之前正常,运行到ret = avcodec_send_packet(); ;avcodec_receive_frame(); 后程序崩溃退出
\airplay2-win\airplay2\lib\fdk-aac\libFDK\include\fixmul.h(116,10): error C1083: 无法打开包括文件: “x86/fixmul_x86.h”: No such file or directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.