<commit_before>---
layout: page
title: iOS Google Cast Subtitles Support
subcat: iOS
weight: 240
---

This article describes how to set/ switch subtitles on when casting to Chromecast device.

## Get Subtitles

### Make sure you impliment **KCastProviderDelegate** 

To get subtitles dictionary you should impliment the following delegate method:

```objective_c    <commit_msg>Update iOS-GoogleCastSubtitlesSupport.md<commit_after>---
layout: page
title: iOS Google Cast Subtitles Support
subcat: SDK Version 2.0
subcat: iOS
weight: 240
---

This article describes how to set/ switch subtitles on when casting to Chromecast device.

## Get Subtitles

### Make sure you impliment **KCastProviderDelegate** 

To get subtitles dictionary you should impliment the following delegate method:

```objective_c    
{'fraction_non_alphanumeric': 0.07434944237918216, 'fraction_numerical': 0.009913258983890954, 'mean_word_length': 4.7304964539007095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6817952', 'n_tokens_mistral': 238, 'n_tokens_neox': 223, 'n_words': 97}