<commit_before>---
layout: page
title: Android TracksManager
subcat: Android
weight: 355
---

## This article describes how to select different tracks in the stream.

- There are 3 TrackTypes defined
	* VIDEO
	* AUDIO
	* TEXT

## There are 2 options to work with the Tracks in the SDK

1. Using the HTML5 web view menus:
	In this case the selection is done from the web layer using the tracks plugins

2. Using native menus:
   In this case it is possible implement 
     * KTrackActions.EventListener
     * KTrackActions.VideoTrackEventListener
     * KTrackActions.AudioTrackEventListener
     * KTrackActions.TextTrackEventListener
    
## Adding/Removing Listeners 
     
 In player creation phase need to add a call to  set/removed for each event listenesr that you wish to receive on runtime:
   
   	 //Add
   	 mPlayer.setTracksEventListener(this); // for a change in the tracks list om media switching<commit_msg>Update Android-TracksManager.md<commit_after>---
layout: page
title: Android TracksManager
subcat: Android
weight: 380
---

## This article describes how to select different tracks in the stream.

- There are 3 TrackTypes defined
	* VIDEO
	* AUDIO
	* TEXT

## There are 2 options to work with the Tracks in the SDK

1. Using the HTML5 web view menus:
	In this case the selection is done from the web layer using the tracks plugins

2. Using native menus:
   In this case it is possible implement 
     * KTrackActions.EventListener
     * KTrackActions.VideoTrackEventListener
     * KTrackActions.AudioTrackEventListener
     * KTrackActions.TextTrackEventListener
    
## Adding/Removing Listeners 
     
 In player creation phase need to add a call to  set/removed for each event listenesr that you wish to receive on runtime:
   
   	 //Add
   	 mPlayer.setTracksEventListener(this); // for a change in the tracks list om media switching
{'fraction_non_alphanumeric': 0.05150214592274678, 'fraction_numerical': 0.008583690987124463, 'mean_word_length': 3.4404761904761907, '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': '4440605', 'n_tokens_mistral': 514, 'n_tokens_neox': 493, 'n_words': 228}