-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54e9dbe
commit 18d12b9
Showing
8 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#include <boost/shared_ptr.hpp> | ||
#include <player-factory/player.hpp> | ||
|
||
namespace mediapipeline { | ||
|
||
class AbstractPlayer : public Player { | ||
public: | ||
boost::shared_ptr<Pipeline> getPipeline() const; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
typedef enum { | ||
MEDIA_CUSTOM_SRC_TYPE_ES = 7 | ||
} MEDIA_CUSTOM_SRC_TYPE_T; | ||
|
||
typedef struct MEDIA_CUSTOM_CONTENT_INFO { | ||
int32_t mediaTransportType; | ||
int32_t mediaSourceType; | ||
int32_t container; | ||
uint64_t size; | ||
uint32_t videoCodec; | ||
uint32_t audioCodec; | ||
int32_t esCh; | ||
int64_t ptsToDecode; | ||
int32_t restartStreaming; | ||
int32_t separatedPTS; | ||
uint8_t svpVersion; | ||
int32_t preBufferTime; | ||
int32_t useBufferCtrl; | ||
int32_t userBufferCtrl; | ||
int32_t bufferingMinTime; | ||
int32_t bufferingMaxTime; | ||
uint8_t bufferMinPercent; | ||
uint8_t bufferMaxPercent; | ||
uint8_t padding[2]; | ||
uint8_t videoDataInfo[104]; | ||
uint8_t audioDataInfo[56]; | ||
uint16_t unknown; | ||
uint32_t delayOffset; | ||
uint32_t drmType; | ||
char* drmTypeExtension; | ||
char* drmClientID; | ||
uint32_t startBPS; | ||
uint32_t unknown2; | ||
uint32_t unknown3; | ||
int32_t unknown4; | ||
int32_t unknown5; | ||
uint32_t startTime; | ||
uint8_t unknown6[20]; | ||
int32_t unknown7; | ||
} MEDIA_CUSTOM_CONTENT_INFO_T; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#include <player-factory/common.hpp> | ||
#include <player-factory/pipeline.hpp> | ||
|
||
namespace mediapipeline { | ||
|
||
class CustomPipeline : public Pipeline { | ||
public: | ||
bool loadSpi_getInfo(MEDIA_CUSTOM_CONTENT_INFO_T* contentInfo); | ||
void sendSegmentEvent(); | ||
void setContentInfo(MEDIA_CUSTOM_SRC_TYPE_T srcType, MEDIA_CUSTOM_CONTENT_INFO_T* contentInfo); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
|
||
#include <player-factory/abstractplayer.hpp> | ||
|
||
namespace mediapipeline { | ||
|
||
class CustomPlayer : public AbstractPlayer { | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
namespace mediapipeline { | ||
|
||
class Pipeline { | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
namespace mediapipeline { | ||
|
||
class Player { | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prefix=/usr | ||
exec_prefix=${prefix} | ||
libdir=${prefix}/lib | ||
includedir=${prefix}/include/starfish-media-pipeline | ||
|
||
Name: PlayerFactory | ||
Description: player factory library | ||
Version: 1.0.0 | ||
|
||
Requires: | ||
Libs: -L${libdir} -lpf-1.0 | ||
Cflags: -I${includedir}/player-factory |