Daniel Douthwaite starred in front of the Sky Sports cameras as his unbeaten half-century helped Glamorgan beat Sussex at Hove.