for bug #66, refine the api to send h264 frames.