jeromeetienne / AR.js

Efficient Augmented Reality for the Web - 60fps on mobile!
MIT License
15.79k stars 2.22k forks source link

Video Playback in Augmented Reality On Detecting Marker Using A Frames #385

Closed anilachary closed 6 years ago

anilachary commented 6 years ago

Do you want to request a feature or report a bug?

        <a-anchor hit-testing-enabled='true'>
           <a-entity>
              <video  type="video/mp4"  onended="redirect()" id="penguin-sledding" autoplay="true"   loop="false" src="resources/speed.mp4" webkit-playsinline >
              <!-- <audio id="penguin-sleddinga" type="audio/mp3"  muted="false" src="vv1.mp3"  loop="false">  -->
           </a-entity>
           <!-- Using the asset management system. -->
           <!-- Defining the URL inline. Not recommended but more comfortable for web developers. -->
           </a-anchor>

        <!-- Define a static camera -->
        <a-marker type="pattern" url="https://ladmin.immersionslabs.com/upload/web_lcatalog_resources/pattern1.patt">
            <a-video vidhandler src="#penguin-sledding" position="0 0 0" src="#imge" rotation="-90 0 0"></a-video>
         </a-marker> 
        <a-entity light="color: #ccccff; intensity: 1; type: ambient;" visible=""></a-entity>
        <a-entity camera></a-entity>

     </a-scene>
` ). --> **What is the current behavior?** **If the current behavior is a bug, please provide the steps to reproduce.** **What is the expected behavior?** **If this is a feature request, what is motivation or use case for changing the behavior?** **Please mention other relevant information such as the browser version, Operating System and Device Name**
nicolocarpignoli commented 6 years ago

please, re-open this using the given template and fill the majority of the fields. thanks