Hello, I am a starter developer working in Korea.
I want to create a video player using canvas. because I need to auto play on mobile web.
The code below makes it easy to implement on the web.
var canvas = document.getElementById(“gameCanvas”);
var video = document.getElementById(“myVideo”);
var ctx = canvas.getContext(“2d”);
But, there is no screen in cocos2d-js gameCanvas.
I tried to utilize drawImage of cc.DrawingPrimitiveCanvas but I do not know how to use it correctly and error continues.
plz, help me.
There is a god blessing to everyone who reads this article.