A simple video player for MagicMirror in which you provide the videos. Home videos included!
The MMM-MyVideoPlayer module is a 3rd Party Module of the MagicMirror2
To use this module, add it to the modules array in the 'config/config.js' file:
modules: [
{
disabled: false,
module: "MMM-MyVideoPlayer",
position: "middle_center",
config:
{
initialLoadDelay: 5150,
videoDir: "videos",
posterDir: "posters",
posterSize: {width:45, height:25},
menuDirection: "row",
playerSize: {width:480, height:270},
playerBackground:"MVPsplash.png"
}
},
]
cd ~/MagicMirror/modules git clone https://github.com/justjim1220/MMM-MyVideoPlayer.git cd MMM-MyVideoPlayer npm install
can add as many videos as you like. (don't have to have 9 as per the example shown) ** All videos must be placed in the videos directory & All posters must be placed inside the posters directory ** the player will show the buttons in the order of how thery are in the poster dirsctory. 0 through 9, or a,b,c (recommended). video names should coincide with the button names. (IE: video - a.mp4 / poster - a.jpg) may need to adjust the sizes of buttons - width of video player divided by number of buttons then subtract a few px's for space in between them.
Hope you all like it!
========================================================================================================================================
for @Sputnik & @remylpat for reqesting to have this module created!!!
I want to thank @cowboysdude, as I got the basic idea from one of his modules!!!
And, @sdetweil for giving me hints on tweaks to get it up and running right!!!
Enjoy!