Re: player result codes?
Thanks for that verification, Ben. Ben Rubinstein wrote: Anyway, back to your question - while I don't know what that number signifies either - I can say that from experience recently working with machines that didn't do sound (custom made units with Windows XP Embedded), in this instance you get an error before using "start player", at the point that you set the filename... ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
result codes (was Re: player result codes?)
I just wrote: ... in general I think it would be great if the dictionary had a standard callout "result" to describe the result of all commands and messages, just like it has "parameters". It's one of the few tricks that I think were missed in the original TD. This has been a long-standing niggle for me, so having written that I finally hauled myself off to bugzilla. Found an existing request and added my support to it (also suggesting an explicit place to note the effect of a command on 'it'): http://support.runrev.com/bugdatabase/show_bug.cgi?id=2778 Please add a vote for this request if you think it would be helpful. Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com| Fax : +44 (0)1273-728866 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
On 19/7/06 23:22, Phil Davis wrote: In my experience, 'start player' used to return empty until something changed, and now I get a 2-digit number most of the time. And I often get the same number a couple of times in a row, even if I change the player filename. Go figger. FWIW, I decided my client's software doesn't need to do that test after all. :o) It's almost impossible to buy an off-the-shelf machine that doesn't do sound. Plus, I'm not really sure what the returned value tells you - my original assumption was that the player would return a non-empty value if the 'start player' command didn't finish successfully. I guess I'll prove/disprove that one and call it good. I'd also like to know what that result means - in general I think it would be great if the dictionary had a standard callout "result" to describe the result of all commands and messages, just like it has "parameters". It's one of the few tricks that I think were missed in the original TD. Anyway, back to your question - while I don't know what that number signifies either - I can say that from experience recently working with machines that didn't do sound (custom made units with Windows XP Embedded), in this instance you get an error before using "start player", at the point that you set the filename - ie even if the file exists, when you set the filename of the player Rev doesn't just store that but starts pre-rolling the file, setting the properties of the player that you might want to interrogate like duration etc. Certainly if you've got the sound hardware, but the software infrastructure to play the sound isn't right, you get an error at that stage. My guess is that if you don't have the audio hardware, the software would either not be installed or report an error back to Rev also. If the machine doesn't do sound, you'll get an error when you set the filename of the player. If you didn't get an error at that stage, I think you can be confident that start player will work. HTH, Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com| Fax : +44 (0)1273-728866 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
Your theory sounds entirely plausible to me, Scott. In my experience, 'start player' used to return empty until something changed, and now I get a 2-digit number most of the time. And I often get the same number a couple of times in a row, even if I change the player filename. Go figger. FWIW, I decided my client's software doesn't need to do that test after all. :o) It's almost impossible to buy an off-the-shelf machine that doesn't do sound. Plus, I'm not really sure what the returned value tells you - my original assumption was that the player would return a non-empty value if the 'start player' command didn't finish successfully. I guess I'll prove/disprove that one and call it good. Thanks guys. What a community! Phil Davis Scott Rossi wrote: Recently, Trevor DeVore wrote: Ahh. Then I'm not sure. Are they OS error codes by chance? What OS are you on? Are you using QuickTime? Intel Mac OS 10.4.7 QuickTime 7.1.2 Rev 2.6.1 I'm running dual G5 with 10.4.7 and QT 7.1.2. The result after executing the "start player" command doesn't seem to return anything meaningful. I get something like 2 and the number keeps incrementing every time I try it. I thought this number was something like a "media ID" that is returned after the successful start of a player (kind of like each time you create a control, you get a new ID). Is this not the case? Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
On Jul 19, 2006, at 2:59 PM, Scott Rossi wrote: Recently, Trevor DeVore wrote: I'm running dual G5 with 10.4.7 and QT 7.1.2. The result after executing the "start player" command doesn't seem to return anything meaningful. I get something like 2 and the number keeps incrementing every time I try it. I thought this number was something like a "media ID" that is returned after the successful start of a player (kind of like each time you create a control, you get a new ID). Is this not the case? Possibly. I'm not sure what it is and the docs don't have anything about the result returned. If it is an ID I'm not sure what it would refer to. Are they any handlers in Rev that would use it? I'm not sure which QT API function "start player" is calling to get QT to play the movie but the two possibilities that come to mind are SetMovieRate and MCDoAction. SetMovieRate doesn't return a value and MCDoAction just returns an error number if there was an error. -- Trevor DeVore Blue Mango Learning Systems - www.bluemangolearning.com [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
Recently, Trevor DeVore wrote: >>> Ahh. Then I'm not sure. Are they OS error codes by chance? What >>> OS are you on? Are you using QuickTime? >> >> Intel Mac >> OS 10.4.7 >> QuickTime 7.1.2 >> Rev 2.6.1 > > I'm running dual G5 with 10.4.7 and QT 7.1.2. The result after > executing the "start player" command doesn't seem to return anything > meaningful. I get something like 2 and the number keeps > incrementing every time I try it. I thought this number was something like a "media ID" that is returned after the successful start of a player (kind of like each time you create a control, you get a new ID). Is this not the case? Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
On Jul 19, 2006, at 2:02 PM, Phil Davis wrote: Ahh. Then I'm not sure. Are they OS error codes by chance? What OS are you on? Are you using QuickTime? Intel Mac OS 10.4.7 QuickTime 7.1.2 Rev 2.6.1 I'm running dual G5 with 10.4.7 and QT 7.1.2. The result after executing the "start player" command doesn't seem to return anything meaningful. I get something like 2 and the number keeps incrementing every time I try it. You mentioned you wanted to check if a host machine could play digital audio files. Is there a codec that needs to be installed or a minimum QT version? Since you said the player opens the file without any problems (no error in the result returned) I wonder if you can check for a component. -- Trevor DeVore Blue Mango Learning Systems - www.bluemangolearning.com [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
Trevor DeVore wrote: On Jul 19, 2006, at 12:51 PM, Phil Davis wrote: Sorry - I abbreviated the actual code for the list. A 'test put' tells me the result is empty after setting the filename. I'm assuming Rev can open the file even if the file can't be played on the current hardware. The latter is what I'm really trying to determine. Ahh. Then I'm not sure. Are they OS error codes by chance? What OS are you on? Are you using QuickTime? Intel Mac OS 10.4.7 QuickTime 7.1.2 Rev 2.6.1 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
On Jul 19, 2006, at 12:51 PM, Phil Davis wrote: Sorry - I abbreviated the actual code for the list. A 'test put' tells me the result is empty after setting the filename. I'm assuming Rev can open the file even if the file can't be played on the current hardware. The latter is what I'm really trying to determine. Ahh. Then I'm not sure. Are they OS error codes by chance? What OS are you on? Are you using QuickTime? -- Trevor DeVore Blue Mango Learning Systems - www.bluemangolearning.com [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
Trevor DeVore wrote: On Jul 19, 2006, at 12:25 PM, Phil Davis wrote: Does anyone know where I can find a list of player codes and their meanings? I have this code in a handler: set the filename of tAudioPlayer to tAudioTestFile set the playSelection of tAudioPlayer to false -- to force entire clip to play set the playLoudness of tAudioPlayer to 0 -- to prevent audible player output start player "audioTest" of stack "System" put the result into tPlayResult if tPlayResult <> 0 then -- do error handling end if With everything set correctly (AFAIK), I still get various non-zero numeric 'result' codes. Phil, If you are trying to check if Rev could open the file then shouldn't you check the result after setting the filename property? This returns an error msg if the player object couldn't open the file. Or are the files > opening correctly but you are trying to check something else? Sorry - I abbreviated the actual code for the list. A 'test put' tells me the result is empty after setting the filename. I'm assuming Rev can open the file even if the file can't be played on the current hardware. The latter is what I'm really trying to determine. Thanks Trevor - Phil ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: player result codes?
On Jul 19, 2006, at 12:25 PM, Phil Davis wrote: Does anyone know where I can find a list of player codes and their meanings? I have this code in a handler: set the filename of tAudioPlayer to tAudioTestFile set the playSelection of tAudioPlayer to false -- to force entire clip to play set the playLoudness of tAudioPlayer to 0 -- to prevent audible player output start player "audioTest" of stack "System" put the result into tPlayResult if tPlayResult <> 0 then -- do error handling end if With everything set correctly (AFAIK), I still get various non-zero numeric 'result' codes. Phil, If you are trying to check if Rev could open the file then shouldn't you check the result after setting the filename property? This returns an error msg if the player object couldn't open the file. Or are the files opening correctly but you are trying to check something else? -- Trevor DeVore Blue Mango Learning Systems - www.bluemangolearning.com [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
player result codes?
Does anyone know where I can find a list of player codes and their meanings? I have this code in a handler: set the filename of tAudioPlayer to tAudioTestFile set the playSelection of tAudioPlayer to false -- to force entire clip to play set the playLoudness of tAudioPlayer to 0 -- to prevent audible player output start player "audioTest" of stack "System" put the result into tPlayResult if tPlayResult <> 0 then -- do error handling end if With everything set correctly (AFAIK), I still get various non-zero numeric 'result' codes. So far I've gotten these codes: 28, 29, 30, 32, 65. - My 'put ... after msg' test statements tell me everything is set correctly. - The stack containing the player is: - opened inv, not just in memory - password-protected, but the problem also happens when it's not Or is there another approach I can take to verify that the host machine can play digitial audio files? Thanks everyone - Phil Davis ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution