Skip to content

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

@Tareq-Diab

Description

@Tareq-Diab

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>
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions