Пример #1
0
 public void Play(String textToRead)
 {
     playerManager = new MediaPlayerManager(textToRead);
     playerManager.Slicer(new String[] { "." });
     playerManager.PlaySlicedText();
     OnPlayEvent(new MediaPlayerEventArgs(playerManager));
 }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button> (Resource.Id.myButton);

            button.Click += delegate {
                var media = new MediaPlayerManager();
                media.Play();
            };
        }
Пример #3
0
 private void Awake()
 {
     Instance = this;
 }
Пример #4
0
 public MediaPlayerEventArgs(MediaPlayerManager mediaPlayerManager)
 {
     this.mediaPlayerManager = mediaPlayerManager;
 }