cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hls video streaming - m3u access?

hls video streaming - m3u access?

Minecraft Demon
Helpful | Level 6
Go to solution

Hi, I’m creating a Python API using FastAPI and Dropbox SDK. I’m trying to get a streamable video link similar to what Dropbox uses in their player (https://previews.dropbox.com/p/hls_master_playlist/...), but Dropbox's files_get_temporary_link method refuses to stream video directly in the web browser (it triggers a download instead).

Is there a method in the Dropbox SDK or another way to stream video directly in a browser?

1 Accepted Solution

Accepted Solutions

Minecraft Demon
Helpful | Level 6
Go to solution

 

Peter N said the same thing in 2015: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Video-HLS-and-Different-formats/td-p/15...

 

Riderc1 said the same thing in 2018: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-streaming-m3u-access/m-p/285274

 

And now I am saying same thing in 2024. Is there any development in this area (2015-2024)?

View solution in original post

8 Replies 8

Minecraft Demon
Helpful | Level 6
Go to solution

when i hit POST :: https://www.dropbox.com/2/previews/get_preview_data_batch

 

--------------------------- Response ---------------------------
Error in call to API function "previews/get_preview_data_batch": Your app is not permitted to access this endpoint because it does not have the required scope 'private:files.metadata.read'. The owner of the app can enable the scope for the app using the Permissions tab on the App Console.
----------------------------------------------------------------------


There is no option 'private:files.metadata.read' like this in console. There is 'files.content.read' which is already check, not only that all Individual Scopes option is checked. Question is how to enable 'private:files.metadata.read'? where can i find this?

harrydbx
Dropbox Engineer
Go to solution

Hi, I'm an engineer that works on Dropbox video previews. If you create a shared link to a file, you can access the raw video file for embedding by replacing the `&dl=0` in the shared link with `&raw=1`. See this demo link and previous discussion. Thanks for posting on the forum!

Minecraft Demon
Helpful | Level 6
Go to solution

Thanking you for your reply.

I have used this method long time ago. and this method come with a big limitation, after some request link become temperary unavailable due to dropbox basic plan limit. 
''The bandwidth limit for Dropbox Basic is 20 GB per day. Dropbox Basic accounts can also download up to 100,000 files per day.''

This is annoying. I want to somthing like m3u8 file as dropbox use in there player (I have seen in network tab).

 

Thanking you again 😊

Minecraft Demon
Helpful | Level 6
Go to solution

👉 And Don't Forget to Answer this Question, Please👈

 

When I Hit POST Request :: https://www.dropbox.com/2/previews/get_preview_data_batch

 

--------------------------- Response ---------------------------
Error in call to API function "previews/get_preview_data_batch": Your app is not permitted to access this endpoint because it does not have the required scope 'private:files.metadata.read'. The owner of the app can enable the scope for the app using the Permissions tab on the App Console.
----------------------------------------------------------------------


There is no option 'private:files.metadata.read' like this in console. There is 'files.content.read' which is already check, not only that all Individual Scopes option is checked. Question is how to enable 'private:files.metadata.read'? where can i find this?

Greg-DB
Dropbox Staff
Go to solution

@Minecraft Demon That URL and corresponding scope are not part of the public Dropbox API and so are not available for use by third party apps. I'll pass this along as a feature request for functionality like this on the public API, but I can't promise if or when that might be offered.

 

You can find all of the functionality currently available on the public API for use by third party apps in the public API documentation, and likewise in the Python SDK documentation.

 

For example, to create a shared link, such as for use with the technique Harry mentioned, you could call /2/sharing/create_shared_link_with_settings, which is available via the sharing_create_shared_link_with_settings method in the Python SDK.

Minecraft Demon
Helpful | Level 6
Go to solution

Unfortunately, I can't find a solution in this thread :disappointed_relieved:

Minecraft Demon
Helpful | Level 6
Go to solution

 

Peter N said the same thing in 2015: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Video-HLS-and-Different-formats/td-p/15...

 

Riderc1 said the same thing in 2018: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-streaming-m3u-access/m-p/285274

 

And now I am saying same thing in 2024. Is there any development in this area (2015-2024)?

Greg-DB
Dropbox Staff
Go to solution

@Minecraft Demon No, I don't have an update on this feature request.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Minecraft Demon Helpful | Level 6
What do Dropbox user levels mean?