# how to show web videocall filter into mobile?, i have added allowed filter but its not working..

**URL:** <https://openvidu.discourse.group/t/how-to-show-web-videocall-filter-into-mobile-i-have-added-allowed-filter-but-its-not-working/4524>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [April 5, 2023, 2:08pm UTC](https://openvidu.discourse.group/t/how-to-show-web-videocall-filter-into-mobile-i-have-added-allowed-filter-but-its-not-working/4524 "2023-04-05T14:08:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal\_Aditia\_Muclis](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pascal_aditia_muclis/32/2152_2.png) [@Pascal\_Aditia\_Muclis](https://openvidu.discourse.group/u/Pascal_Aditia_Muclis)\
**Post date:** [April 5, 2023, 2:08pm UTC](https://openvidu.discourse.group/t/how-to-show-web-videocall-filter-into-mobile-i-have-added-allowed-filter-but-its-not-working/4524/1 "2023-04-05T14:08:43Z")

</div>

Future createWebRtcToken({@required String sessionId, String role = ‘MODERATOR’}){

```
final Map<String, dynamic> modelKurentoOption = <String, dynamic>{
  'allowedFilters': ["GStreamerFilter", "ZBarFilter"],
};
final Map<String, dynamic> bodyMap = <String, dynamic>{
  'session': sessionId,
  'data': '',
  'role': "MODERATOR",
  "kurentoOptions": modelKurentoOption,
};

final Map<String, dynamic> headersMap =
<String, dynamic>{
  'Authorization': 'Basic ${base64Encode(utf8.encode('OPENVIDUAPP:$_secret'))}'
};
return ApiClient().request<Map<String, dynamic>>(Config(
  uri: Uri.parse('https://$_url/api/tokens'),
  headers: headersMap,
  body: RequestBody.json(bodyMap),
  method: RequestMethod.post,
  responseType: ResponseBody.json()
)).then((Map<String, dynamic> jsonResponse) {
  print('◤◢◤◢◤◢◤◢◤◢◤ Create WebRTC token POST response: $jsonResponse ◤◢◤◢◤◢◤◢◤◢◤');
  token = jsonResponse['token'];
  return token;
});

```

}

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [April 10, 2023, 8:37am UTC](https://openvidu.discourse.group/t/how-to-show-web-videocall-filter-into-mobile-i-have-added-allowed-filter-but-its-not-working/4524/2 "2023-04-10T08:37:26Z")

</div>

1. You are using the old deprecated API of tokens. Use the modern [Connection API](https://docs.openvidu.io/en/2.26.0/reference-docs/REST-API/#the-connection-object)
2. Creating a Connection with the permisions to use filters is just the first step to actually enable a server-side filter. You must call the client method to enable it. Read the filter documentation: [Voice and video filters - OpenVidu Docs](https://docs.openvidu.io/en/2.26.0/advanced-features/filters/)
