Only plays a sample

Currently im using http streaming, it only plays about 10-12 seconds from what i stream in the player and then it restarts all over from where it started. Is there anything i can do?