Use the [QSA] flag here, to append the "ref=" name/value pair to any existing query string:
Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{HTTP_REFERER} ^(.*)$
RewriteRule ^play/([^/]+)$ https://domain.com/$1?ref=%1 [QSA,L]
Also as shown, you should always use an [L] flag on every rule, unless you have a very-specific reason not to do so... and such cases are quite rare.
Be aware that the HTTP Referer header is easily spoofed and that many "media players" will not send one at all. In addition, caching proxies in corporate and ISP networks may effectively suppress this header, and many "Internet Security" programs also remove this header.
In addition, requests invoked by a visitor clicking on a bookmark or a JavaScript-coded link will also not have an HTTP Referer header.
Because the HTTP Referer header is optional (it is not required in the HTTP protocol), these blank-referrer requests cannot be considered "malicious" in any way.
In almost all cases, the visitor will be unaware of whether his requests arrive at your server with or without a referrer. So be sure that your logic which uses the referrer value will properly handle requests arriving with a blank HTTP Referer header. Otherwise, you may inadvertently block *all* requests from large ISPs (e.g AOL and EarthLink in the US) and some corporations, and make your site look badly-broken to those visitors.
If your intention here is to provided some sort of "security" for your content, be advised that using a cookie to control access instead of the unreliable HTTP Referer would be a much-more robust solution.
Jim