Implemented video publishing, but still has stack overflow