summaryrefslogtreecommitdiff
path: root/plex.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-06-27 13:44:56 +0200
committerchriszero <zerov83@gmail.com>2015-06-27 13:44:56 +0200
commitb6a84937d98ee1bf1bb91d87e0d660129f42d367 (patch)
tree5f0181e5b6f9ae289490a180c3b8e169f0a0cdf5 /plex.cpp
parent94c4505e7620a071f86463ec351d3e0dd35146a2 (diff)
downloadvdr-plugin-plex-b6a84937d98ee1bf1bb91d87e0d660129f42d367.tar.gz
vdr-plugin-plex-b6a84937d98ee1bf1bb91d87e0d660129f42d367.tar.bz2
Support for mpv plugin 0.0.3
Diffstat (limited to 'plex.cpp')
-rw-r--r--plex.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/plex.cpp b/plex.cpp
index a242a9b..7a6e675 100644
--- a/plex.cpp
+++ b/plex.cpp
@@ -80,6 +80,8 @@ bool cMyPlugin::Start(void)
reg.SetViewElement(viDetailView, vedHeader, "header");
reg.SetViewElement(viDetailView, vedFooter, "footer");
*/
+
+ //reg.SetMenu(meRoot, "streamselect.xml");
if (skindesignerapi::SkindesignerAPI::RegisterPlugin(&reg)) {
m_pSdCheck = new cPlexSdOsd();
cMyPlugin::bSkindesigner = m_pSdCheck->SdSupport();
@@ -171,11 +173,13 @@ void cMyPlugin::PlayFile(plexclient::Video Vid)
cPlugin* mpvPlugin = cPluginManager::GetPlugin("mpv");
if(Config::GetInstance().UseMpv && mpvPlugin) {
- Play_StartPlayService_v1_0_t req;
+ Mpv_StartPlayService_v1_0_t req;
char* file = (char*)(Vid.m_pServer->GetUri() + Vid.m_Media.m_sPartKey).c_str();
req.Filename = file;
+ req.Title = (char*)Vid.GetTitle().c_str();
//req.Title = &Vid.GetTitle().c_str();
- mpvPlugin->Service(PLAY_START_PLAY_SERVICE, &req);
+ mpvPlugin->Service(MPV_START_PLAY_SERVICE, &req);
+ return;
} else if (Config::GetInstance().UseMpv) {
isyslog("Can't find mpv %s, playing directly.", mpvPlugin ? "service" : "plugin");