improve seeking on end of file and when file is buffering#2

add duration and buffered to demuxer for future calculations when seeking.