Skip to main content

androidGetCurrentTimeOfAudioPlayingInBackground

Type

handler

Summary

Gets the current time of the playing audio in milliseconds. If no audio is playing in the background, then 0 is returned.

Syntax

androidGetCurrentTimeOfAudioPlayingInBackground()

Description

Use the androidGetCurrentTimeOfAudioPlayingInBackground function to get the current time of the playing audio in milliseconds.

Examples

local tCurrentTimeInMilliseconds
if androidIsAudioPlayingInBackground() then
put androidGetCurrentTimeOfAudioPlayingInBackground() \
into tCurrentTimeInMilliseconds
end if

Compatibility and Support

OS

android