Skip to content

Commit

Permalink
入力ファイル設定が-のときにきちんと動作するようにRtmpClientを改造
Browse files Browse the repository at this point in the history
  • Loading branch information
taktod committed Nov 23, 2012
1 parent a02d737 commit b74bc10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/com/ttProject/flazr/RtmpClient.java
Expand Up @@ -14,6 +14,7 @@
import com.flazr.rtmp.client.ClientOptions;
import com.flazr.rtmp.client.ClientPipelineFactory;
import com.flazr.util.Utils;
import com.ttProject.flazr.io.flv.FlvLiveReader;

/**
* rtmpの動作エントリー
Expand All @@ -37,6 +38,10 @@ public static void main(String[] args) {
// 単一動作のみ実行しておきます。
if("-".equals(options.getFileToPublish())) {
// publish fileが-の場合は標準入力データを配信するものとする。
String targetFile = System.getProperty("user.home") + "/Sites/mario/mario.flv";
logger.info(targetFile);
options.setFileToPublish(targetFile);
// options.setReaderToPublish(new FlvLiveReader());
}
connect(options);
return;
Expand Down

0 comments on commit b74bc10

Please sign in to comment.