# MusicCollection (/zh-CN/api-reference/rtc/flutter/class-musiccollection) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```dart abstract class MusicCollection { int getCount(); int getTotal(); int getPage(); int getPageSize(); Music getMusic(int index); } ``` ### 相关参考 [#相关参考] - [getCount](/zh-CN/api-reference/rtc/flutter/play/drm#api_musiccollection_getcount_musiccollection) - [getMusic](/zh-CN/api-reference/rtc/flutter/play/drm#api_musiccollection_getmusic_musiccollection) - [getPage](/zh-CN/api-reference/rtc/flutter/play/drm#api_musiccollection_getpage_musiccollection) - [getPageSize](/zh-CN/api-reference/rtc/flutter/play/drm#api_musiccollection_getpagesize_musiccollection) - [getTotal](/zh-CN/api-reference/rtc/flutter/play/drm#api_musiccollection_gettotal_musiccollection)