n((e)
        {
                // ...
        });
        myPlayer.setSubscriptionDuration(Duration(milliseconds: 100));
}
</code></pre>
<p><em>Example:</em></p>
<pre class="language-dart"><code class="language-dart">    final fileUri = "https://file-examples.com/wp-content/uploads/2017/11/file_example_MP3_700KB.mp3";

    Duration d = await myPlayer.startPlayer // Play a remote file
    (
                codec: Codec.mp3,
                fromURI: fileUri,
                whenFinished: ()
                {