flutter-meedu-player icon indicating copy to clipboard operation
flutter-meedu-player copied to clipboard

RX Data tybe ?

Open Joseph-Nathan opened this issue 4 years ago • 3 comments

The argument type 'Rx<Duration>' can't be assigned to the parameter type 'Duration'.

Joseph-Nathan avatar Jan 15 '21 14:01 Joseph-Nathan

The argument type 'Rx' can't be assigned to the parameter type 'Duration'.

@Joseph-Nathan please add your code and and screenshot of your log

darwin-morocho avatar Jan 15 '21 23:01 darwin-morocho

The argument type 'Rx<Duration>' can't be assigned to the parameter type 'Duration'. try to get position _controller.position ; v 0.4.1 and above .

Joseph-Nathan avatar Jan 22 '21 14:01 Joseph-Nathan

The argument type 'Rx' can't be assigned to the parameter type 'Duration'. try to get position _controller.position ; v 0.4.1 and above . hi @Joseph-Nathan the new version of this plugin use reactive programing so the property position is a instance of Rx<Duration> you can get the current position using a StreamSubscription.

Here an example http://player.meedu.app/#/listening-player-events

darwin-morocho avatar Jan 22 '21 17:01 darwin-morocho