Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can iOS be based on Windows? #263

Open
Jevell opened this issue Mar 29, 2023 · 6 comments
Open

Can iOS be based on Windows? #263

Jevell opened this issue Mar 29, 2023 · 6 comments

Comments

@Jevell
Copy link

Jevell commented Mar 29, 2023

It is possible to run Android on Windows, but currently running iOS on Windows only allows you to see the connected device without any further functionality. This is because iOS typically requires macOS to run properly.

@drauggres
Copy link
Collaborator

Hi.
See #195

@Jevell
Copy link
Author

Jevell commented Mar 30, 2023

Hello, thank you. Let me take a look at this article first. Also, I have a question - is there a reason why my iOS device is often not detected?

@Jevell
Copy link
Author

Jevell commented Mar 30, 2023

Unable to find iOS devices when searching for devices in the device list, while there are no issues detecting Android devices. At the beginning, the iOS device was detectable but not anymore. Are there any other possible reasons for this? Could there be conflicts with other installed drivers?

@drauggres
Copy link
Collaborator

is there a reason why my iOS device is often not detected?

iOS support was always experimental. It has never been completed properly.
Sometimes is helps to reconnect the devices. I used https://github.com/mvp/uhubctl to do it programmatically.

Are there any other possible reasons for this? Could there be conflicts with other installed drivers?

Since I don't use Windows, I never tried tidevice or anything from #195. I guess drivers conflict is possible, but I don't really know.

@Jevell
Copy link
Author

Jevell commented Mar 30, 2023

Thank you very much. I was able to transfer and operate iOS device video streams by modifying the tidevice and enabling WDA. I have another question to ask: the video transmission through MJPEG is a bit jerky, is there any way to increase the frame rate?

I found two configuration files that can be modified: "src\app\player\BasePlayer.ts" and "src\app\applDevice\client\WdaProxyClient.ts". Should I modify the frame rate in WdaProxyClient.ts or is there another file I should modify?

@drauggres
Copy link
Collaborator

You can set framerate, scaling factor and sreenshot quality from the UI (in three dots)

// FIXME: scaling factor changes are not handled
scalingWrapper.style.display = 'none';
this.scalingFactorInput = scalingFactorInput;
const qualityLabel = document.createElement('label');
qualityLabel.innerText = 'Quality:';
const qualityInput = document.createElement('input');
qualityInput.placeholder = `1 .. 100`;
qualityInput.value = `${defaultOptions.mjpegServerScreenshotQuality}`;
ApplMjpegMoreBox.wrap('div', [qualityLabel, qualityInput], innerDiv);
this.qualityInput = qualityInput;
innerDiv.appendChild(btn);
btn.innerText = text;
btn.onclick = () => {
const mjpegServerFramerate = parseInt(this.framerateInput.value, 10);
const mjpegScalingFactor = parseInt(this.scalingFactorInput.value, 10);
const mjpegServerScreenshotQuality = parseInt(this.qualityInput.value, 10);
const options: MjpegServerOptions = {
mjpegServerFramerate,
mjpegScalingFactor,
mjpegServerScreenshotQuality,
};
wdaConnection.setMjpegServerOptions(options);
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants