Log in

View Full Version : Jumping directly into action

November 3rd, 2009, 11:04 AM
Hello, does anyone know how to pass an action to the popup box shown below, or better yet bypass the dialog box all together and jump directly into the "play" action.


I tried the following code but it does not seem to work

list = mc.GetWindow(14002).GetList(120)
listitems = list.GetItems()
lfi = list.GetFocusedItem()
listitem = listitems[lfi]
except Exception, e:
print "ERROR " + str( e )

mplayer = mc.GetPlayer()
if mplayer.IsPlaying():
mplayer.Play( listitem )

Any help is greatly appreciated.


November 3rd, 2009, 04:12 PM
when I try using mc.GetPlayer().Play(listitem) I get:

16:56:36 T:4120 M:2193518592 INFO: Scriptresult: Success
16:56:36 T:3668 M:2193518592 INFO: Loading skin file: DialogProgress.xml
16:56:36 T:5412 M:2195275776 NOTICE: DVDPlayer: Opening: http://images.framechannel.com/feeds/weather3day.php/weatherCode=02481/languageId=1/resolutionId=1/56986.jpg
16:56:37 T:5412 M:2195619840 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:56:37 T:3592 M:2196197376 NOTICE: Creating InputStream
16:56:38 T:3592 M:2196115456 INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles
16:56:38 T:3592 M:2196111360 INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles done
16:56:38 T:3592 M:2196111360 NOTICE: Creating Demuxer
16:56:39 T:3592 M:2196041728 ERROR: CDVDDemuxFFmpeg::Open - error probing input format, http://images.framechannel.com/feeds/weather3day.php/weatherCode=02481/languageId=1/resolutionId=1/56986.jpg
16:56:39 T:3592 M:2196037632 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
16:56:39 T:3592 M:2196037632 NOTICE: CDVDPlayer::OnExit()
16:56:39 T:3592 M:2196037632 NOTICE: CDVDPlayer::OnExit() deleting input stream
16:56:39 T:3668 M:2196193280 NOTICE: CDVDPlayer::CloseFile()
16:56:39 T:3668 M:2196193280 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:56:39 T:3668 M:2196193280 NOTICE: DVDPlayer: waiting for threads to exit
16:56:39 T:3668 M:2196193280 NOTICE: DVDPlayer: finished waiting
16:57:09 T:3668 M:2193420288 INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http ://images.framechannel.com (easy=044FB008, multi=019A6B88)
42064128 WARNING: CGUITextureManager::ReleaseTexture: Unable to release texture list_frame_device.png
13:13:09 T:2288 M:234

however using mc.GetPlayer().PlayWithActionMenu(listitem) I get menu shown in previous post and things work great.

Any one know what the creating demuxing error is all about? plucking the URL from the log and viewing it with Firefox works fine too. I am puzzled.

I assume that the video player will display the image and I do not have to explicitly select an image player to do so.

As before, you help is greatly appreciated.