vi.su.
vi.su.

Reputation: 705

how to replay board games using html5 video

Is it possible to replay board game (for example, chess) moves as html5 video with configurable delay between two moves.

As this is a common requirement for almost all games, I hope there should be a standard way to do this.

One way is drawing moves using JavaScript and DOM manipulation, but I am trying to give it native html5 video user experience.

Upvotes: 0

Views: 290

Answers (2)

Jan
Jan

Reputation: 5815

The supported video formats of html5 video are OGG, H.264, Theora and WebM

http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats

  • If you can encode your gameplay to one of those formats (but prefererably all for compatability), you can play it in the html5 video object

  • If you're looking to draw and manipulate graphics on a html page, you can use the canvas object

  • If you're content with just moving graphics around, you can use Javascript and CSS

Upvotes: 2

Gopikrishna
Gopikrishna

Reputation: 857

try to add loop attribute for your video tag once the video finish the playing again it starts form starting.

loop="loop"

Upvotes: -1

Related Questions