2010-12-03, 03:23
Hello,
I've been playing around and learning python for about a week. I've been wanting to write a addon for mtv.com fullepisode classic cartoons or possibly all full episodes. Beavis and Butthead, Aeon Flux, and Daria. I think i got the scraping figured out. I'm just having a little problems on the RTMPe part. I've gotten it down to this.
Got IT almost! if i put it on a string like this. its goes farther
this is just a test code for the rtmpe part. Its plays. But then its stops. after about a minute.
A little Guidance would be Appreciated
john
well i fired up wireshark to see what it would tell me about the rtmp stream.
and i'm getting Audio Data (Malformed Packet). I'm not sure of what that means..
I've been playing around and learning python for about a week. I've been wanting to write a addon for mtv.com fullepisode classic cartoons or possibly all full episodes. Beavis and Butthead, Aeon Flux, and Daria. I think i got the scraping figured out. I'm just having a little problems on the RTMPe part. I've gotten it down to this.
Quote:import xbmc, xbmcgui
#playpath = "http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:138902&vid=138902"
rtmp_url = "rtmp://cp10740.edgefcs.net/ondemand/mtvcomstor/_!/mtv.com/onair/beavis_and_butthead/MTV_BEAVISBUTTHEAD_107_1_320.flv"
swf_url = "http://media.mtvnservices.com/player/gui/?v=1.5.5"
item = xbmcgui.ListItem("Beavis and Butthead")
#item.setProperty("PlayPath", playpath)
item.setProperty("SWFPlayer", swf_url)
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(rtmp_url, item)
Got IT almost! if i put it on a string like this. its goes farther
Quote:import xbmc, xbmcgui
item = xbmcgui.ListItem("Beavis and Butthead")
rtmp_url="rtmp://cp10740.edgefcs.net/ondemand/mtvcomstor/_!/mtv.com/onair/beavis_and_butthead/MTV_BEAVISBUTTHEAD_107_1_240.flv swfurl=http://media.mtvnservices.com/player/gui/?v=1.5.5 swfvfy=true"
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(rtmp_url, item)
this is just a test code for the rtmpe part. Its plays. But then its stops. after about a minute.
A little Guidance would be Appreciated
john
well i fired up wireshark to see what it would tell me about the rtmp stream.
and i'm getting Audio Data (Malformed Packet). I'm not sure of what that means..