54 const std::string&codecName,
55 const std::string& deviceType,
56 const std::string& codecOptions,
57 const std::string& codecParams
64 if (codecOptions !=
"")
66 end = codecOptions.find(delimiter);
67 while (end != std::string::npos) {
68 std::string temp = codecOptions.substr(start, end - start);
69 size_t end_temp = temp.find(
'=');
70 std::string key = temp.substr(0, end_temp);
71 std::string value = temp.substr(end_temp+1, temp.length() - end_temp);
72 codecOptions_[key] = value;
74 end = codecOptions.find(delimiter, start);
76 std::string temp = codecOptions.substr(start);
77 size_t end_temp = temp.find(
'=', 0);
78 codecOptions_[temp.substr(0, end_temp)] = temp.substr(end_temp+1, temp.length() - end_temp);
81 if (codecParams ==
"")
83 codecParamsEnabler_ =
"";
84 codecParamsValues_ =
"";
91 end = codecParams.find(delimiter);
92 codecParamsEnabler_ = codecParams.substr(start, end - start);
103 if (codecParams.find(
'+', end+1) != std::string::npos)
107 end = codecParams.find(delimiter, start);
108 std::string params_temp =
"";
109 while (end != std::string::npos) {
110 params_temp += codecParams.substr(start, end - start)+
",";
112 end = codecParams.find(delimiter, start);
114 params_temp += codecParams.substr(start, codecParams.length() - start);
116 codecParamsValues_ = params_temp;
118 codecParamsValues_ = codecParams.substr(end+1, codecParams.length() - end);