Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Directly playing onedrive transcoded video? #589

Open
DogTorrent opened this issue Apr 7, 2022 · 2 comments
Open

Directly playing onedrive transcoded video? #589

DogTorrent opened this issue Apr 7, 2022 · 2 comments
Labels
feature request New feature or request

Comments

@DogTorrent
Copy link
Contributor

Onedrive will transcode the video for online preview playback. Is it possible to support the playback of hevc video and multi-resolution switching in this way?
onedrive会把视频转码以供在线预览播放,可否用这种方式支持hevc/h265的播放以及多分辨率切换?

@spencerwooo spencerwooo added the feature request New feature or request label Apr 7, 2022
@spencerwooo
Copy link
Owner

Any docs supporting this? Does OneDrive API provide direct links to these transcoded videos?

@DogTorrent
Copy link
Contributor Author

DogTorrent commented Apr 7, 2022

Any docs supporting this? Does OneDrive API provide direct links to these transcoded videos?

看了下其他issue貌似是国人,那我说中文好了...

查了下文档没有看到相关的api,但是我找到有其他onedrive index的相关实现 https://github.com/avedu/oneindex/blob/master/view/material/show/video2.php ,虽然有点老,而且有点hack

大概就是把/tramsform/thumbnail的请求路径改成/tramsform/videomanifest,其他原封不动然后加上 &part=index&format=dash&useScf=True&pretranscode=0&transcodeahead=0&action=Access&altTranscode=1 这些参数(我也没一个个试哪些需要哪些不需要),就可以拿到一个dash响应,这一步我试了一下是可以的,后续是否需要别的鉴权我就不太清楚了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants