- 源码分类:游戏源码
- 发布日期:2020-03-10 23:57
- 展示次数:2393
- 下载次数:1
- 收藏次数:5
- 分享人员:整站源码分享
#include <QFileDialog>
#include <QInputDialog>
#include <QStringlist>
#include <QtextCodec>
#include <QPixmap>
#include <QDebug>
#include <Qtcore>
#include <QObject>
#include <QcloseEvent>
#include <QMessageBox>
#include "playermainwindow.h"
#include "ui_playermainwindow.h"
#include "network.h"
#define KMusicChannelsURL "http://raw.github.com/iosnews/test/master/baidu.json"
#define kMusicPlaylistURL "http://fm.baidu.com/dev/api/?tn=playlist&special=flash&prepend=&format=json&&id="
#define kMusicurl "http://music.baidu.com/data/music/fmlink?type=mp3&rate=2&format=json&songIds="
#define kMusicLRCURL "http://fm.baidu.com/"
PlayerMainWindow::PlayerMainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::PlayerMainWindow)
{
ui->setupUi(this);
this->osdLyricsWidget = new OSDLyricsWidget();
this->osdLyricsWidget->show();
this->localMediaPlayList = new QMediaPlaylist(this);
this->onlineMediaPlayList = new QMediaPlaylist(this);
this->onlineMediaList = new QList<KMediaInfo>();
this->mediaPlayer = new QMediaPlayer(this);
this->mediaPlayer->setPlaylist(this->localMediaPlayList);
this->mediaPlayer->setVolume(50);
this->progressTimer = new QTimer(this);
this->progressTimer->setInterval(100);
this->network = new Network(this);
network->fetchChannels(KMusicChannelsURL);
this->setupConnections();
this->dbOK = db.initDataBase();
}
评论
来源:c++ 音乐播放器 示例源码
李小萌资源网所有素材均为本站用户上传,仅供学习与参考,请勿用于商业用途,如有侵犯您的版权请联系客服服务QQ
本站提供各类程序源码素材。
如果对本站有任何意见请点击右侧侧边栏的反馈意见,我们会及时处理。