<commit_before>---
layout: post
title: Custom UI example
weight: 6
category: player-api
categoryItemType: example
categoryItemIsShown: 1
categoryItemWidth:
categoryItemDescription:
categoryItemLabel:
---


<article>
	<section class="intro">
		<h3>Custom UI example</h3>

		<p>This example demonstrates how you can build a custom UI based on our API calls.</p>
		<p>There are some important technical informations about a custom UI implementation:</p>

		<ul>
			<li>there is no progress event from the player, so you should query the progress periodically (using the
				`playing` event to decrease query number can increase the performance)</li>
			<li>`progress` and `duration` is in seconds, so every percentage related progress data (like a seekbar) should be
				calculated from this two data
			</li>
			<li>if you would like to build a full custom UI on the player, use the `controls=false&showTitle=false` url<commit_msg>player api custom ui page change<commit_after>---
layout: post
title: Custom UI example
weight: 6
category: player-api
categoryItemType: example
categoryItemIsShown: 1
categoryItemWidth:
categoryItemDescription:
categoryItemLabel:
---


<article>
	<section class="intro">
		<h3>Custom UI example</h3>

		<p>This example demonstrates how you can build a custom UI based on our API calls.</p>
		<p>There are some important technical informations about a custom UI implementation:</p>

		<ul>
			<li>there is no progress event from the player, so you should query the progress periodically (using the
				`playing` event to disable unnecessary querying will increase performance)</li>
			<li>`progress` and `duration` is in seconds, so every percentage related progress data (like a seekbar) should be
				calculated from this two data
			</li>
			<li>if you would like to build a full custom UI on the player, use the `controls=false&showTitle=false` url
{'fraction_non_alphanumeric': 0.07974481658692185, 'fraction_numerical': 0.004253056884635832, 'mean_word_length': 4.651651651651652, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '353379', 'n_tokens_mistral': 562, 'n_tokens_neox': 503, 'n_words': 239}