#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();
}
来源:搜素材网素材
搜素材网所有素材均为本站用户上传,仅供学习与参考,请勿用于商业用途,如有侵犯您的版权请联系客服服务QQ
本站提供各类html5响应式模板,前端js素材,网站模板,后台模板素材,程序源码素材。
由于技术有限本站不提供安装服务与bug修复,各类源码只提供分享服务,感谢您的理解。
如果对本站有任何意见请点击右侧侧边栏的反馈意见,我们会及时处理。