tommyxchow / frosty

A mobile Twitch client for iOS and Android with 7TV, BetterTTV (BTTV), and FrankerFaceZ (FFZ) support.
https://frostyapp.io
GNU Affero General Public License v3.0
672 stars 39 forks source link

Video freeze? #264

Open AndreasFromDanmark opened 1 year ago

AndreasFromDanmark commented 1 year ago

Describe the bug When i opening a stream on the app, it just freeze after a few seconds, and i already tried to clear data and cache for the app. And i dont think reinstalling the app will help.

To Reproduce Steps to reproduce the behavior:

  1. Open Frosty
  2. Click on stream
  3. Video freeze after a few seconds

Smartphone (please complete the following information):

rankn1ne commented 1 year ago

Same issue here. It started a week ago.

Smartphone (please complete the following information):

Device: [Oneplus 7] OS: [Android 12] App Version: [v3.1.1 (37)]

saisarandarbha commented 1 year ago

Describe the bug When i opening a stream on the app, it just freeze after a few seconds, and i already tried to clear data and cache for the app. And i dont think reinstalling the app will help.

To Reproduce Steps to reproduce the behavior:

  1. Open Frosty
  2. Click on stream
  3. Video freeze after a few seconds

Smartphone (please complete the following information):

  • Device: [Oneplus 8 Pros]
  • OS: [Android 13]
  • App Version: [v3.1.1 (37)]

I am facing the same issue from couple of weeks now. Device: Oneplus 8 pro Os: Android 12 App version: v3.1.1

tommyxchow commented 1 year ago

Strange...sadly I couldn't reproduce this on my devices and emulator.

From here, it's really hard to tell exactly what could be causing it. Twitch often randomly updates its services which may cause side effects like this in the Frosty player.

I recently released v3.1.2 with a couple of other improvements/fixes. Could you verify if it managed to get fixed in that version?

AndreasFromDanmark commented 1 year ago

@tommyxchow I did update to v3.1.3, and the video still freeze

saisarandarbha commented 1 year ago

The video is still experiencing freezing issues. I believe I have identified the problem. When I begin streaming, the video quality initially starts at a low setting and gradually adjusts to a higher quality. However, during this process, the video freezes while the audio continues to play. The playback resumes only when I minimize the application and reopen it. (Minimizing often triggers the picture-in-picture mode, although sometimes it does not.) Nevertheless, minimizing and reopening the app resolves the playback problem.

I hope my explanation clarifies the issue. I have attached a video demonstrating the screen recording for reference.

https://github.com/tommyxchow/frosty/assets/36182875/b1be314e-80b1-4859-8a9c-2f05f65792ae

Bluewoofz commented 1 year ago

Hello, I've noticed this issue myself also, and I can confirm it appears to be an issue with the auto video quality. You can see right when it freezes that it updates the quality. What I also noticed is if you use the desktop UI, the video will freeze when it is on the auto quality option, but if you manually set the quality before it can auto update when opening the stream, it will not freeze.

tommyxchow commented 1 year ago

Hey all, apologies for the delayed response. I've been hearing quite a few reports about this issue but sadly I still can't find a way to reproduce it across my or my friends' own Android devices yet (Pixel 7 and OnePlus N200). Due to this, it's quite difficult to get to the root of the issue.

Can someone try downloading any version of Frosty before v3.1.1 and see if the freezing still occurs there too? For example, the APK for v3.1.0 (under the "Assets" dropdown). The reasoning is that I want to confirm if there was a side effect from the changes in v3.1.1 causing the freezes.

AndreasFromDanmark commented 1 year ago

@tommyxchow

I did just test with the APK 3.1.0, and its doing the same thing on my oneplus 8 pro. 🤔

tommyxchow commented 1 year ago

@tommyxchow

I did just test with the APK 3.1.0, and its doing the same thing on my oneplus 8 pro. 🤔

Oof...then my closest guess is that Twitch may have made a change/bug sometime last month to their web player that prevents it from playing properly on certain devices (maybe on higher-end OnePlus devices as seen in this thread here, but that would be very weird).

For context if missing, the stream video player in Frosty is basically the Twitch website in fullscreen mode (example with overlay and without overlay). It's a scuffed workaround, but the only really viable method because Twitch doesn't let developers access the actual raw live stream links through their API.

AFAIK, Chatsen uses the same method for their player - could you see if the same issue is there as well? If it's fixed there, I recommend using it in the meanwhile.

AndreasFromDanmark commented 1 year ago

@tommyxchow

Do you use any custom launcher? Like (Nova Launcher) 🤔

Can the Twitch app go in and block something in Frosty app?

Plushfire5 commented 1 year ago

I also tested 3.1.0 on my Realme GT Neo 2 and it freezes as well. It's been freezing for a while, if you need any info to help solve the issue I'd be glad to help.

ElReyZero commented 1 year ago

@tommyxchow

It happens as well with my OnePlus 8 with Android 13.

The app Chatsen also happens to have the same issue when switching resolutions with the automatic res setting.

On another note, I ran a Flutter debug session in my own environment and from the looks of it, it seems to be something with the underlying chromium layer of the webview component. Here's a pastebin of the entire logs when the freeze happens: https://pastebin.com/gugnzfsm

PS: Seems to also happen on chromium embedded services on some mobile browsers with oneplus devices, I found a similar behavior described in this post: https://community.oneplus.com/thread/1498072

It said that it resolved the issues by disabling some chrome flags but I haven't seem to be able to disable them in the app's code.

AndreasFromDanmark commented 1 year ago

Any fixes?

JerPete commented 8 months ago

Hi, I found a small bug the stream is freezing only when streaming at a 936 / 60 bitrate, if I adjust the bitrate to 720 it's fine.

dilpicks commented 4 months ago

Is everyone only experiencing video freezing when using the Frosty app, or is anyone also noticing it when using the Twitch app on other devices while having a chat in Frosty open?

I've been having this issue when I watch a stream on my Apple TV using the Twitch app and have a chat open in Frosty for iOS. The stream video freezes for 3+ seconds. I tested this on multiple devices within my local network, and the moment I open chat in Frosty the stream I'm watching almost immediately freezes no matter the device or method I'm using to watch Twitch. It's happens everytime.

Anyone else seeing this?

JerPete commented 4 months ago

Hi

I'm using the frosty app on android, it's only one streamer I watch that uses that bitrate which seems to make it freeze, i have to set it to 720p manually to watch.

Thanks

On Thu, 16 May 2024, 09:36 Kyle McClain, @.***> wrote:

On what app are you all watching the video? Is this in the Twitch app for iOS, on another device, or Frosty itself?

— Reply to this email directly, view it on GitHub https://github.com/tommyxchow/frosty/issues/264#issuecomment-2114499211, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2L45FIAZ4USZNI7RZBH6WDZCRV2VAVCNFSM6AAAAAAYMPGN4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJUGQ4TSMRRGE . You are receiving this because you commented.Message ID: @.***>