MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / getSpeedLevel

Method getSpeedLevel

framework/data_source/IDataSource.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 IDataSource::speedLevel IDataSource::getSpeedLevel()
70 {
71 if (CicadaUtils::startWith(mUri, {"http://", "https://", "rtmp://"})) {
72 return speedLevel_remote;
73 }
74
75 if (access(mUri.c_str(), 0) == 0) {
76 return speedLevel_local;
77 }
78
79 return speedLevel_remote;
80 }
81
82 const options *IDataSource::GetOption()
83 {

Callers 4

OpenMethod · 0.80
getFileSizeMethod · 0.80
SeekMethod · 0.80
ReadMethod · 0.80

Calls 1

startWithFunction · 0.85

Tested by

no test coverage detected