Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem using A-frame to display an image MJPEG #4

Open
Tareq-Diab opened this issue Jan 31, 2019 · 0 comments
Open

problem using A-frame to display an image MJPEG #4

Tareq-Diab opened this issue Jan 31, 2019 · 0 comments

Comments

@Tareq-Diab
Copy link

Tried streaming JPEG frames using mjpeg-streamer

This html shows only the first frame of JPEG streams while streamer works fine.

`

<script src="https://aframe.io/releases/0.2.0/aframe.js"></script>

<body>
    <a-scene>
        <a-assets>
            <img id="my-image" src="http://192.168.1.2:5001/video_feed">
        </a-assets>

        <!-- Using the asset management system. -->
        <a-image src="#my-image" width="16" height="9"></a-image>

        <!-- Defining the URL inline. Not recommended but more comfortable for web developers. -->
        <!--<a-image src="img/BatmanvSuperman.jpg" width="16" height="9"></a-image>-->
    </a-scene>
    
</body>
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant