Adding Strm Files To The Library Xbmc



xbmc (version 2.20.0, Sun Aug 09 13:53:06 BST 2015)
index
(built-in)
  1. Adding Strm Files To The Library Xbmc Download
  2. Adding Strm Files To The Library Xbmc Online

Using the Aeon MQ5 menu customisation feature, I added a new main menu item called CAMS and added in both the Security CAM Overlay add-on instances. I also created some.strm files for my IP cameras and some custom.nfo files to add them in to the Movies library, I then added them to favourites and in-turn added these favourites to the CAMS menu. Is the process here: Create YouTube Playlist Add strm using YT playlist to XBMC Create smart playlist mixing local and YouTube content. Will Are You Afraid of the Dark show proper runtime and episode descriptions, or do I need individual strm per each episode? Installing the add-ons. XBMC Settings – Add-ons – Install From Zip File. Then browse to the folder where you put your two new zip files (hopefully some where your HTPC can access). On this screen shot of XBMC you can see the two add-on instances I just created and I can select them from here to install them etc. Kodi was released in 2002 under the name XBMC which stands for Xbox Media Center. Its main purpose at that time was to provide an application that allowed a person to stream media from a network connected computer to a modified Xbox. That’s right, XBMC didn’t work on the typical Xbox, it had to be modified to run the application. Finally, since this is your first time adding adding media files to XBMC, you may as well take care of everything right now, so go ahead and have XBMC create that pretty looking Library. To do so, select the Run 'Automated Scanoption. Now, click OKand then OKagain. XBMC will now begin to scan your folders.


Classes
__builtin__.object
InfoTagMusic
InfoTagVideo
Keyboard
Monitor
PlayList
Player
RenderCapture


class InfoTagMusic(__builtin__.object)
InfoTagMusic class.
Methods defined here:
getAlbum(...)
getAlbum() --returns a string.
getAlbumArtist(...)
getAlbumArtist() --returns a string.
getArtist(...)
getArtist() --returns a string.
getComment(...)
getComment() --returns a string.
getDisc(...)
getDisc() --returns an integer.
getDuration(...)
getDuration() --returns an integer.
getGenre(...)
getGenre() --returns a string.
getLastPlayed(...)
getLastPlayed() --returns a string.
getListeners(...)
getListeners() --returns an integer.
getLyrics(...)
getLyrics() --returns a string.
getPlayCount(...)
getPlayCount() --returns an integer.
getReleaseDate(...)
getReleaseDate() --returns a string.
getTitle(...)
getTitle() --returns a string.
getTrack(...)
getTrack() --returns an integer.
getURL(...)
getURL() --returns a string.
Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T


class InfoTagVideo(__builtin__.object)
Methods defined here:
getCast(...)
getCast() - returns a string.
getDirector(...)
getDirector() - returns a string.
getFile(...)
getFile() - returns a string.
getFirstAired(...)
getFirstAired() - returns a string.
getGenre(...)
getGenre() - returns a string.
getIMDBNumber(...)
getIMDBNumber() - returns a string.
getLastPlayed(...)
getLastPlayed() --returns a string.
getOriginalTitle(...)
getOriginalTitle() - returns a string.
getPath(...)
getPath() - returns a string.
getPictureURL(...)
getPictureURL() - returns a string.
getPlayCount(...)
getPlayCount() --returns a integer.
getPlot(...)
getPlot() - returns a string.
getPlotOutline(...)
getPlotOutline() - returns a string.
getPremiered(...)
getPremiered() - returns a string.
getRating(...)
getRating() - returns a float (double where supported)
getTagLine(...)
getTagLine() - returns a string.
getTitle(...)
getTitle() - returns a string.
getVotes(...)
getVotes() - returns a string.
getWritingCredits(...)
getWritingCredits() - returns a string.
getYear(...)
getYear() - returns an integer.
Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T


class Keyboard(__builtin__.object)
Keyboard class.
Keyboard([default, heading, hidden])--Creates a newKeyboard object with default text
heading and hidden input flag if supplied.
default : [opt] string - default text entry.
heading : [opt] string - keyboard heading.
hidden : [opt] boolean - True for hidden text entry.
example:
- kb =xbmc.Keyboard ('default', 'heading', True)
- kb.setDefault('password') # optional
- kb.setHeading('Enter password') # optional
- kb.setHiddenInput(True) # optional
- kb.doModal()
- if (kb.isConfirmed()):
- text = kb.getText()
Methods defined here:
doModal(...)
doModal([autoclose])--Show keyboard and wait for user action.
autoclose : [opt] integer - milliseconds to autoclose dialog. (default=do not autoclose)
example:
- kb.doModal(30000)
getText(...)
getText() --Returns the user input as a string.
*Note, This will always return the text entry even if you cancel the keyboard.
Use theisConfirmed() method to check if user cancelled the keyboard.
example:
- text = kb.getText()
isConfirmed(...)
isConfirmed() --Returns False if the user cancelled the input.
example:
- if (kb.isConfirmed()):
setDefault(...)
setDefault(default)--Set the default text entry.
default : string - default text entry.
example:
- kb.setDefault('password')
setHeading(...)
setHeading(heading)--Set the keyboard heading.
heading : string - keyboard heading.
example:
- kb.setHeading('Enter password')
setHiddenInput(...)
setHiddenInput(hidden)--Allows hidden text entry.
hidden : boolean - True for hidden text entry.
example:
- kb.setHiddenInput(True)
Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T


class Monitor(__builtin__.object)
Monitor class.
Monitor()--Creates a newMonitor to notify addon about changes.
Methods defined here:
abortRequested(...)
abortRequested() --Returns True if abort has been requested.
onAbortRequested(...)
onAbortRequested() --Deprecated, usewaitForAbort() to be notified about this event.
onCleanFinished(...)
onCleanFinished(library)--onCleanFinished method.
library : video/music as string
Will be called when library clean has ended and return video or music to indicate which library has been cleaned
onCleanStarted(...)
onCleanStarted(library)--onCleanStarted method.
library : video/music as string
Will be called when library clean has started and return video or music to indicate which library is being cleaned
onDPMSActivated(...)
onDPMSActivated() --onDPMSActivated method.
Will be called when energysaving/DPMS gets active
onDPMSDeactivated(...)
onDPMSDeactivated() --onDPMSDeactivated method.
Will be called when energysaving/DPMS is turned off
onDatabaseScanStarted(...)
onDatabaseScanStarted(database)--Deprecated, useonScanStarted() .
onDatabaseUpdated(...)
onDatabaseUpdated(database)--Deprecated, useonScanFinished() .
onNotification(...)
onNotification(sender, method, data)--onNotification method.
sender : sender of the notification
method : name of the notification
data : JSON-encoded data of the notification
Will be called when Kodi receives or sends a notification
onScanFinished(...)
onScanFinished(library)--onScanFinished method.
library : video/music as string
Will be called when library scan has ended and return video or music to indicate which library has been scanned
onScanStarted(...)
onScanStarted(library)--onScanStarted method.
library : video/music as string
Will be called when library scan has started and return video or music to indicate which library is being scanned
onScreensaverActivated(...)
onScreensaverActivated() --onScreensaverActivated method.
Will be called when screensaver kicks in
onScreensaverDeactivated(...)
onScreensaverDeactivated() --onScreensaverDeactivated method.
Will be called when screensaver goes off
onSettingsChanged(...)
onSettingsChanged() --onSettingsChanged method.
Will be called when addon settings are changed
waitForAbort(...)
waitForAbort([timeout])--Block until abort is requested, or until timeout occurs. If an abort requested have already been made, return immediately.
Returns True when abort have been requested, False if a timeout is given and the operation times out.
timeout : [opt] float - timeout in seconds. Default: no timeout.
Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T


class PlayList(__builtin__.object)
Methods defined here:
__getitem__(...)
x.__getitem__(y) <> x[y]
__len__(...)
x.__len__() <> len(x)
add(...)
add(url[, listitem, index])--Adds a new file to the playlist.
url : string or unicode - filename or url to add.
listitem : [opt] listitem - used with setInfo() to set different infolabels.
index : [opt] integer - position to add playlist item. (default=end)
*Note, You can use the above as keywords for arguments and skip certain optional arguments.
Once you use a keyword, all following arguments require the keyword.
example:
- playlist =xbmc.PlayList (xbmc.PLAYLIST_VIDEO)
- video = 'F:moviesIronman.mov'
- listitem =xbmcgui.ListItem ('Ironman', thumbnailImage='F:moviesIronman.tbn')
- listitem.setInfo('video', {'Title': 'Ironman', 'Genre': 'Science Fiction'})
- playlist.add(url=video, listitem=listitem, index=7)n
clear(...)
clear() --clear all items in the playlist.
getPlayListId(...)
getPlayListId() --returns an integer.
getposition(...)
getposition() --returns the position of the current song in this playlist.
load(...)
load(filename)--Load a playlist.
clear current playlist and copy items from the file to this Playlist filename can be like .pls or .m3u ...
returns False if unable to load playlist
remove(...)
remove(filename)--remove an item with this filename from the playlist.
shuffle(...)
shuffle() --shuffle the playlist.
size(...)
size() --returns the total number of PlayListItems in this playlist.
unshuffle(...)
unshuffle() --unshuffle the playlist.
Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T


class Player(__builtin__.object)
Player class.
Player()--Creates a newPlayer class.
Methods defined here:
disableSubtitles(...)
DisableSubtitles()--disable subtitles
getAvailableAudioStreams(...)
getAvailableAudioStreams() --get Audio stream names
getAvailableSubtitleStreams(...)
getAvailableSubtitleStreams() --get Subtitle stream names
getMusicInfoTag(...)
getMusicInfoTag() --returns the MusicInfoTag of the current playing 'Song'.
Throws: Exception, if player is not playing a file or current file is not a music file.
getPlayingFile(...)
getPlayingFile() --returns the current playing file as a string.
Note: For LiveTV, returns a pvr:// url which is not translatable to an OS specific file or external url
Throws: Exception, if player is not playing a file.
getSubtitles(...)
getSubtitles() --get subtitle stream name
getTime(...)
getTime() --Returns the current time of the current playing media as fractional seconds.
Throws: Exception, if player is not playing a file.
getTotalTime(...)
getTotalTime() --Returns the total time of the current playing media in seconds. This is only accurate to the full second.
Throws: Exception, if player is not playing a file.
getVideoInfoTag(...)
getVideoInfoTag() --returns the VideoInfoTag of the current playing Movie.
Throws: Exception, if player is not playing a file or current file is not a movie file.
isPlaying(...)
isPlaying() --returns True is Kodi is playing a file.
isPlayingAudio(...)
isPlayingAudio() --returns True is Kodi is playing an audio file.
isPlayingVideo(...)
isPlayingVideo() --returns True if Kodi is playing a video.
onPlayBackEnded(...)
onPlayBackEnded() --onPlayBackEnded method.
Will be called when Kodi stops playing a file
onPlayBackPaused(...)
onPlayBackPaused() --onPlayBackPaused method.
Will be called when user pauses a playing file
onPlayBackResumed(...)
onPlayBackResumed() --onPlayBackResumed method.
Will be called when user resumes a paused file
onPlayBackSeek(...)
onPlayBackSeek(time, seekOffset)--onPlayBackSeek method.
time : integer - time to seek to.
seekOffset : integer - ?.
Will be called when user seeks to a time
onPlayBackSeekChapter(...)
onPlayBackSeekChapter(chapter)--onPlayBackSeekChapter method.
chapter : integer - chapter to seek to.
Will be called when user performs a chapter seek
onPlayBackSpeedChanged(...)
onPlayBackSpeedChanged(speed)--onPlayBackSpeedChanged method.
speed : integer - current speed of player.
*Note, negative speed means player is rewinding, 1 is normal playback speed.
Will be called when players speed changes. (eg. user FF/RW)
onPlayBackStarted(...)
onPlayBackStarted() --onPlayBackStarted method.
Will be called when Kodi starts playing a file
onPlayBackStopped(...)
onPlayBackStopped() --onPlayBackStopped method.
Will be called when user stops Kodi playing a file
onQueueNextItem(...)
onQueueNextItem() --onQueueNextItem method.
Will be called when user queues the next item
pause(...)
pause() --Pause or resume playing if already paused.
play(...)
play([item, listitem, windowed, startpos])--Play this item.
item : [opt] string - filename, url or playlist.
listitem : [opt] listitem - used with setInfo() to set different infolabels.
windowed : [opt] bool - true=play video windowed, false=play users preference.(default)
startpos : [opt] int - starting position when playing a playlist. Default = -1
*Note, If item is not given then thePlayer will try to play the current item
in the current playlist.
You can use the above as keywords for arguments and skip certain optional arguments.
Once you use a keyword, all following arguments require the keyword.
example:
- listitem =xbmcgui.ListItem ('Ironman')
- listitem.setInfo('video', {'Title': 'Ironman', 'Genre': 'Science Fiction'})
- xbmc.Player().play(url, listitem, windowed)
- xbmc.Player().play(playlist, listitem, windowed, startpos)
playnext(...)
playnext() --Play next item in playlist.
playprevious(...)
playprevious() --Play previous item in playlist.
playselected(...)
playselected() --Play a certain item from the current playlist.
seekTime(...)
seekTime() --Seeks the specified amount of time as fractional seconds. The time specified is relative to the beginning of the currently playing media file.
Throws: Exception, if player is not playing a file.
setAudioStream(...)
setAudioStream(stream)--set Audio Stream.
stream : int
example:
- setAudioStream(1)
setSubtitleStream(...)
setSubtitleStream(stream)--set Subtitle Stream
stream : int
example:
- setSubtitleStream(1)
setSubtitles(...)
setSubtitles() --set subtitle file and enable subtitlesn
showSubtitles(...)
showSubtitles(visible)--enable/disable subtitles
visible : boolean - True for visible subtitles.
example:
- xbmc.Player().showSubtitles(True)
stop(...)
stop() --Stop playing.
Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T


class RenderCapture(__builtin__.object)
Methods defined here:
capture(...)
capture(width, height [, flags])--issue capture request.
width : Width capture image should be rendered to
height : Height capture image should should be rendered to
flags : Optional. Flags that control the capture processing.
The value for 'flags' could be or'ed from the following constants:
- xbmc.CAPTURE_FLAG_CONTINUOUS : after a capture is done, issue a new capture request immediately
- xbmc.CAPTURE_FLAG_IMMEDIATELY : read out immediately whencapture() is called, this can cause a busy wait
getAspectRatio(...)
getAspectRatio() --returns aspect ratio of currently displayed video.
This may be called prior to callingRenderCapture.capture() .
getCaptureState(...)
getCaptureState() --returns processing state of capture request.
The returned value could be compared against the following constants:
- xbmc.CAPTURE_STATE_WORKING : Capture request in progress.
- xbmc.CAPTURE_STATE_DONE : Capture request done. The image could be retrieved withgetImage()
- xbmc.CAPTURE_STATE_FAILED : Capture request failed.
getHeight(...)
getHeight() --returns height of captured image as set during
RenderCapture.capture() . Returns 0 prior to calling capture.
getImage(...)
getImage() --returns captured image as a bytearray.
The size of the image isgetWidth() *getHeight() * 4
getImageFormat(...)
getImageFormat() --returns format of captured image: 'BGRA' or 'RGBA'.
getWidth(...)
getWidth() --returns width of captured image as set during
RenderCapture.capture() . Returns 0 prior to calling capture.
waitForCaptureStateChangeEvent(...)
waitForCaptureStateChangeEvent([msecs])--wait for capture state change event.
msecs : Milliseconds to wait. Waits forever if not specified.
The method will return 1 if the Event was triggered. Otherwise it will return 0.
Data and other attributes defined here:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T


Functions
audioResume(...)
audioResume()--Resume Audio engine.
example: xbmc.audioResume()
audioSuspend(...)
audioSuspend()--Suspend Audio engine.
example:
- xbmc.audioSuspend()
convertLanguage(...)
convertLanguage(language, format)--Returns the given language converted to the given format as a string.
language: string either as name in English, two letter code (ISO 639-1), or three letter code (ISO 639-2/T(B)
format: format of the returned language string
xbmc.ISO_639_1: two letter code as defined in ISO 639-1
xbmc.ISO_639_2: three letter code as defined in ISO 639-2/T or ISO 639-2/B
xbmc.ENGLISH_NAME: full language name in English (default)
example:
- language = xbmc.convertLanguage(English, xbmc.ISO_639_2)
enableNavSounds(...)
enableNavSounds(yesNo)--Enables/Disables nav sounds
yesNo : integer - enable (True) or disable (False) nav sounds
example:
- xbmc.enableNavSounds(True)
executeJSONRPC(...)
executeJSONRPC(jsonrpccommand)--Execute an JSONRPC command.
jsonrpccommand : string - jsonrpc command to execute.
List of commands -
example:
- response = xbmc.executeJSONRPC('{ 'jsonrpc': '2.0', 'method': 'JSONRPC.Introspect', 'id': 1 }')
executebuiltin(...)
executebuiltin(function)--Execute a built in Kodi function.
function : string - builtin function to execute.
List of functions -http://kodi.wiki/view/List_of_Built_In_Functions
example:
- xbmc.executebuiltin('RunXBE(c:avalaunch.xbe)')
executescript(...)
executescript(script)--Execute a python script.
script : string - script filename to execute.
example:
- xbmc.executescript('special://home/scripts/update.py')
getCacheThumbName(...)
getCacheThumbName(path)--Returns a thumb cache filename.
path : string or unicode - path to file
example:
- thumb = xbmc.getCacheThumbName('f:videosmovie.avi')
getCleanMovieTitle(...)
getCleanMovieTitle(path[, usefoldername])--Returns a clean movie title and year string if available.
path : string or unicode - String to clean
bool : [opt] bool - use folder names (defaults to false)
example:
- title, year = xbmc.getCleanMovieTitle('/path/to/moviefolder/test.avi', True)
getCondVisibility(...)
getCondVisibility(condition)--Returns True (1) or False (0) as a bool.
condition : string - condition to check.
List of Conditions -http://kodi.wiki/view/List_of_Boolean_Conditions
*Note, You can combine two (or more) of the above settings by using '+' as an AND operator,
'|' as an OR operator, '!' as a NOT operator, and '[' and ']' to bracket expressions.
example:
- visible = xbmc.getCondVisibility('[Control.IsVisible(41) + !Control.IsVisible(12)]')
getDVDState(...)
getDVDState()--Returns the dvd state as an integer.
return values are:
- 1 : xbmc.DRIVE_NOT_READY
- 16 : xbmc.TRAY_OPEN
- 64 : xbmc.TRAY_CLOSED_NO_MEDIA
- 96 : xbmc.TRAY_CLOSED_MEDIA_PRESENT
example:
- dvdstate = xbmc.getDVDState()
getFreeMem(...)
getFreeMem()--Returns the amount of free memory in MB as an integer.
example:
- freemem = xbmc.getFreeMem()
getGlobalIdleTime(...)
getGlobalIdleTime()--Returns the elapsed idle time in seconds as an integer.
example:
- t = xbmc.getGlobalIdleTime()
getIPAddress(...)
getIPAddress()--Returns the current ip address as a string.
example:
- ip = xbmc.getIPAddress()
getInfoImage(...)
getInfoImage(infotag)--Returns a filename including path to the InfoImage's thumbnail as a string.
infotag : string - infotag for value you want returned.
List of InfoTags -http://kodi.wiki/view/InfoLabels
example:
- filename = xbmc.getInfoImage('Weather.Conditions')
getInfoLabel(...)
getInfoLabel(infotag)--Returns an InfoLabel as a string.
infotag : string - infoTag for value you want returned.
List of InfoTags -http://kodi.wiki/view/InfoLabels
example:
- label = xbmc.getInfoLabel('Weather.Conditions')
getLanguage(...)
getLanguage([format], [region])--Returns the active language as a string.
format: [opt] format of the returned language string
- xbmc.ISO_639_1: two letter code as defined in ISO 639-1
- xbmc.ISO_639_2: three letter code as defined in ISO 639-2/T or ISO 639-2/B
- xbmc.ENGLISH_NAME: full language name in English (default)
region: [opt] append the region delimited by '-' of the language (setting) to the returned language string
example:
- language = xbmc.getLanguage(xbmc.ENGLISH_NAME)
getLocalizedString(...)
getLocalizedString(id)--Returns a localized 'unicode string'.
id : integer - id# for string you want to localize.
*Note, See strings.xml in } for which id
you need for a string.
example:
- locstr = xbmc.getLocalizedString(6)
getRegion(...)
getRegion(id)--Returns your regions setting as a string for the specified id.
id : string - id of setting to return
*Note, choices are (dateshort, datelong, time, meridiem, tempunit, speedunit)You can use the above as keywords for arguments.
example:
- date_long_format = xbmc.getRegion('datelong')
getSkinDir(...)
getSkinDir()--Returns the active skin directory as a string.
*Note, This is not the full path like 'special://home/addons/MediaCenter', but only 'MediaCenter'.
example:
- skindir = xbmc.getSkinDir()
getSupportedMedia(...)
getSupportedMedia(media)--Returns the supported file types for the specific media as a string.
media : string - media type
*Note, media type can be (video, music, picture).The return value is a pipe separated string of filetypes (eg. '.mov|.avi').
You can use the above as keywords for arguments.
example:
- mTypes = xbmc.getSupportedMedia('video')
log(...)
log(msg[, level])--Write a string to XBMC's log file and the debug window.
msg : string - text to output.
level : [opt] integer - log level to ouput at. (default=LOGNOTICE)
*Note, You can use the above as keywords for arguments and skip certain optional arguments.
Once you use a keyword, all following arguments require the keyword.
Text is written to the log for the following conditions.
- loglevel -1 (NONE, nothing at all is logged)
- loglevel 0 (NORMAL, shows LOGNOTICE, LOGERROR, LOGSEVERE and LOGFATAL)
- loglevel 1 (DEBUG, shows all) See pydocs for valid values for level.
example:
- xbmc.log(msg='This is a test string.', level=xbmc.LOGDEBUG));
makeLegalFilename(...)
makeLegalFilename(filename[, fatX])--Returns a legal filename or path as a string.
filename : string or unicode - filename/path to make legal
fatX : [opt] bool - True=Xbox file system(Default)
*Note, If fatX is true you should pass a full path. If fatX is false only pass the basename of the path.
You can use the above as keywords for arguments and skip certain optional arguments.
Once you use a keyword, all following arguments require the keyword.
example:
- filename = xbmc.makeLegalFilename('F: Age: The Meltdown.avi')
playSFX(...)
playSFX(filename,[useCached])--Plays a wav file by filename
filename : string - filename of the wav file to play.
useCached : [opt] bool - False = Dump any previously cached wav associated with filename
example:
- xbmc.playSFX('special://xbmc/scripts/dingdong.wav')
- xbmc.playSFX('special://xbmc/scripts/dingdong.wav',False)
restart(...)
restart()--Restart the htpc. example:
- xbmc.restart()
shutdown(...)
Shutdown()--Shutdown the htpc.
example:
- xbmc.shutdown()
skinHasImage(...)
skinHasImage(image)--Returns True if the image file exists in the skin.
image : string - image filename
*Note, If the media resides in a subfolder include it. (eg. home-myfileshome-myfiles2.png)You can use the above as keywords for arguments.
example:
- exists = xbmc.skinHasImage('ButtonFocusedTexture.png')
sleep(...)
sleep(time)--Sleeps for 'time' msec.
time : integer - number of msec to sleep.
*Note, This is useful if you have for example aPlayer class that is waiting
for onPlayBackEnded() calls.
Throws: PyExc_TypeError, if time is not an integer.
example:
- xbmc.sleep(2000) # sleeps for 2 seconds
startServer(...)
startServer(typ, bStart, bWait)--start or stop a server.
typ : integer - use SERVER_* constants
bStart : bool - start (True) or stop (False) a server
bWait : [opt] bool - wait on stop before returning (not supported by all servers)
returnValue : bool - True or False
example:
- xbmc.startServer(xbmc.SERVER_AIRPLAYSERVER, False)
stopSFX(...)
stopSFX()--Stops wav file
example:
- xbmc.stopSFX()
translatePath(...)
translatePath(path)--Returns the translated path.
path : string or unicode - Path to format
*Note, Only useful if you are coding for both Linux and Windows.
e.g. Converts 'special://masterprofile/script_data' -> '/home/user/XBMC/UserData/script_data' on Linux.
example:
- fpath = xbmc.translatePath('special://masterprofile/script_data')
validatePath(...)
validatePath(path)--Returns the validated path.
path : string or unicode - Path to format
*Note, Only useful if you are coding for both Linux and Windows for fixing slash problems.
e.g. Corrects 'Z://something' -> 'Z:'
example:
- fpath = xbmc.validatePath(somepath)

Data
CAPTURE_FLAG_CONTINUOUS = 1
CAPTURE_FLAG_IMMEDIATELY = 2
CAPTURE_STATE_DONE = 3
CAPTURE_STATE_FAILED = 4
CAPTURE_STATE_WORKING = 0
DRIVE_NOT_READY = 1
ENGLISH_NAME = 2
ISO_639_1 = 0
ISO_639_2 = 1
LOGDEBUG = 0
LOGERROR = 4
LOGFATAL = 6
LOGINFO = 1
LOGNONE = 7
LOGNOTICE = 2
LOGSEVERE = 5
LOGWARNING = 3
PLAYER_CORE_AUTO = 0
PLAYER_CORE_DVDPLAYER = 1
PLAYER_CORE_MPLAYER = 2
PLAYER_CORE_PAPLAYER = 3
PLAYLIST_MUSIC = 0
PLAYLIST_VIDEO = 1
SERVER_AIRPLAYSERVER = 2
SERVER_EVENTSERVER = 6
SERVER_JSONRPCSERVER = 3
SERVER_UPNPRENDERER = 4
SERVER_UPNPSERVER = 5
SERVER_WEBSERVER = 1
SERVER_ZEROCONF = 7
TRAY_CLOSED_MEDIA_PRESENT = 96
TRAY_CLOSED_NO_MEDIA = 64
TRAY_OPEN = 16
__author__ = 'Team Kodi <http://kodi.tv>'
__credits__ = 'Team Kodi'
__date__ = 'Sun Aug 09 13:53:06 BST 2015'
__platform__ = 'ALL'
__version__ = '2.20.0'
abortRequested = False

Author
Team Kodi <http://kodi.tv>

Credits
Team Kodi


If you want to listen to video (TV) or audio (Radio) streams in XBMC you can do it as long as the codec/format and streaming-method (network-protocol) is supported by XBMC, (plus the stream can not be password protected).

Playing Internet Streams in XBMC

There are two ways this can be done, either via a custom .STRM file or a standard playlists (.PLS or .M3U).

The STRM method:

Create a normal text-file and rename the .txt extension to .strm then open it up with a text-editor (like Notepad in Microsoft Windows) and input the the direkt URL-link of the stream.

Adding strm files to the library xbmc tv
This should look like:
or
or

Other protocols are supported such as http://host/path/to/somefile.mp3.Then save/copy the .strm file to somewhere where you can open it from XBMC, (like on a SMB/SAMBA, XBMS or UPnP share, or FTP it to the local harddrive in the Xbox), like you would with any video/audio file. Open it using play in XBMC under My Videos or My Music (if it is a video stream, respectivly a audio stream). If the video stream does not work then the URL-link could be wrong, or possible the codec/format or the network-protocol it uses it not supported by XBMC.

Creating a .STRM file in Microsoft Windows step-by-step

Right click somewhere on your desktop or the right-side of Windows Explorer (the file-manaager in Microsoft Windows) when your inside a folder, and select 'New > Text Document'. Rename that file to something to represent the stream like 'BBC Radio-1 internet stream' and add the .strm extention to the end. If you have file extensions turned off on your computer, you may want to turn them back on by going into Windows Explorer's 'Tools' menu, selecting 'Folder Options > View' and then making sure 'Hide extensions for known file types' is unchecked, that way you can see that the file really has been renamed to whatever.strm and not whatever.strm.txt.

The standard playlists (.PLS or .M3U) method:

Adding strm files to the library xbmc download

Download a supported playlist (like .PLS or .M3U) file from the internet, (these playlist files can often be found on the website of the web-radio stations or TV web-casts websites). For example stream.pls or something else, (you can rename it to whatever you want but keep the same extention). Then save/copy the .strm file to somewhere where you can open it from XBMC, (like on a SMB/SAMBA, XBMS or UPnP share, or FTP it to the local harddrive in the Xbox), like you would with any video/audio file. Open it using play in XBMC under My Videos or My Music (if it is a video stream, respectivly a audio stream). If the video stream does not work then the URL-link could be wrong, or possible the codec/format or the network-protocol it uses it not supported by XBMC. You can check and edit playlists with a normal text-editor (like Notepad in Microsoft Windows).

ASX format

Adding Strm Files To The Library Xbmc Download

Adding Strm Files To The Library XbmcStrm

Sometimes if a stream has a .asx extension it will work fine on your Windows computer but XBMC will not play it. In these cases it could be that that .asx is not actualy a stream but instead just a playlist that redirects to a other stream (ie. the real stream). To play this stream you must download the .asx file to your computer and open it in a text-editor to find the true direct link, then add that link to a .STRM file which then can be played by XBMC.

Adding Strm Files To The Library Xbmc Online

Retrieved from ‘https://www.xbmc4xbox.org.uk/mediawiki/index.php?title=HOW-TO:_Play_Internet_Streams&oldid=16237’