title: flutter videoPlayerController.addListener() listening multiple times. how can i listen only one time?
body: <p><strong>I want to print the video's current playback time in seconds. but it's printing 4 times every second I think.</strong>
  here's videoPlayerController.addListener code.</p>
  <pre><code>await videoPlayerController.initialize().then((value) =&gt; {
            videoPlayerController.addListener(
              () {
                log(videoPlayerController.value.position.inSeconds.toString);
              },
            )
          });
  </code></pre>
  <p><strong>I want this</strong> <em>videoPlayerController.value.position.inSeconds</em> <strong>log will show only once in a second.</strong></p>
  <p>full code</p>
  <pre><code>void _initVideoPlayer() async {
      var url = await _extractVideoUrl();
      log('url $url');
  
      videoPlayerController = VideoPlayerController.network(url);
      await videoPlayerController.initialize().then((value) =&gt; {
            videoPlayerController.addListener(
              () {
                log(videoPlayerController.value.position.inSeconds.toString);
              },
            )
          });
  
      chewieController = ChewieController(
        videoPlayerController: videoPlayerController,
        autoPlay: true,
        looping: false,
        allowedScreenSleep: false,
        allowFullScreen: true,
        showControls: true,
        startAt: _reStoreLastPosition(),
        errorBuilder: (context, errorMessage) {
          return Center(
            child: Text(
              errorMessage,
              style: const TextStyle(color: Colors.white),
            ),
          );
        },
      );
      setState(() {});
    }
  </code></pre>