Ejemplo n.º 1
0
 public JuvoPlayerModule(ReactContext reactContext, IDeepLinkSender deepLinkSender)
     : base(reactContext)
 {
     seekLogic           = new SeekLogic(this);
     this.deepLinkSender = deepLinkSender;
     seekCompletedSub    = seekLogic.SeekCompleted().Subscribe(message =>
     {
         var param = new JObject();
         SendEvent("onSeekCompleted", param);
     });
 }
Ejemplo n.º 2
0
        public JuvoPlayerModule(ReactContext reactContext, IDeepLinkSender deepLinkSender,
                                SynchronizationContext mainSynchronizationContext)
            : base(reactContext)
        {
            seekLogic                       = new SeekLogic(this);
            this.deepLinkSender             = deepLinkSender;
            this.mainSynchronizationContext = mainSynchronizationContext;
            seekCompletedSub                = seekLogic.SeekCompleted().Subscribe(message =>
            {
                var param = new JObject();
                SendEvent("onSeekCompleted", param);
            });

            playbackTimer = new Timer(
                callback: new TimerCallback(UpdatePlayTime),
                state: seekLogic.CurrentPositionUI,
                Timeout.Infinite, Timeout.Infinite);
        }