The addon uses arguments to determine the folder/playlist to browse so if you could pass objectID as 3 then this would browse the video folder. Line 953 in mezzmo.py in the addon shows how this is used.
The addon uses arguments to determine the folder/playlist to browse so if you could pass objectID as 3 then this would browse the video folder. Line 953 in mezzmo.py in the addon shows how this is used.
Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
Twitter: https://twitter.com/conceiva_mezzmo
Web: http://www.mezzmo.com
You would need to pass the argument of 'mode' as 'server' and 'contentdirectory' as the URL to the content directory api in the server. Have a look at line 951 in mezzmo.py. You could use addon.getSetting and addon.setSetting to retrieve and store the URL of the previously used server so that you can just pass mode=server and if contentdirectory is null or empty you can load the last server.
Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
Twitter: https://twitter.com/conceiva_mezzmo
Web: http://www.mezzmo.com
Ok, it took a bit of work but I've come up with a solution for launching directly into the video content directory via Autoexec.py. Here's an example:
import xbmc
xbmc.executebuiltin("ActivateWindow(10025,plugin://plugin.video.mezzmo/?contentdirectory=http://serverIP:53168/ContentDirectory/control;mode=server;objectID=taz1l0z1l13)")
ServerIP is your Mezzmo server IP address or DNS name (i.e. The 192.168.0.10 or mezzmo.mydomain.com)
The taz1l0z1l13 is the ID of your main video folder. Peter can better explain this.
How I found the video folder ID was by going into the Kodi Mezzmo AddOn, creating a favorite for the video folder in Kodi. Then drop out to the Kodi userdata folder, find the favourites XML file and open with Wordpad or similar. Inside the XML file you will find the ObjectID in XML format similar to what was posted at the top of this thread.
If you want to go to the main server folder and select video, music or pictures then leave the objectID section out:
import xbmc
xbmc.executebuiltin("ActivateWindow(10025,plugin://plugin.video.mezzmo/?contentdirectory=http://serverIP:53168/ContentDirectory/control;mode=server)")
I hope this helps.
Last edited by jbinkley60; 11-18-2017 at 05:21 AM.
Great work Jeff, thanks for posting the information.
Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
Twitter: https://twitter.com/conceiva_mezzmo
Web: http://www.mezzmo.com
Bookmarks