You can alter the code below for mms and add the proper content to make a script for it. This is some sample code for api2 which require playon premium.
Good luck
--[[Settings
name = "What you want to call the script";
id = "What you want to call it";
description = "Brief description here";
version = "Version number of your script usually start at 1.0";
link = "link to your website if you have one, not the source site you got it from";
apiversion = "2";
EndSettings]]--
--[[Image
USE This URL
http://www.motobit.com/util/base64-decoder-encoder.asp to convert the image so the icon in the playonplugins tab has a picture:
1. Browse to your image file
2. Convert source
3. Copy and paste the data here
EndImage]]--
--[[Director
function director:GetPlayerViewingRectangle(playerSize)
return Rectangle(0, 0, playerSize.Width, playerSize.Height - 30);
end;
EndDirector]]--
function provider:LoadDynamicVirtualFolder(vf)
if vf == self.VFS.Root then
vf.Dynamic = false;
local url0 = "the MMS URL enter it here";
local url1 = "the MMS URL enter it here";
As you can see above every new link local url goes 1,2,3,4 etc...
(This would be a sample for above for you to follow):
local url3 = "
mms://bptvlive.ngcdn.telstra.com/online-v8med";
self.VFS:CreateVideoFile(vf, "Title of channel here", url0, "Description of channel entered here", "Link to image for channel", DateTime.Now, url0, nil, 0, 0, nil, nil);
self.VFS:CreateVideoFile(vf, "Title of channel here", url1, "Description of channel entered here", "Link to image for channel", DateTime.Now, url1, nil, 0, 0, nil, nil);
end;
end;
(This would be a sample for above for you to follow):
self.VFS:CreateVideoFile(vf, "Chicken Channel", url3, "Buck buck chicken", "
http://chickenloverlife.files.wordpress.com/2012/02/happy-chicken.jpg", DateTime.Now, url2, nil, 0, 0, nil, nil);
Again notice the url3 matches the local URL above
function provider:CreatePlaybackDescriptor(vvf)
local pd = PlaybackDescriptor(vvf.Path, MediaFormat.WindowsMediaVideo);
pd.AudioAbortInterval = 30;
pd.VideoAbortInterval = 3600;
return pd;
end;
Last edited on July 16, 2012 at 09:16