Answer Questions
Michele_T Gadget With PHp
Is there a way to use .php instead of useing .html I have a code that I would like to use but its from a php script $url="www.YourSourceURL.com"; //replace with the full URL you wish to fetch the data from preg_match("/^(https :\/\/) ([^\/]*)(.*)/i", "$url", $matches); $domain = "http://" . $matches[2]; $page = $matches[3]; $fd = fopen($domain.$page, "rb"); $code = ""; while(!feof($fd)){ $code .= fread($fd, 4096); } fclose($fd); $start= strpos($code, "START PONT"); // replace with your STARTING POINT source of HTML page $finish= strpos($code, "END POINT"); // replace with your END POINT source of HTML page $length= $finish-$start; $code=substr($code, $ ...Show All
sumit kr Need some example -web gadget for DB access using web service
I need to prepare one gadget that fatch data from sql server and show in web gadget. I was thinking if I have one web service hosted is it possible to just use that to get data in web gadget. I would really appriceate if some one can provide me some good example. Thanks Sharad ...Show All
Parker Lewis identifying button from script
Hello, I'm trying to find a way to identify a button which is pressed without using id, so far with no luck. -- markup -- <button style:x="350px" style:y="100px" style:width="200px" style:height="100px" style:position="absolute" /> <button style:x="350px" style:y="300px" style:width="200px" style:height="100px" style:position="absolute" /> <button style:x="350px" style:y="500px" style:width="200px" style:height="100px" style:position="absolute" /> <button style:x="350px" style:y="700px" style:width="200px" style:height="100px" style:position="absolute" /> <button style:x="350px" style:y="900px" style:width="200px" style:height="100px" style:position="absolute" /> -- script -- addEventListener("d ...Show All
ADub Reverse playing stream
I am trying to reverse the stream while it is playing by using SetRate. I am getting the slowest, fastest and nearest supported rate for MF_RATE_REVERSE without any errors. It can also SetRate forward without problems. Now, for reverse, if I dont stop the stream I rightfully get MF_E_UNSUPPORTED_RATE_TRANSITION. So I get the playing position, stop the stream, SetRate and start the stream again. I dont see any errors, except that the session ends immidiately. Is there anything special I am missing Here is the code I am using (SetPlaybackRate was taken from the docs): HRESULT hr = S_OK; IMFRateControl *pRateControl = NULL; hr = MFGetService(m_pSession, MF_RATE_CONTROL_SERVICE, IID_IMFRateControl, (void**) &pRateControl); if (!SUCC ...Show All
hommer XmlHttpRequest and file access
Hello guys. i've just started developing gadgets, so these might be basic questions. ok, i've just developed a gadget which streams radio and returns info about the current track and author. i'm using xmlhttprequest and everything seems to work ok but sometimes i start getting the traditional access denied error which occurs in cross domain calls. i'm giving full permissions on the xml gadget fil so i'd be interesting in getting more info about this kind of errors and how to solve them in gadgets. i'm trying to write a file with some info that should be shared by all gadgets. i'm using thsi code: var pathToFile = System.Gadget.path + "\\lista.txt"; function saveFavorites( lst ){ var fso = new ActiveXObject( "Scripting.File ...Show All
shido Using IMFMixerBitmap
I have a DirectShow application that uses the VMR's IVMRMixerBitmap interface to blend a bitmap with a video. Before using it I understand you have to call IVMRFilterConfig's SetNumberOfStreams method to put the VMR into the correct state, and so far it works fine :) So now I'm trying to use Media Foundation and I've found corresponding interfaces such as IEVRFilterConfig and IMFMixerBitmap. Is the operation of these fairly similar ie. do I need to call IEVRFilterConfig's SetNumberOfStreams() before I can use IMFMixerBitmap I've been trying to do this and using IMFGetService's GetService() to try and get the IMFMixerBitmap interface afterwards but without much success - I keep getting a return code of 0xc00d36ba.. Is there anythin ...Show All
jdarias Dynamic Markup
Is it planned to support dynamic markup Like dynamic html. It would be very usable to be able to manage XMU elements from inside the script: function OnPlay() { elements["mainButton"].style.visible = false; } Yes, you can use DOM APIs to modify the document dynamically. You can refer to HD DVD Spec Annex Z for more info. The "Pretty Buttons" blog sample uses it to some extent; I don't have a very interesting example up right now that modifies lots of different things though... http://blogs.msdn.com/ptorr/archive/2006/07/06/658680.aspx This is great! Where can I find samples Samples "Chapters", "But ...Show All
MSDNuser102 Sliding menu animation error
The sliding menu I did in Markup, with Peter's help, is working pretty well. It slides open on start, and closes automatically if a track is selected. However one thing I cannot fix is that after the first time you open the menu while a video is playing, it will no longer animate, it just appears. For example: 1) Start project, after 1s menu slides open. 2) Select track, menu automatically slides shut. 3) Open menu using menu button (CTRL+M) and menu slides open. 4) Select another track and menu slides shut. 5) Open menu using menu button (CTRL+M) and menu DOES NOT slide open, but rather just appears. This will happen everytime you open the menu after step #4 in this example. Any advice on how to debug <timing clock="page" ...Show All
NeedSomeAnswers How to set lfHeight of LOGFONTW using “style:fontSize”?
I use formula: lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72); But I found there are differences with performance of iHDSim. Am I wrong This is really a forum for authoring discs, not for authoring players. If you are building a player and want assistance, please e-mail me at ptorr@microsoft.com and I will put you in contact with the right folks. ...Show All
Monish Nagisetty Gadget creep
Just an observation, but... Has anyone else noticed that Gadgets move of their own accord when Sidebar loads For instance, if Sidebar is closed by DEP, Gadgets randomly creep to the left when it restarts. Then there's the order on the Sidebar itself. If you shutdown/restart or exit and reload Sidebar, the attached Gadget order changes occasionally. nope but i have had them overlap each other once. think it was my code Just a thought, would the number of pixels 'drifted' bear any relation to the screen resolution Just wondering whether the sidebar scales dynamically to the screen and could therefore have varying drift between setups. I'm not sure this is the s ...Show All
Andr&#38;&#35;233&#59; Dias Layout for gadget
If I would like to create a layout with a navigation bar on the top for access to 3 different areas/panel of the gadget .... how Can I do this I hope you can help me! Something like the tabs on my Soapbox gadget I did that by creating a binding for a "tabstrip" that exposes an event that tells the container when a tab has changed. Then I create three "panels" (in my case, another binding) that I show or hide depending on what happened in the tab change event handler. Displaying the tabs is simple enough, as they're just list items (<li>) that have been styled via CSS to be "inline" rather than "block". There are some good tutorials on how to make tabs out of a list ( for example ) ...Show All
mugile Can someone test my gadget please?
I posted my gadget a couple weeks ago and it has gotten a good number of downloads (~1500 atm) but mostly negative response. I suspect the problem is that I developed and tested this gadget on Vista RTM, but the Gallery only lets you choose "RC1" as the newest compatibility level (stupid ). I have not had any problems loading into the Sidebar on any RTM machine. What would really help me is to get a few people try to load it up and make sure it is working properly under a variety of environments (RC1, RC2, Beta, RTM, whatever), so I can figure out what the issue is that people are having. You won't be able to test the full functionality of the gadget because it requires you to have a particular type of webcam to stream video. ...Show All
PhatBox RTM version of Windows Media Player 11 is incompatible with HDiSim
Just a quick note that the final release version of WMP 11 causes video playback to stop working in the HDiSim Beta. If you have already downloaded the beta of WMP 11, avoid upgrading to the RTM version if you also want to run HDiSim. Obviously you should upgrade to the RTM version on all your mission-critical machines that don't have HDiSim on them, but nobody is running beta software on their production machines, are they :-) I have two machines (one laptop, one desktop) which are both working with WMP 11 RTM. My third laptop does not work with any version of WMP. My research indicates that it is the lack of hardware T&L support on my third laptop. So, you may want to give the RTM a shot if you have hardware T&L. Otherw ...Show All
shekhar saran Sound card driver causes blue screen
I just don't know where to report, but i got beta for find and report bugs, so i do so. I installed driver for my creative sbpci 128 having ensoniq chipset, it works fine except if it is not disabled at boot vistabeta2 got blue screen, and reboot, if i disable sound card in safe mode, it boots fine, and if the sound card is enabled after boot it works, but i have to disable it before shutdown It sounds like you've discovered a bug. While this forum's main purpose is for technical questions about the Media Foundation multimedia API, we still thank you very much for reporting it. I've relayed the info you gave me to our audio driver experts, and we'll see if it's a known issue or if we can reproduce it. I or someone else will ma ...Show All
Bijay Mandal Multiplexing??
Hi Folks I've been a Scenarist author for sometime and now want to jump into HD-DVD authoring. Was wondering where to find a third party multiplexing tools once the programming is done Thanks - I'm sure this is the first of many posts here! Eric Sorry...I was under the impression we could author a HD-DVD without the use of a program like Scenarist. After Reading this: : http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwmt/html/introduction_to_hd_dvd_authoring__codz.asp It says I will need a service provider or third party tool to multiplex the title Just curious what it means by third part tool Check out this link....did they use Scenarist 4 to author this disc http://62.75.1 ...Show All
