Support loop flag in video tags