53 const std::string&codecName,
54 const std::string& deviceType,
55 const std::string& codecOptions,
56 const std::string& codecParams
63 if (codecOptions !=
"")
65 end = codecOptions.find(delimiter);
66 while (end != std::string::npos) {
67 std::string temp = codecOptions.substr(start, end - start);
68 size_t end_temp = temp.find(
'=');
69 std::string key = temp.substr(0, end_temp);
70 std::string value = temp.substr(end_temp+1, temp.length() - end_temp);
71 codecOptions_[key] = value;
73 end = codecOptions.find(delimiter, start);
75 std::string temp = codecOptions.substr(start);
76 size_t end_temp = temp.find(
'=', 0);
77 codecOptions_[temp.substr(0, end_temp)] = temp.substr(end_temp+1, temp.length() - end_temp);
80 if (codecParams ==
"")
82 codecParamsEnabler_ =
"";
83 codecParamsValues_ =
"";
90 end = codecParams.find(delimiter);
91 codecParamsEnabler_ = codecParams.substr(start, end - start);
102 if (codecParams.find(
'+', end+1) != std::string::npos)
106 end = codecParams.find(delimiter, start);
107 std::string params_temp =
"";
108 while (end != std::string::npos) {
109 params_temp += codecParams.substr(start, end - start)+
",";
111 end = codecParams.find(delimiter, start);
113 params_temp += codecParams.substr(start, codecParams.length() - start);
115 codecParamsValues_ = params_temp;
117 codecParamsValues_ = codecParams.substr(end+1, codecParams.length() - end);