Skip to content

Commit

Permalink
feat: fmp4
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Feb 24, 2020
1 parent c8a6f97 commit 4e6f79d
Show file tree
Hide file tree
Showing 7 changed files with 289 additions and 202 deletions.
2 changes: 1 addition & 1 deletion cmdline/cicadaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int main(int argc, const char **argv)
#endif
NetWorkEventReceiver netWorkEventReceiver(eListener);
player->SetListener(pListener);
player->SetDefaultBandWidth(100000000);
player->SetDefaultBandWidth(1000*1000);
player->SetDataSource(url.c_str());
player->SetAutoPlay(true);
player->SetLoop(true);
Expand Down
4 changes: 4 additions & 0 deletions framework/demuxer/avFormatDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ namespace Cicada {

av_dict_set_int(&mInputOpts, "safe", 0, 0);
av_dict_set(&mInputOpts, "protocol_whitelist", "file,http,https,tcp,tls", 0);




/*If a url with mp4 ext name, but is not a mp4 file, the mp4 demuxer will be matched
* by ext name , mp4 demuxer will try to find moov box, it will ignore the return value
* of the avio_*, and don't check interrupt flag, if the url is a network file, here will
Expand Down
Loading

0 comments on commit 4e6f79d

Please sign in to comment.