Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1.    if (item.GetMimeType() == "xbmc/strm") {
  2.         std::string html = "rtmp://127.0.0.1:1935/live/VIDEO";
  3.  
  4.         CCurlFile* m_http = new CCurlFile;
  5.         m_http->Open(CURL(file));
  6.         m_http->ReadData(html);
  7.         m_http->Close();
  8.  
  9.         CFileItem item(html.c_str(), false);
  10.         item.SetMimeType(content);
  11.         CLog::Log(LOGDEBUG, "Answer: %s | Content-Type: %s", html.c_str(), content.c_str());
  12.         return CDVDFactoryInputStream::CreateInputStream(pPlayer, html, content);
  13.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement