Embedding Live Sessions

You can embed MarinaBox sessions in your web applications using an iframe. This allows for seamless integration of live session views into your own interfaces.

Basic Embedding

Here’s a simple example of embedding a session:

<!DOCTYPE html>
<html>
<head>
    <title>Embedded Session View</title>
    <style>
        .vnc-iframe {
            position: fixed;
            top: 0;
            right: 0;
            width: 70%;
            height: 70%;
            border: none;
            z-index: 1000;
            box-shadow: 0 0 10px rgba(0,0,0,0.2);
        }
    </style>
</head>
<body>
    <iframe 
        class="vnc-iframe"
        src="http://127.0.0.1:5004/vnc.html?resize=scale"
        allow="clipboard-read; clipboard-write"
    ></iframe>
</body>
</html>

Get Support & Join Our Community