protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            mWXSDKInstance = new WXSDKInstance(this);
            mWXSDKInstance.RegisterRenderListener(this);
            mWXSDKInstance.Render(WXFileUtils.LoadAsset("index.weex.js", this), -1, -1);
        }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            mWXSDKInstance = new WXSDKInstance(this);
            mWXSDKInstance.RegisterRenderListener(this);
            //  mVideoView = (PLVideoView)FindViewById<PLVideoView>(Resource.Id.PLVideo);
            //  mVideoView.SetVideoPath("rtmp://live.hkstv.hk.lxdns.com/live/hks");
            //string template;
            //using (StreamReader sr = new StreamReader(Assets.Open("tech_list.js")))
            //{
            //    template = sr.ReadToEnd();
            //}
            mWXSDKInstance.Render(WXFileUtils.LoadAsset("index.weex.js", this), -1, -1);
        }