[Dev] ustream
#16
No need to mess with PyAMF anymore, there's a script module in the main repo now.

I worked on this some a while back then kind of forgot about it Rolleyes

I added a "choose" setting that lets you pick from the available streams, usually one of them will workWink

Don't really have time to do anything with this add-on at the moment but I updated github and uploaded a zip here ->
https://divingmules-repo.googlecode.com/...-0.0.2.zip

Consider this still a work in progress, expect some issues.
Reply
#17
Understood, but FYI...CBC +2 is still not working! THX
Reply
#18
Hello,

I installed your plugin to watch ustream channels but it doesnt do anything. If I see xbmc.log I get:

07:19:14 T:3472 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: (u'\xfa',)
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.video.ustream\default.py", line 408, in <module>
categories()
File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.video.ustream\default.py", line 65, in categories
addDir(i[0], base+i[1], 1, icon)
File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.video.ustream\default.py", line 334, in addDir
u=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&name="+urllib.quote_plus(name)
File "F:\XBMC\system\python\Lib\urllib.py", line 1232, in quote_plus
return quote(s, safe)
File "F:\XBMC\system\python\Lib\urllib.py", line 1224, in quote
res = map(safe_map.__getitem__, s)
KeyError: (u'\xfa',)
-->End of Python script error report<--
07:19:14 T:3276 WARNING: CWin32DirectSound::GetSpace - buffer underrun - W:0, P:17208, O:38808.
07:19:14 T:3276 WARNING: CWin32DirectSound::GetSpace - buffer underrun - W:17640, P:34288, O:10584.
07:19:14 T:3276 WARNING: CWin32DirectSound::GetSpace - buffer underrun - W:10584, P:27000, O:3528.
07:19:14 T:3276 WARNING: CWin32DirectSound::GetSpace - buffer underrun - W:7056, P:22624, O:3528.
07:19:14 T:3276 WARNING: CWin32DirectSound::GetSpace - buffer underrun - W:24696, P:41672, O:21168.
07:19:15 T:3976 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.ustream/
07:19:15 T:3976 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.ustream/) failed
07:19:15 T:3172 NOTICE: Thread Background Loader start, auto delete: false

Could you help me?

Best Regards.
Reply
#19
Maybe if you don't mind getting you hands dirty.

Code:
File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.video.ustream\default.py", line 65, in categories
addDir(i[0], base+i[1], 1, icon)

Find line 65 in the above file and change it from
Code:
addDir(i[0], base+i[1], 1, icon)
to
Code:
addDir(i[0].encode('utf-8', 'ignore'), base+i[1], 1, icon)
Reply
#20
Hello divingmule,

Never mind, it works, I see categories and channels but after select a channel, right now I get

Error Contents: cannot concatenate 'str' and 'tuple' objects

on lines

addon_log('Play URL: '+play_url)
item = xbmcgui.ListItem(path=play_url)

I tried disabling the log write and reencoding to unicode with (I have no idea about python but.....)

item = xbmcgui.ListItem(path=play_url).encode('unicode', 'ignore')

but I get a mess about errors on xbmc.log

Anyway........on the other side I'm writting a vbs plugin for my htpc software (I'm just checking for xbmc cause I bought a new tablet ) and I'm able to get and play several streams. I get channel id and related amf file to. The problem is sometimes I see status channel as offair (and of course it seems to not be). Then I started to looking for in m3u8 file unsuccesfully .............

Could you give a clue to point in the right way?
Reply
#21
Thanks dirty hack is working for me.
Reply
#22
It depends on url.
Reply
#23
in some reason i couldn't find this channel : http://www.ustream.tv/channel/hm-hdtv3 from this user: leengeap

i did manual add this in categories(): addDir('HM HDTV-3', '13206990', 4, search_icon)
and this: if play_url:
print play_url xbmc.Player( xbmc.PLAYER_CORE_DVDPLAYER ).play(play_url)

it's working but i couldn't stop it's just looping. that streaming help thanks.
Reply
#24
Try changing the addDir to addLiveLink, then remove the other stuff you added.
Reply
#25
yes, it's working , but this error video message coming: ustream we are optimizing the stream for your device, ,,,
then i stop and wait for a bit and start play again then it'll work, help again thanks.?
Reply
#26
Thats interesting, so you get the 'optimizing the stream' video, then retry and get the real stream?
Reply
#27
Yes, what should I do Smile
Reply
#28
I don't know... can you check the log and see if the m3u8 url is the same each time?
Reply
#29
.m3u8 is the same , look like a bit of slight delay wating for .m3u8 setup and ready to play or
maybe of this => [addon.ustream-0.0.2]: No streamVersions key!

that another error i got.

and why i can not find that channel or from that user,?

that is my logs:

amf_url: http://cgw.ustream.tv/Viewer/getStream/1/13206990.amf
13:38:59 T:49844 NOTICE: [addon.ustream-0.0.2]: No streamVersions key!
13:38:59 T:49844 NOTICE: [addon.ustream-0.0.2]: streams 2
13:38:59 T:49844 NOTICE: [addon.ustream-0.0.2]: [(u'rtmp://flash54.ustream.tv/ustreamVideo/13206990', u'streams/live'), (u'http://iphone-streaming.ustream.tv/uhls/13206990/streams/live/iphone/playlist.m3u8', None)] <====
13:39:00 T:49844 NOTICE: http://iphone-streaming.ustream.tv/wow15...ylist.m3u8
13:39:00 T:49844 NOTICE: [addon.ustream-0.0.2]: Play URL: http://iphone-streaming.ustream.tv/wow15...ylist.m3u8
13:39:01 T:6680 NOTICE: DVDPlayer: Opening: http://iphone-streaming.ustream.tv/wow15...ylist.m3u8
Reply
#30
I've been getting script failure for this plugin this week. Everything was working good last week when I used it. Has there been some change on Ustream's side that has changed things for this script?
Reply

Logout Mark Read Team Forum Stats Members Help
[Dev] ustream0