xamarin.formsxamarin.essentialsxamarin-community-toolkit

Xamarin Forms: How to use Embedded Videos from local forlder?


I've tried looking for a solution but I cannot find one everyone seems to be using online sources and no one actually shows how to use videos from the local folder.

I want to have a folder under Assets for Android and Resources for iOS called Videos and store all necessary videos there. I don't have a clue how to access them tho to add to my source for MideaElement from Xamarin Community Toolkit.

I found a solution for embedded images but it doesn't work the same for videos. YouTube Video

IDK if they need to be embedded or not, or can I just access them with a relative path of sort?

I've read the documentation for MediaElement and their local way of access videos but I do not understand it with thing like ms-appx:/// & ms-appdata:/// where do they point to? where do I put my own resources? how do I use that to access my own resource? So many questions but 0 answers.

This is the documentation on MediaElement.

Thanks in advance :)


Solution

  • The docs you link to explain exactly where to place the files on each platform