Note how the video stays within the iPhone screen? I need the same kind of functionality for a canvas element which contains a game written in Javascript. Note the responsiveness in the example above…
Also - the initialisation for the game involves a bunch of javascript. Is it possible to add script sections within Blocs? Is it possible to call scripts from OnClick events?
Blocs does offer a few Brics for adding devices. But the Blocs structure is not the same as the site example you provided. The sample site uses an animated GIF (not video) as a “background-image”.
You can see the site structure for the site you linked to here:
Blocs does its device Brics a little different I believe, and uses a “img src”. You can see about the device bric feature and its options here: Devices – Blocs – User Documents
But since you are already using canvas for your game, can’t you instead load up your desired mockup image using the image loading capabilities of canvas as part of your initialization? That way its all inclusive and you have full manipulative control. You can also render mockups entirely with CSS, doing this would again give the ability for further manipulative control.
Regarding the entry points you will need for implementing your source structure into Blocs have a look at the following documentation.
With those links you should be able to manually implement all of what you need through various approaches. Hopefully that offers you some starting points to see how things would be possible with Blocs.