The first time when you try to stream media files to your Samsung TV, there might be a message showing up on the screen of your TV: “A new device has been detected. Do you want to allow it to access this product?” At this point, please select “Allow”, and the streaming should start just fine.

If you, however, clicked “Deny” by mistake, you can easily remedy this undesired situation by following the instructions listed in this answer.