0

I'm using Plugin.CrossMediaManager(Current version) to play VDO or mp3 files. Try to use URL from local website (IIS) to play them.

I have learned how to use this component and I have set all necessary things. - Give necessary code to where native platform start. I have tried with URL form public website: Link to website.

It works well, but when I downloaded that file and copy it into my website (IIS) I can't play it.

This works:

CrossMediaManager.Current.Play("https://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4"); 

But yhis doesn't work:

CrossMediaManager.Current.Play("http://192.168.220.110:1113/SampleVideo_1280x720_1mb.mp4");
  • Thanks for editing my post and sorry for my bad. – Siwaphat Boonbangyang May 21 '19 at 04:59
  • are your sure that local url is reachable from your device/emulator? If you try to load it in the device webbrowser is it reachable? – Jason May 21 '19 at 05:13
  • Yes I'm sure that. I have tested in both of actual device and emulator by opening browser and it is reachable. – Siwaphat Boonbangyang May 21 '19 at 05:50
  • It seems I can use only URL that has https. I'm trying both of having http URL and not having URL and both of them are public. – Siwaphat Boonbangyang May 21 '19 at 09:48
  • Are you testing on an iOS device? If so, pay attention to the [ATS](https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/ats#configuring-ats-options), add the `NSAllowsArbitraryLoads` key to `info.plist` to disable ATS for all domains and internet communication. – nevermore May 22 '19 at 01:44

0 Answers0