-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ios real device streaming initial logic (#1066)
- Loading branch information
1 parent
17fb8d8
commit 6fb0c56
Showing
14 changed files
with
1,393 additions
and
2,191 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,5 @@ export interface IDevice { | |
width?: string; | ||
height?: string; | ||
liveStreaming?: boolean; | ||
wdaBundleId?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule modules
updated
from e35810 to 0833f4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
function IOSStream() { | ||
|
||
const getParamsFromUrl = () => { | ||
if (window.location.hash.includes('?')) { | ||
const params = new URLSearchParams(window.location.hash.split('?')[1]); | ||
return { | ||
port: params.get('port'), | ||
host: params.get('host'), | ||
}; | ||
} else { | ||
return { port: 8004, host: '127.0.0.1', udid: '' }; | ||
} | ||
}; | ||
const params = getParamsFromUrl(); // Call the function to get parameters | ||
return ( | ||
<div> | ||
<div> | ||
<img | ||
style={{ | ||
maxHeight: 730 + 'px', | ||
maxWidth: 730 + 'px', | ||
width: 'auto', | ||
position: 'absolute', | ||
}} | ||
src={`http://${params.host}:${params.port}`} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default IOSStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ export interface IDevice { | |
liveStreaming: boolean; | ||
width: string; | ||
height: string; | ||
mjpegServerPort: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters