How can I decode rtmp stream video?

Hi, I am new to video codec, I am starting to use video sdk, I have tested the decodec sample, it can play local video file,I wonder how can I play a video stream online?

Thanks.