bambuser / BambuserPlayerSDK-Android

This project demonstrates how is the integration of Bambuser's Player SDK in an native Android application
Apache License 2.0
1 stars 1 forks source link

Android not responding when video is loading #29

Open SergioPoq opened 2 months ago

SergioPoq commented 2 months ago

When the video is loading, I get an ANR (Android is not responding). I am using version 1.3.2

Screenshot 2024-09-11 at 12 10 00
zeyadsadaqa commented 2 months ago

Hello Sergio! Does this ANR also happen when you open the same video from the demo app? If yes can you provide the showId

SergioPoq commented 2 months ago

This is the show id PFBcAdyRXSa0B7N4meCg

zeyadsadaqa commented 2 months ago

I see no problem opening this video with the demo app, is this always happening when you integrate the SDK and try to open the LVSPlayerActivity? Can you share what configuration you are initiating the SDK with?

SergioPoq commented 2 months ago

This is my Configuration

Configuration(
    isEUServer =  false,
    showHighlightedProducts = true,
    showChat = true,
    showProductsOnEndCurtain = true,
    enablePictureInPicture = true,
    enableProductDetailsPage = false,
    showShoppingCart = false,
    showLikes = true,
    showNumberOfViewers = true,
)

The easiest way I found to replicate it is to open the video, reduce the connection type to something slower, such as EDGE, (you can do this on the emulator) and move the playback back and forward, the UI starts to go slower until something takes longer than 5 seconds.

To me it looks like some loading is happening on the UI thread

zeyadsadaqa commented 2 months ago

It seems like an edge case could be related to our core media player libraries in emitting the change on the seek bar. We might need to look at it deeply and address it. Is it a blocker issue for your usecase?

SergioPoq commented 2 months ago

No, this is not a blocker