企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 4.2.5 获取当前播放信息 **newMediaPlayer.getPlayStatus();** **说明:** newMediaPlayer:已初始化的媒体对象 **返回值:** json示例 ``` { "audiobitrate":256, "audiocodec":23, "audioduration":45540, "bitspersample":16, "channels":1, "errorcode":0, "filebitrate":256, "fileduration":45540,//媒体总时间 "filename":"2.mp3", "playspeed":1, "playstatus":0, "playtime":0, //播放到进度时间 "samplespersec":16000, "taskguid":"E444CCD1-4D27-48FE-A9D5-BD0074A0B557" } ```