| 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 | { |
no test coverage detected