Integrate[2 Sin[t/2] Power[Sin[t], n - 1], {t, 0, Pi}]