Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (item.GetMimeType() == "xbmc/strm") {
- std::string html = "rtmp://127.0.0.1:1935/live/VIDEO";
- CCurlFile* m_http = new CCurlFile;
- m_http->Open(CURL(file));
- m_http->ReadData(html);
- m_http->Close();
- CFileItem item(html.c_str(), false);
- item.SetMimeType(content);
- CLog::Log(LOGDEBUG, "Answer: %s | Content-Type: %s", html.c_str(), content.c_str());
- return CDVDFactoryInputStream::CreateInputStream(pPlayer, html, content);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement