skip to Main Content

I want to run code at a certain video timestamp in JavaScript

I want to do a cool CSS background change to match with the video. I use this code: document.getElementById("video").addEventListener("playing",video,false); function video(){ if(document.getElementById('video').currentTime >= 3.466) { document.getElementById("body").style.backgroundColor = "black"; } else { document.getElementById('video').addEventListener("timeupdate", video()); } } I was hoping that when…

VIEW QUESTION

How to loop somepart of function in flutter?

I want to loop some part of function base on widget.menuItem.category.length, I am new in flutter. Here is my current code : _buildContentView({BuildContext context}) { return Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ _buildMenuItemImage(), Container( child: Text(widget.menuItem.name, style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),…

VIEW QUESTION
Back To Top
Search