- The purpose of this script is to take video / data input from consoles via third-party
HDMI / DPtoUSB Device. - It's for people with a
game consolethat want to use theirhigh performance monitorrather thanTVwhile also usingmonitorasPC 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 Settingsand search forWebcamandMicrophone. - Set the
Defaultdevice to yourUsb Deviceconnected from yourconsoleand to yourPC. - Depending on the distance to your
console, anhdmi/dp repeatermight be necessary. - An
hdmi splitterwill be necessary if you wish to use aTVas 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.htmlfrom above. - Open the
MagicMonitor.htmlfile 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.htmlmv MagicMonitor/JS/testMagicMonitor MagicMonitor/JS/main.jsrm 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.jsas a Code Snippet.
- Run the
MagicMonitor.htmlfile in your browser. - Follow browser instructions to set your
USB Deviceas default for both webcam and mic.
- I have made
MagicMonitor.jswhich 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.jsfor examples using the methods. - I have also included an optional Basic CSS class
MM.cssto 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