The Bluetooth device has to be
licensed but if you have a commercial Bluetooth device it's OK to add a recording circuit or recording device from the analog output.
It's a copyright violation and a violation of your user agreement to record
streaming audio from the Internet (although a lot of people do it). The artist/copyright holder gets a fraction of a penny every time it's streamed but of course they don't get paid when you play a stolen copy