What did US saloon keeper James Ritty invent in 1879?

History Trivia Question: What did US saloon keeper James Ritty invent in 1879?