Added canPlay method