The stream method and apparatus that main contents are operated are inserted into by by other contents

There is provided the method and apparatus for reproducing media data.The method includes:Receive the first file comprising the information on the first content period and the information on the second content period;Based on the first file reception for receiving and the media data of reproducing first content;Stop the media data of reproducing first content, the media data based on the first file reception and the second content of reproduction;And the media data of simultaneously reproducing first content is received when the reproduction of the media data of the second content is completed, information wherein on the second content period includes the positional information of the second media data on the second content or the positional information of the second file, positional information of second file comprising the second media data on the second content.