Answer Questions
GLutz78 Authorization plugin: URL referer retrieving problem
Hello all. I am currently developping an authorization plugin . The authorization is based on the URL referer . In a few words, I would like to retrieve the client URL referer (if available), and compare it to a list of referers authorized to access to the content of my publication point. In the AuthorizeEvent interface implementation, I combine the UserContext and the GetStringValue method to retrieve the URL Referer : string l__URLRefererString= string.Empty; io__UserContext.GetStringValue ( WMSDefines.WMS_USER_REFERER, WMSDefines.WMS_USER_REFERER_ID, out l__URLRefererString, 0 ); However, il still get the same problem, this method throws the following exception: Exception from HRESULT: 0x8002000B ...Show All
kkos Server monitor gadget
Hi all, Been trying my hand at this writing sidebar gadget's malarky :) One of the things I felt was missing was a simple little sysadmin util to ping servers, couldn't find one so wrote the world's most inelegant one - please, someone with a clue about how you get an options page, feel free to modify it :) Basically, create a gadget (I call it Server_Mon.gadget) and paste this into serv_mon.html in that directory. Create a standard gadget.xml, icon.jpg and a file called C:\Temp\Serv_Mon.ini containing one server name or IP per line. You'll need to adjust the height tag in the serv_mon.html file to make it look right for the number of servers you have. Good luck :) <html> <head> <title>Se ...Show All
Farrokh Moori Welcome to the Media Foundation Development Forum!
Media Foundation is the next generation multimedia platform that we are shipping with Vista. We have built this platform from the ground up to embrace the wave of next generation premium content. Our focus has been on robustness, audio video quality, and seamless interoperability thereby making the Vista PC a great platform for all your audio video experiences. And last but not the least, thro Media Foundation we have tried to address some of the limitations in the current digital media platforms. Please feel free to post any questions or comments you have about the Media Foundation platform. We are eagerly waiting to help you in any way we can. Thanks and happy posting! Prakash Channagiri (and the rest of the Media Foun ...Show All
Stigern XPath - selecting an element by index
Seemingly this should be a valid XPath select for a <cue> or <par> -- why does it's inclusion cause iHDSim to report an "Unknown Exception" //div[@id=$chapter]/button[1] This should identify a specific <div> (using an XPathVariable set in script), and get the first button it contains. In fact it seems that the bracketed subscript notation doesn't work at all... Thanks again, that was even more helpful. Using el.state.focused='true'; el.state.unsetProperty('focused'); ...sounds like a winner, since using the markup engine here was a workaround. Alternately, using the XPath contains() function to simulate an intersection might absolve the need for script poking the focus aro ...Show All
RamyaP Timing Animations within Script
One of the problems I am encountering as I put more animations script side, is the ability to have animations occur one after the other, rather than simultaneously. Is there a straightforward way of having animations occur one after the other For example I want the following script to fire in sequence, one assignment after the other, but only after the previous one is completed. document.FOO.style.animateProperty("x","500px",2); // don't turn off display until animation completes document.FOO_BUTTON.style.display = "none"; Is wait(time) supported (iHDSim does not like it) If so is in sync with the application tick or what The closest you can get to a sleep or wait function is a timer, which will call back to your app afte ...Show All
MDesigner Gadget resets?
I've been working on a gadget that makes use of the XmlHttpRequest object to get data from a web application. Currently, I'm having a problem in that the web app requires the user to log in by first requesting an auth token, then sending the user to a webpage (with that token as a parameter), and then once the user has logged in, requesting the users sessionId. I have the first part working, I can get an auth token just fine and then I try to load up the login page in a flyout (using the iframe trick), but I keep getting navigation cancelled. Also, as soon as my gadget opens the flyout, it seems to reset itself. I traced the behaviour to the fact that onreadystatecomplete was being called again (I only do my initialization code when readyS ...Show All
Seraphino WMP
I am trying to embed an mp3 file into a gadget and then play it using a windows media player. it seems to be not loading the file. when i context-click on the media player i get: Windows Media Player cannot play the file because the specified protocol is not supported. If you typed a URL in the Open URL dialog box, try using a different transport protocol (for example, "http:" or "rtsp:"). the protocol, of course, is x-gadget:// can anyone recommend how i might be able to accomplish this thanks, milton. You shouldn't need to specify a protocol for a file. Just the file with the full pathname should do the trick. Sorry, didn't realise you wer ...Show All
boston_sql92 JScript
Hello, I am brand-new to HD DVD authoring so apologies if this is an obvious question. I'm coming from the web development world, and am looking to port several items of "bonus content" from the web onto HD DVD. More specifically, there are several simple applications (mostly games) that I have written in JScript that I would like to repurpose for distribution on disc. But what I have not found is any reference as to what elements of JScript are compatible with HD DVD interactivity. Obviously the browser-based objects (window object, etc.) are N/A, but are there are also specific data types, variables, operators, objects, etc. that are not supported If there's a tut or reference on this anywhere, that would be great. Thank ...Show All
Montana Jones Taking Screen Snapshots
Is anyone aware of a way to take screen captures of the video and save those to the player storage for later viewing Xavier Arnau wrote: i can't follow you at all, you say that in this code the event comes from the playlist... what i need to write in the playlist to do that On the other side... i don't understand the part of ps directory, i have to create it manually Or it already exists How can i open it to saw if there's anything in... I have C:\Archivos de programa\HD DVD Interactivity Jumpstart\Samples\Events\ADV_OBJ and C:\Archivos de programa\HD DVD Interactivity Jumpstart\Samples\Events\HVDVD_TS so where is the ps directory For firing events from the playlist use <Scheduled ...Show All
Jeff28 Is there a way to do a frame grab of a movie and store it as a jpg or png in the persistent storage ?
Hi All, I was wondering if there is a way to do a frame grab of a particular scene while watching the movie and store that frame as a png or jpg in the persistent storage of the player Let's say I define a function for key "A" on the remote which does this when pressed. Any pointers would be appreciated. Thanks Peter Torr - MSFT wrote: In the example given, it is only saving to filecache (ie, memory). For a permanent copy, you would need to copy it from file:///filecache/whatever.cvi to file:///required/{your-guid}/whatever.cvi , then it would appear on C:\HDDVD\HD_DVD\{your-guid}\ Thanks Peter/Andy/Gunnar, This works. I was able to reduced the size using changeImageSize and co ...Show All
Bravo2007 Difference between Primary Video Set and Secondary Video Set?
As per spec, Substitute Audio Video in Secondary Video set is for substitution of Main Audio/Video in the corresponding Primary Video set . Why is this sort of substitution required. Can any one expalin the necessity of this substitution in real time HDDVD movie discs. Another difference: Primary EVOBs must come from the shiny disc. Secondary EVOBs can come from disc, ps or network. ok.Thanks. I'm clear with secondary audio (in substituteAudioVideo). Can u pls explain about secondary video Secondary audio video clips can contain SubVideo or SubAudio tracks. SubVideo/SubVideo is an audio/video track in addtion to the main audio/video track. Sample application: ...Show All
Nick Sheng Link opening weirdness in x64
Hello, In x86 Vista, this will open IE7 in a gadget: var ie = new ActiveXObject('InternetExplorer.Application'); ie.navigate2(URL); In x64, nothing... Any ideas I need to open IE and not the default browser. Thanks, Ty It's probably a security issue, x64 implements a slightly different model to x86. Try an IFrame instead. An iframe I don't understand. I want to open a new browser window not something in the gadget. What is the preferred way to do this Ty ...Show All
Banhnam Clarification::Multiple Timing Sections::Regarding "use" attribute
In a markup having multiple <timing> sections , can a cue in timing_section_1 refer to a "def" in timing_section_2 and vice versa using "use" attribute Thanks I don't recall any restrictions on this. A strict reading of 7.7.2.9.10 seems to disallow cross timing block references: "The defs within a timing element are not timed, but simply act as a common resource for other descendent elements of the timing element ." (emphasis mine) ...Show All
Carl Daniel Just wrote my first gadget.
I have been doing software development professionally and personally so I decided to check out what this new gadget thing for Vista is. Well I finished up my first gadget which is just a simple combination of javascript and css. The link is as follows for the zip file that contains the gadget: http://www.anthonyw.net/SystemInfo.gadget.zip Additionally I have done some things with enumerating CPUs so that if anyone makes a call to System.Machine.CPUs they can process all of them. The following code is easy to follow. <script type="text/javascript"> var compName = "Your computer is: " + System.Environment.getEnvironmentVariable("COMPUTERNAME") + "\n"; var availMem = "Available memory: " ...Show All
Jorryt Dll Won't register
I wrote a gadget that uses a C++ dll as an ActiveX object. The dll was written in VS2005 on an XP pro machine using Bruce Williams tutorial as a guide. It registers fine in XP (using regsvr32 and manually registering it in my gadget) and when I open my gadget.html in IE it works as it should. When I move the gadget over to my shiny new vista machine (Business edition) the DLL can't register. I can write the appropriate values to HKCU manually in the gadget, but it still gives me an error when I try to create the ActiveX object containing my class and regsvr32 gives me errors about the side-by-side configuration. I've tried it as both administrator and standard user. Does anyone have any insight about how to register my DLL Thanks ...Show All
