Jump to content


Photo

Startup Video Playback Troubles


  • Please log in to reply
4 replies to this topic

#1 DoNutsDC

DoNutsDC

    X-S Enthusiast

  • Members
  • 6 posts

Posted 21 July 2005 - 02:52 AM

I've taken the StartUpVideo script a bit further by changing the script to select a playlist composed of music videos, randomize it and play it instead of the default animation that came with the script. For some reason, on only 2 XBOXes can I get it running flawlessly but on others, no matter which skin I select, it randomly freezes. I have the least amount of freezes on PMIII while the CE and LE versions of PMIII freeze the most often. The script goes as follows:

QUOTE
import xbmc

file = 'q:\\albums\\playlists\\videos.m3u'
pls = xbmc.PlayList(2)
pls.load(file)
pls.shuffle()
xbmc.Player().play(pls)
xbmc.executebuiltin('XBMC.ActivateWindow(0)')


I do not know if it depends on the XBOXes or the bioses/chips, but my personal XBOXes through multiple builds of XBMC has had no problems up to date. Maybe it could be an issue with the script but I'm not sure. The amount of videos do not seem to matter as with large or small playlists it still randomly freezes. Any help or feedback is appreciated.

I am currently using a 1.0 TSOP running a 6-26 RocafellaSquali build and a X3 chip running the 3108 bios on a 1.4 with the 7-17 RocafellaSquali build.

#2 DoNutsDC

DoNutsDC

    X-S Enthusiast

  • Members
  • 6 posts

Posted 21 July 2005 - 05:24 AM

alright i was able to fix the script to pretty much work... i tested it out on an xbox that had problems and two lines of code seemed to fix the problem... the new script goes as follows:

QUOTE
import xbmc
from time import sleep

file = 'q:\\albums\\playlists\\videos.m3u'
pls = xbmc.PlayList(2)
pls.load(file)
pls.shuffle()
sleep(0.3)
xbmc.Player().play(pls)
xbmc.executebuiltin('XBMC.ActivateWindow(0)')


feel free to use this script for your own pleasure... smile.gif

#3 MrShadow

MrShadow

    X-S Senior Member

  • Members
  • PipPip
  • 201 posts
  • Location:Modesto, CA
  • Xbox Version:v1.6
  • 360 version:unknown

Posted 21 July 2005 - 05:29 AM

Thanks for the nice script. I will try it sometime. Hopefully it works smile.gif

#4 DoNutsDC

DoNutsDC

    X-S Enthusiast

  • Members
  • 6 posts

Posted 21 July 2005 - 06:12 AM

yeah no problem... just an additional modification of the original StartUpVideo script... if it still freezes, try moving the "sleep(0.3)" one line below so it looks like

QUOTE
xbmc.Player().play(pls)
sleep(0.3)
xbmc.executebuiltin('XBMC.ActivateWindow(0)')


turns out the problem seems to be that skin or video doesnt fully load when xbmc tries to minimize it into the background... that little delay fixes the problem

beerchug.gif

#5 bozo8787

bozo8787

    X-S Member

  • Members
  • Pip
  • 79 posts

Posted 02 August 2005 - 07:00 AM

QUOTE(DoNutsDC @ Jul 21 2005, 06:35 AM)
alright i was able to fix the script to pretty much work... i tested it out on an xbox that had problems and two lines of code seemed to fix the problem... the new script goes as follows:
feel free to use this script for your own pleasure...  smile.gif

View Post



I wish I could get this to work but I have a video playlist from Launch Browser yet it's not .M3U it's xml and txt. Some are working on this including myself over HERE




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users