-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainVideo.py
More file actions
38 lines (27 loc) · 741 Bytes
/
mainVideo.py
File metadata and controls
38 lines (27 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import mc
import jobmanager
import jobs
import utils
from params import *
myJobManager = 0
adsList = 0
adImage = 0
def onload():
global myJobManager, rssRoot, adsList, adImage
#Set Global Lists
adsList = mc.GetActiveWindow().GetList(120)
adImage = mc.GetActiveWindow().GetImage(150)
#Create JobManager
myJobManager = jobmanager.BoxeeJobManager(1)
utils.SetScrollAds(adsList, adImage, myJobManager)
utils.SetBreakingNews(14010, myJobManager)
#Start Job Manager
myJobManager.start()
#Play Video
item = mc.ListItem(mc.ListItem.MEDIA_VIDEO_CLIP)
item.SetPath('/media/unnamed/1.mp4')
item.SetContentType('video/mp4')
mc.GetPlayer().PlayInBackground(item)
def onunload():
global myJobManager
myJobManager.stop()