support setting max buffer size and getting buffering rate