summaryrefslogtreecommitdiff
path: root/plex.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-01-17 22:42:08 +0100
committerchriszero <zerov83@gmail.com>2015-01-17 22:42:08 +0100
commitd3777dd6bcb11ceea85eca91e670d7872ba7b1ea (patch)
tree0f105aa75321c5c83a17c0c9338fb2534f61fc38 /plex.cpp
parentadc0c699c19b0389b899230a73f3ab635bcdc5c3 (diff)
downloadvdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.gz
vdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.bz2
Added current status of played stream (current, total time, play, pause)
Diffstat (limited to 'plex.cpp')
-rw-r--r--plex.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plex.cpp b/plex.cpp
index a761303..2626d75 100644
--- a/plex.cpp
+++ b/plex.cpp
@@ -12,11 +12,10 @@ char ConfigDisableRemote; ///< disable remote during external play
**
** @param filename path and file name
*/
-static void PlayFile(std::string filename, plexclient::Video* pVid)
+static void PlayFile(plexclient::Video* pVid)
{
- isyslog("[plex]: play file '%s'\n", filename.c_str());
- //cControl::Launch(new cMyControl(filename));
- cControl::Launch(new cHlsPlayerControl(new cHlsPlayer(filename), pVid->m_sTitle.c_str()));
+ isyslog("[plex]: play file '%s'\n", pVid->m_sKey.c_str());
+ cControl::Launch(cHlsPlayerControl::Create(pVid));
}
//////////////////////////////////////////////////////////////////////////////
@@ -132,7 +131,7 @@ eOSState cPlexBrowser::ProcessSelected() {
if(item->IsVideo()) {
plexclient::Video* pVid = item->GetAttachedVideo();
- PlayFile(pService->GetUniversalTranscodeUrl(pVid).c_str(), pVid);
+ PlayFile(pVid);
return osEnd;
}
@@ -335,7 +334,7 @@ void cMyPlugin::MainThreadHook(void)
// Start Tasks, e.g. Play Video
if(plexclient::ActionManager::GetInstance().IsAction()) {
std::string file = plexclient::ActionManager::GetInstance().GetAction();
- PlayFile(file, NULL);
+ //PlayFile(file, NULL);
}
}