Do you wish to represent two simultaneous past actions?
In that case, the following are appropriate:
- He was listening to music while he was stretching.
- While he was stretching, he was listening to music .
('As' has many different meanings and can be confusing.)