Back

Something wrong with playing the video from Appwrite storage in appwrite

  • 0
  • Self Hosted
  • Storage
Mosh Ontong
31 Aug, 2024, 17:11

Now, trying to play the video from appwrite:

TypeScript
  player.open(
      Media(
          "http://178.128.120.48/v1/storage/buckets/65d16fe863975f4dc588/files/66d3416b79c3a12462e9/view?project=65c5df06933e47ebdec4&mode=admin"
          // "https://pixeldrain.com/api/file/n4qUcfEb"
          // AppwriteClient.getUrl(
          //   bucketId: attachment.bucketId,
          //   fileID: attachment.id,
          // ),
          // httpHeaders: {
          //   "x-appwrite-jwt": attachment.token,
          // },
          ),
      play: false,
    );

If you try to observe the video, trying to jump a specific duration but it seems it failed to load

TL;DR
Developers are experiencing issues playing videos from Appwrite storage in their applications despite trying different video player packages. The problem seems to be related to content-length and Appwrite storage returning incorrect parts of the file. A potential workaround is to specify the content-range. One developer believes the issue might be with Appwrite storage having bugs. The error persists when playing videos on a custom domain or self-hosted setup. The issue has been logged on GitHub for further investigation.
Mosh Ontong
31 Aug, 2024, 17:11

Got an error on docker logs

Mosh Ontong
31 Aug, 2024, 17:11

actually I did not use a custom domain on my self hosted

Joshi
31 Aug, 2024, 17:11

Oh wait this is the storage service yes?

Joshi
31 Aug, 2024, 17:12

Happens on custom domain(function) and storage

Mosh Ontong
31 Aug, 2024, 17:12

Recently I blame the package I use but, I curious if I am trying to play a video that is long duration and not from appwrite. ANd I saw that there is no wrong in package because it plays well

Mosh Ontong
31 Aug, 2024, 17:12

Appwrite Storage seems has bugs

Mosh Ontong
31 Aug, 2024, 17:12

yes

Joshi
31 Aug, 2024, 17:13

Does the package rely on content-length?

Joshi
31 Aug, 2024, 17:13

What package is it

Mosh Ontong
31 Aug, 2024, 17:14
Mosh Ontong
31 Aug, 2024, 17:14

This one

Mosh Ontong
31 Aug, 2024, 17:17

Played the video on web and the warning in docker still occured

Mosh Ontong
31 Aug, 2024, 17:17

I dont kno what could be the issue here actually.

Joshi
31 Aug, 2024, 17:17

I'll save this thread for later

Joshi
31 Aug, 2024, 17:17

I have made similiar experiences

Mosh Ontong
31 Aug, 2024, 17:17

alrights thank you @Joshi

Joshi
31 Aug, 2024, 17:17

Can you do me a favor and try other packages and then tell me if the issue persist there as well

Joshi
31 Aug, 2024, 17:18

I think appwrite storage does return the proper parts of the file when you specify the content-range

Joshi
31 Aug, 2024, 17:18

but from my testing it still does not play properly sometimes idk why

Joshi
31 Aug, 2024, 17:19

Good to know I'm not alone

Mosh Ontong
31 Aug, 2024, 17:21

will do that

Mosh Ontong
31 Aug, 2024, 17:30
Mosh Ontong
31 Aug, 2024, 17:50

I just fixed it, I used video player , chewie, and video_player_win

Mosh Ontong
31 Aug, 2024, 17:50

and yeah it goes well

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more