Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video cannot be loaded #1310

Open
GammaPi opened this issue Jun 7, 2019 · 13 comments
Open

Video cannot be loaded #1310

GammaPi opened this issue Jun 7, 2019 · 13 comments

Comments

@GammaPi
Copy link

GammaPi commented Jun 7, 2019

Video I upload cannot be played on tusky。
1.upload a video
2.open it in browser and play it (it can be played)
3.open tusky and play it (infinite loading, but if you download the video you can view it)


  • Tusky Version:7.1
  • Android Version:9.0
  • Android Device:Huawei Honor V20
  • Mastodon instance (if applicable):2.8.4
@GammaPi
Copy link
Author

GammaPi commented Jun 7, 2019

Video upload and preview is normal~

@y6nH
Copy link

y6nH commented Nov 20, 2019

I often get unplayable videos on Tusky. I understand that maybe my device doesn't have the codecs, but the problem is that the video player looks like this:
Screenshot_2019-11-15-08-22-09
... and pressing the unmarked button does nothing: there's no way to get out of this screen except by killing the app.

This is on an old-ish Samsung phone.

@JohnySeven
Copy link

Same here, Samsung Galaxy Note S10 Lite Android 12. I see it's old issue.

@venthewolf
Copy link

Have the same behavior on my OnePlus 9 pro.
Running the latest beta version

@baldand
Copy link

baldand commented Dec 4, 2022

Similar error here. No videos can be played.
Tusky v20.0
Samsung A70, Android 11.
Downloading a video allows it to be played with system video player.

@Tarmil
Copy link

Tarmil commented Dec 22, 2022

I've never managed to play a single video in Tusky; I always get the same pop-up as @y6nH. I can press the button to exit it though.

Tusky 20.0, Pixel 7 Pro, Android 13.

@sequent5
Copy link

sequent5 commented Jan 8, 2023

same playback error on Samsung Galaxy S10

@Xavienth
Copy link

Same error. Gifs seem to work but never videos. I can exit the dialogue but only by hitting OK, never the system back button. This issue has annoyed me ever since i installed the app in November.

Tusky 20.0 Samsung Galaxy A50 Android 11

@nikclayton
Copy link
Contributor

Can you report which server you're seeing this problem on?

We discovered an issue in video playback if the video is coming from a GoToSocial server, superseriousbusiness/gotosocial#1342

@sequent5
Copy link

Can you report which server you're seeing this problem on?

We discovered an issue in video playback if the video is coming from a GoToSocial server, superseriousbusiness/gotosocial#1342

For my case, I use a self-hosting mastodon server in my homelab.

@tsmethurst
Copy link
Contributor

In GtS the issue was Range header not being handled correctly when included in requests from Tusky.

If you're self-hosting, might be worth checking your reverse proxy is handling Range properly and not throwing the header away or anything like that.

@sequent5
Copy link

In GtS the issue was Range header not being handled correctly when included in requests from Tusky.

If you're self-hosting, might be worth checking your reverse proxy is handling Range properly and not throwing the header away or anything like that.

You are right, add a header "proxy_force_ranges on" will solve my android video playback problem, thanks you.
I found the solution in this topic: mastodon/mastodon#15872, I copy nginx config here:
location @Proxy {
...
proxy_pass http://backend;
proxy_buffering on;
proxy_redirect off;
proxy_http_version 1.1;
proxy_force_ranges on;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
...
}

@nikclayton
Copy link
Contributor

Note to self: this can probably be detected by Tusky, and a warning can be shown, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests#checking_if_a_server_supports_partial_requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants