XamVideoPlayer icon indicating copy to clipboard operation
XamVideoPlayer copied to clipboard

No video was played

Open shinriyo opened this issue 9 years ago • 5 comments

Hello. I think it is the best plugin of Xamain. However, it can't play video.

I added README xaml and modified x:Class= as my project. and added VideoPlayerViewModel like your sample. And I added NSAppTransportSecurity in my Info.plist.

However, no video was shown. Could you help? screen shot 2016-07-22 at 8 33 01 am

shinriyo avatar Jul 21 '16 23:07 shinriyo

Does the sample work for you?

ravensorb avatar Jul 31 '16 20:07 ravensorb

@ravensorb Thank you for replying. It doesn't work for me. only button was shown. but, never played video.

shinriyo avatar Aug 02 '16 01:08 shinriyo

Does the VideoPlayer currently works in iOS? The custom renderer does not seem to get called, and I am also not seeing the video control on iPad. .... I did get it to work later, but have to copy the VideoPlayerRenderer.cs from the Xam.Plugins.VideoPlayer.IOS project to the iOS project in my main application for the renderer to be called by Xamarin.

digitalutility avatar Aug 25 '16 21:08 digitalutility

I solved that doing this in AppDelegate.cs x = typeof(Xam.Plugins.VideoPlayer.iOS.VideoPlayerRenderer);

it's something about the linker....

There should be a Init method like all the other plugins and call it

VideoPlayer.Init()

and in the Init

Something like this

public static void Init()
{
    var time = DateTime.UtcNow;
}

This is how it's implemented in the Forms.Toolkit Plugin

https://github.com/jamesmontemagno/xamarin.forms-toolkit/blob/master/FormsToolkit/FormsToolkit.iOS/Toolkit.cs

https://github.com/jamesmontemagno/xamarin.forms-toolkit/blob/master/FormsToolkit/FormsToolkit/Converters/InvertedBooleanConverter.cs

jjchiw avatar Sep 15 '16 18:09 jjchiw

Hmm, good thought. I'll look at adding that.

Note: There is another component that looks like it is being more actively maintained that might be worth looking at: https://github.com/martijn00/XamarinMediaManager

ravensorb avatar Aug 01 '17 10:08 ravensorb