Thanks for your question. Advertising and Chapter Markers/Timelines are out of scope of the Streams product. You’d need the Bitmovin Ad Module or IMA SDK to handle ads so it might be best to start with a Basic Player example using Ads and integrating that into next.js using StreamsTube as an example.
Please see the following documentation
StreamsTube is very much an example/inspiration for what is possible with our Streams Product. As such, we can’t provide any extra support on this.