Skip to content

MASTER0811/CameraJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Camera Api

Getting Started

Insert this script tag

<script src='https://cdn.jsdelivr.net/gh/MASTER0811/CameraJs/main.js'></script>

add camera_start()

Add script, Exp:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Camera Api</title>
</head>
<body>
    <script src='https://cdn.jsdelivr.net/gh/MASTER0811/CameraJs/main.js'></script>
    <script>
        camera_start()
    </script>
</body>
</html>

You also can edit camera style

Fullscreen camera
Code Here:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Camera Api</title>
</head>
<style>
    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    video{
        right: 0;
        position: absolute;
        bottom: 0;
        min-width: 100%;
        min-height: 100%;
        width:auto;
        height: auto;
    }
</style>
<body>
    <script src='https://cdn.jsdelivr.net/gh/MASTER0811/CameraJs/main.js'></script>
    <script>
        camera_start()
    </script>
</body>
</html>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published