Jump to content

Search the Community

Showing results for tags 'html5 video'.

  • 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. Hello i am trying to make a small application for video in html5. I would like to load a video but i am doing something horribly wrong. I am using the hello world for phaser. I have tried both Phaser.js and phaser.min.js Neither one seems to work with video. MY CODE IS BELOW <!doctype html><html> <head> <meta charset="UTF-8" /> <title>hello phaser!</title> <script src="Phaser.js"></script> </head> <body> <script type="text/javascript"> window.onload = function (){ var game = new Phaser.Game(720, 480, Phaser.AUTO, '', { preload: preload, create: create }); function preload () { game.load.image('logo', 'phaser.png'); game.load.video('myvideo1', 'video1.mp4'); } function create () { var logo = game.add.sprite(game.world.centerX, game.world.centerY, 'logo'); logo.anchor.setTo(0.5, 0.5); video = game.add.video('myvideo1'); video.onPlay.addOnce(start, this); sprite = video.addToWorld(400, 300, 0.5, 0.5); video.play(); } }; </script> </body></html>
×
×
  • Create New...