added support to play content from pipe (standard input)