I am getting the duration of a media file in ExoPlayer and writing it to an SQL d/b.
Originally I put the duration in an Int variable before writing it to the d/b via a Map (using DBUtils). It worked fine.
Then I noticed that "duration" in class SimpleExoPlayer is defined as "Long" (as is "position", naturally enough) so I changed my variables to Long.
But now I find when debugging my code I see the following:
and
I am baffled as to why an assignment without any casting is so wrong whereas with casting works fine...
Mike.
Originally I put the duration in an Int variable before writing it to the d/b via a Map (using DBUtils). It worked fine.
Then I noticed that "duration" in class SimpleExoPlayer is defined as "Long" (as is "position", naturally enough) so I changed my variables to Long.
But now I find when debugging my code I see the following:
with screen captures showing, while the project is paused just after the assignment:Dim duration As Long
...
duration = player1.duration
and
I am baffled as to why an assignment without any casting is so wrong whereas with casting works fine...
Mike.