XamVideoPlayer icon indicating copy to clipboard operation
XamVideoPlayer copied to clipboard

VideoSource for local files

Open AlessandroDelSole opened this issue 9 years ago • 3 comments

Hi, I love your plugin but I'm unable to play local videos. I see I can play videos via http, but how can I play say an embedded video? Any examples about that? I have an app that must work offline and therefore must bring its own videos. Thanks!

AlessandroDelSole avatar Aug 12 '16 12:08 AlessandroDelSole

Hi, for Droid try to set property VideoSource="android.resource://nameproject.Droid/raw/video1" and video1.mp4 put to solution\nameproject.Droid\Resources\raw\video1.mp4

odrowonz avatar Aug 15 '16 11:08 odrowonz

I did not get to play video from /data/user/0/nameproject.Droid/files/video1.mp4 Any idea?

odrowonz avatar Aug 15 '16 11:08 odrowonz

Have you enabled it from a security perspective? And I think the file url format is a bit different for local content.

Note: This plugin in may be of help (it is more actively maintained right now) - https://github.com/martijn00/XamarinMediaManager

ravensorb avatar Aug 01 '17 10:08 ravensorb