summaryrefslogtreecommitdiff
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
parent94c4505e7620a071f86463ec351d3e0dd35146a2 (diff)
downloadvdr-plugin-plex-b6a84937d98ee1bf1bb91d87e0d660129f42d367.tar.gz
vdr-plugin-plex-b6a84937d98ee1bf1bb91d87e0d660129f42d367.tar.bz2
Support for mpv plugin 0.0.3
-rw-r--r--plex.cpp8
-rw-r--r--services.h22
2 files changed, 13 insertions, 17 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");
diff --git a/services.h b/services.h
index bf14b70..14099e3 100644
--- a/services.h
+++ b/services.h
@@ -1,22 +1,14 @@
#pragma once
-#include <string>
-
-#define PLAY_OSD_3DMODE_SERVICE "Play-Osd3DModeService-v1.0"
-#define PLAY_START_PLAY_SERVICE "Play-StartPlayService_v1_0"
-#define PLAY_SET_TITLE_SERVICE "Play-SetTitleService_v1_0"
-
-typedef struct
-{
- int Mode;
-} Play_Osd3DModeService_v1_0_t;
+#define MPV_START_PLAY_SERVICE "Mpv-StartPlayService_v1_0"
+#define MPV_SET_TITLE_SERVICE "Mpv-SetTitleService_v1_0"
typedef struct
{
- char* Filename;
- char* Title;
-} Play_StartPlayService_v1_0_t;
+ char* Filename;
+ char* Title;
+} Mpv_StartPlayService_v1_0_t;
typedef struct
{
- char* Title;
-} Play_SetTitleService_v1_0_t; \ No newline at end of file
+ char* Title;
+} Mpv_SetTitleService_v1_0_t; \ No newline at end of file