diff options
author | chriszero <zerov83@gmail.com> | 2015-01-17 22:42:08 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-01-17 22:42:08 +0100 |
commit | d3777dd6bcb11ceea85eca91e670d7872ba7b1ea (patch) | |
tree | 0f105aa75321c5c83a17c0c9338fb2534f61fc38 /plex.cpp | |
parent | adc0c699c19b0389b899230a73f3ab635bcdc5c3 (diff) | |
download | vdr-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.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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); } } |