I'm pulling video from an external url and when tested using mplayer in Ubuntu, the video plays perfect, both audio and video in synch. But when I try the same url in Boxee, the audio plays, but the video is not appearing. If I pause the player, I get the image of the video, but when I play again, it's goes away.
I'm setting the content type/Mime type in the code for the proper format:
item = mc.ListItem(mc.ListItem.MEDIA_VIDEO_FEATURE_FILM)
item.SetTitle(str(file['name']))
item.SetLabel(str(file['name']))
item.SetContentType(str(file['mimetype']))
if int(file['type']) == 0:
fileid = file['fileid']
url = "https://service.pogoplug.com/svc/files/" + token + "/" + deviceid + "/" + serviceid + "/" + fileid + "/"
item.SetPath(str(url))
else:
item.SetPath("")
item.SetProperty("serviceid", str(serviceid))
item.SetProperty("deviceid", str(deviceid))
item.SetProperty("fileid", str(file['fileid']))
item.SetProperty("parentid", str(file['parentid']))
item.SetProperty("filetype", str(file['type']))
item.SetProperty("valtoken", str(token))
itemList.append(item)
.
.
.
print "Path: " + items[n].GetPath()
if mc.GetPlayer().IsPlaying():
mc.GetPlayer().Stop()
mc.GetPlayer().Play( items[n] )
I've seen other video play fine. Any help with how to set the player up properly is greatly appreciated.
sgilliard


Reply With Quote

Bookmarks