Amazon TV ошибка модерации приложения
Есть приложение для просмотра онлайн ТВ (Android studio + Java). Есть версия приложения для андроид ТВ (работает нормально), а есть для Амазон ТВ (другая платежная система) код почти идентичен. С версией для Амазон ТВ есть проблема при переходу в спящий режим.
В приложении использую (activity + fragments) для воспроизведения видео - exoplayer.
При модерацию приложения в Амазоне получаю такую ошибку для 3-х устройств (для остальных все норм).
FireTV-24- Media: Returning to the app from Sleep (System Standby) mode causes inconsistent behavior resulting in a negative user experience - Remote and Gamepad
Steps to reproduce:
1. Install and launch the app
2. Play any video
3. Long press Home button to invoke HUD (Heads UP Display) overlay
4. Select Sleep to put the device to Sleep mode
5. Select any button to come out of sleep mode and relaunch the app
Actual Result: Observes App running in back when device is in sleep mode.
Expected Result: App should not run in back while device is in sleep mode.
-
часть кода:
activity
@Overrideprotected void onStop() {
super.onStop();
try {
pauseVideo();
}catch (Exception e){}
}
public void pauseVideo() {Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.container);
if (fragment instanceof PlayerFragment) {
((PlayerFragment) fragment).pauseVideo();
}
}
——————
PlayerFragment
public void pauseVideo(){try {
player.setPlayWhenReady(false);
player.getPlaybackState();
}catch (Exception e){}
}
-
Current freelance projects in the category Java
Customization of the loading screen and menu for Minecraft 1.12.2 (Tech Survival)
20 USD
Need to refine the ready client Minecraft 1.12.2 with mods and implement a custom interface design in the style of technical survival (Industrial / Tech Survival).What needs to be done1. Custom mod loading screen It is necessary to replace the standard Minecraft/Forge loading… Java, Gaming Apps ∙ 3 days 19 hours back ∙ 6 proposals |
Integration of dental scanner modules into CRM
602 USD
We have developed a CRM system for interaction with dentists and laboratories. It is necessary to integrate services like iTero, Sirona, Medit, and others so that files are pulled automatically. AI & Machine Learning, Java ∙ 3 days 19 hours back ∙ 27 proposals |
Development of simple 2D games (Snake, Galaxy, etc.) for Google Play MarketHello! I am looking for a developer (or a beginner with a good foundation) who can create several simple classic 2D games for the Android mobile platform with subsequent publication in the Play Market.To start, one or two games need to be developed. Examples of settings and… Java, Gaming Apps ∙ 5 days 23 hours back ∙ 19 proposals |
Application developmentI wish to create a mobile application for communication, the app should have audio and video calls, group chat creation, the ability to sync with phone contacts, account settings: email binding, 2FA, phone number, the ability to customize app notifications, change the app… Java, Python ∙ 10 days 17 hours back ∙ 41 proposals |