You can use the integrated Media Player Framework for that.
Please check out this page in the documentation.