- The purpose of this script is to take video / data input from consoles via third-party
HDMI / DP
toUSB Device
. - It's for people with a
game console
that want to use theirhigh performance monitor
rather thanTV
while also usingmonitor
asPC monitor
. - You can download to play right away or add it to your project.
- You can test it on my website: https://joeworkbench.net/MagicMonitor
- All you really need is
MagicMonitor.html
. You can download and launch it on your favorite browser. - Go into your
Browser Settings
and search forWebcam
andMicrophone
. - Set the
Default
device to yourUsb Device
connected from yourconsole
and to yourPC
. - Depending on the distance to your
console
, anhdmi/dp repeater
might be necessary. - An
hdmi splitter
will be necessary if you wish to use aTV
as well.
- Uses a browser as a monitor to display game console / media connected via USB
- Utilizes the webcam and microphone functionality native to most modern browsers
- Can take advantage of the "media popout feature" found in some browsers
- A third-party USB device for console input
- A modern browser with webcam and microphone functionality
- To install for Users:
- Download
MagicMonitor.html
from above. - Open the
MagicMonitor.html
file in your preferred browser. - Connect your USB device for console input.
- To install Standalone for Developers
- Clone the repository
mv MagicMonitor/CodeSplitting/testMagicMonitor MagicMonitor/index.html
mv MagicMonitor/JS/testMagicMonitor MagicMonitor/JS/main.js
rm MagicMonitor.html README.md
-(optional, but recommended)- In your new
index.html
- Locate
<link rel="stylesheet" href="./CSS/MM.css">
<script type="module" src="./JS/MagicMonitor.js" ></script>
<script type="module" src="./JS/testMagicMonitor.js" ></script>
- Modify
<link rel="stylesheet" href="./CodeSplitting/CSS/MM.css">
<script type="module" src="./CodeSplitting/JS/MagicMonitor.js" ></script>
<script type="module" src="./CodeSplitting/JS/testMagicMonitor.js" ></script>
- Code examples can be found below should you wish to only use
MagicMonitor.js
as a Code Snippet.
- Run the
MagicMonitor.html
file in your browser. - Follow browser instructions to set your
USB Device
as default for both webcam and mic.
- I have made
MagicMonitor.js
which has all the methods you need. - To add it to your JS import add:
In your HTML:
<script type="module" src="./JS/MagicMonitor.js"></script>
<div id="container">
<video autoplay="true" id="videoElement"></video>
</div>
In your JavaScript:
import MagicMonitor from './MagicMonitor.js';
- See my code
testMagicMonitor.js
for examples using the methods. - I have also included an optional Basic CSS class
MM.css
to make it look decent if you're ok with the sizing.
The File Structure is:
index.html (testMagicMonitor)
|
|--JS/
| |
| |--MagicMonitor.js
|--CSS/
| |
| |--MM.css
|
|
Contributions are welcome! I currently do not have a contribution guidelines link for more information.
This project is licensed under the Creative Commons Attribution 1.0 International License.
This project was created by Joseph Ang
and README.ME
co-authored by OpenAI's ChatGPT
.
Please donate to your favorite charity for me <3