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

Method addURLProperty

mediaPlayer/MediaPlayerAnalyticsUtil.cpp:240–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void MediaPlayerAnalyticsUtil::addURLProperty(const std::string &name, CicadaJSONArray &array, IDataSource *dataSource)
241{
242 if (dataSource) {
243 string str = dataSource->GetOption(name);
244
245 if (str.empty()) {
246 return;
247 }
248
249 CicadaJSONItem item(str);
250 item.addValue("type", "url");
251 array.addJSON(item);
252 }
253}
254
255RenderInfo::RenderInfo()
256{}

Callers

nothing calls this directly

Calls 4

addValueMethod · 0.80
addJSONMethod · 0.80
GetOptionMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected