Fixed bug of media APIs
Merge pull request #799 from linzongshu/media

Fixed bug of media APIs