Howto host Vimeo videos on Xamarin forms?

血红的双手。 提交于 2019-12-23 05:17:50

问题


How do I get Xamarin mobile app to host vimeo video playback? While I found how to play video in Xamarin, I cannot see how to do this for Vimeo?


回答1:


ill expand on how i've done this for a xamarin forms app.

ie. video url: https://vimeo.com/135727591

use the following to get the config info

https://player.vimeo.com/video/{VideoId}/config

so take video id and get the config using the following:

https://player.vimeo.com/video/135727591/config

now parse the config file from the json received




回答2:


you need to de-code the initial url to pull the real path the the mp4 file.



来源:https://stackoverflow.com/questions/50947566/howto-host-vimeo-videos-on-xamarin-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!