Hi Anders,
Sorry for the late reply, Xmas holidays wiped everything out in fat food
and champagne...
You can access the information you are looking for from the video
player. Here is a sample code snippet:
# You need a reference to the frontend, e.g. self.frontend if
# this code is in a controller.
player_controller = \
frontend.retrieve_controllers('/poblesec/video_player')[0]
player = player_controller.player
# Get the currently playing model
currently_playing = player.get_current_model()
...
# Get the current time position
time_position = player.get_position()
...
I hope this helps!
Cheers,
Olivier
Anders Østhus wrote:
> Hi
>
> I'm thinking about making a plugin that updates the LCD screen on my HTPC
> case.
> I've made a small python app to test out controlling the LCD and it all works
> perfectly.
>
> So now it's time to implement it in Elisa, and what I was wondering about is:
> - How/where to get metadata for the file currently playing (f.eks filename,
> artist, track name and so on)
> - How/where to get current time position of the file playing
> (00:03:54/00:04:24)