Jump to content

Search the Community

Showing results for tags 'html5controls'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi, I am displaying a video onto a plane using the video texture. Now I want to display the HTML5 video controls in the below format. Is there any way I can do it? I tried to setup the video controls in the below method but its not working //TV var tv = BABYLON.Mesh.CreatePlane("plane", 20.0, scene); tv.position.y = 20; tv.position.z = 9; //TV material and textures var mat = new BABYLON.StandardMaterial("mat", scene); var mat1 = new BABYLON.StandardMaterial("mat", scene); var videoTexture = new BABYLON.VideoTexture("video", [], scene, true, false); mat.diffuseTexture = videoTexture; tv.material = mat; var htmlVideo = mat.diffuseTexture.video; htmlVideo.setAttribute("controls", "true"); htmlVideo.setAttribute("src", "Video3.mp4");
×
×
  • Create New...