XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-02-12, 12:36   #1
scooba77
Junior Member
 
Join Date: Feb 2004
Posts: 7
scooba77 is on a distinguished road
Default

hi,
in the last days playd a bit with python and it works really fine. but one thing i couldnīt get work, was to play an mediafile over an samba share.
is it possible to acces samba-shares with python?
i tried this(from the example scrpit):
Quote:
import xbmc, xbmcgui, nt

dir = 'smb:\\user:pass@192.168.x.x\video\'
list = nt.listdir(dir)

dialog = xbmcgui.dialog()
selected = dialog.select('select a song to play, no directory!!!', list)
filename = list[selected]

xbmc.mediaplay(dir + filename)
in xbmc samba is working great, bit with python i did not get it work.

scooba77
scooba77 is offline   Reply With Quote
Old 2004-02-12, 13:43   #2
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

python can't access samba directly, the same goes for relax.

you could use xbmc.player().play("smb://server/share/file.mp3") but that is all for now
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


darkie is offline   Reply With Quote
Old 2004-02-12, 16:08   #3
scooba77
Junior Member
 
Join Date: Feb 2004
Posts: 7
scooba77 is on a distinguished road
Default

thanks for your answer, but this does not work.
i tested:
Quote:
xbmc.player().play("smb://192.168.66.7/videoz/01.mpg")
and:
Quote:
xbmc.player().play("smb://xbox:xbox@192.168.66.7/videoz/01.mpg")
192.168.66.7 is the ip of my pc(winxp) and xbox:xbox is userass for the xbox-user

or is there any alternative to play an mpg from an other pc with python?

scooba77
scooba77 is offline   Reply With Quote
Old 2004-02-14, 23:27   #4
Hullebulle
Fan
 
Join Date: Sep 2003
Posts: 1,972
Hullebulle is on a distinguished road
Default

moving to "development".
__________________
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Hullebulle is offline   Reply With Quote
Old 2004-02-15, 00:46   #5
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

xbmc.player().play("smb://192.168.66.7/videoz/01.mpg") is only for xbmc after 06-02-2004

before that date you should use xbmc.mediaplay("smb://192.168.66.7/videoz/01.mpg")

and you could always press the info button after running the script to get some more information
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


darkie is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XBMC samba client very slow scanning samba share. whitehat237 XBMC for Xbox Specific Support 0 2005-11-22 22:07
Python Samba Server Chinny Plugin/Script (Python) Help and Support 0 2005-10-30 08:53
Python Interpreter Development "Python Inside" darkie Plugin/Script (Python) Development 42 2005-09-19 09:07
Samba & netbios python client librarys SearchFor Plugin/Script (Python) Development 0 2004-12-30 01:47
Python and Samba scooba77 XBMC for Xbox Specific Support 3 2004-02-14 23:27


All times are GMT +2. The time now is 02:23.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project