dividuum / info-beamer

The Multimedia Presenter for Lua (for commercial projects, use info-beamer pi instead)
https://info-beamer.com/
Other
227 stars 48 forks source link

Play all Video's in a Json file in loop #49

Closed RajshekharHoratti closed 8 years ago

RajshekharHoratti commented 8 years ago

Hi is there any way to play all the videos which are in the json file in a loop for example :- i'm having a json file like this [{"state": "active", "video":"video1.mp4"},{"state": "active", "video":"video2.mp4"},{"state": "inactive", "video":"video3.mp4"}]

i want to play all the videos who's "state" = "active" and Thanks :)

dividuum commented 8 years ago

Have a look at https://github.com/dividuum/info-beamer-nodes/tree/master/videolist. It's almost what you need. You just have to replace the code in util.file_watch to parse your json file instead. You can use the builtin json module for that.

RajshekharHoratti commented 8 years ago

Thanks for the reply it exactly what i needed thanks a lot :)