Skip to content

Commit

Permalink
Merge pull request #63 from phunkyfish/api-change
Browse files Browse the repository at this point in the history
Inputstream API change to v2.1.0 - RTMP version 3.0.2
  • Loading branch information
phunkyfish committed Apr 8, 2020
2 parents 02d6a0d + d4f79bf commit e957406
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ debian/*.log
debian/*.substvars
debian/.debhelper/
debian/tmp/
debian/kodi-inputstream-*/
debian/kodi-pvr-*/
obj-x86_64-linux-gnu/

# commonly used editors
Expand Down Expand Up @@ -38,5 +38,8 @@ obj-x86_64-linux-gnu/
# to prevent add after a "git format-patch VALUE" and "git add ." call
/*.patch

# Visual Studio Code
.vscode

# to prevent add if project code opened by Visual Studio over CMake file
.vs/
2 changes: 1 addition & 1 deletion inputstream.rtmp/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="inputstream.rtmp"
version="3.0.1"
version="3.0.2"
name="RTMP Input"
provider-name="spiff">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
4 changes: 2 additions & 2 deletions src/RTMPStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class ATTRIBUTE_HIDDEN CInputStreamRTMP
bool PosTime(int ms) override;
int GetTotalTime() override { return 20; }
int GetTime() override { return 0; }
bool CanPauseStream() override { return true; }
bool CanSeekStream() override { return true; }

private:
RTMP* m_session = nullptr;
Expand Down Expand Up @@ -125,6 +123,8 @@ void CInputStreamRTMP::Close()
void CInputStreamRTMP::GetCapabilities(INPUTSTREAM_CAPABILITIES &caps)
{
caps.m_mask |= INPUTSTREAM_CAPABILITIES::SUPPORTS_IPOSTIME;
caps.m_mask |= INPUTSTREAM_CAPABILITIES::SUPPORTS_SEEK;
caps.m_mask |= INPUTSTREAM_CAPABILITIES::SUPPORTS_PAUSE;
}

INPUTSTREAM_IDS CInputStreamRTMP::GetStreamIds()
Expand Down

0 comments on commit e957406

Please sign in to comment.