VideoViewRenderer' 不包含 'Init' 的定义

问题描述

我需要通过从用户那里获取 URL 输入来在 Xamarin Forms 中播放视频。我使用了 plugin.mediamanager.forms。我收到以下错误“'VideoVieWrenderer' 不包含 'Init' 的定义......我在这里做的错误是什么?

解决方法

检查如何初始化类:
https://github.com/Baseflow/XamarinMediaManager#important-initialize-plugin

确保在应用启动时在所有原生平台中调用 Init()。

CrossMediaManager.Current.Init();