Why doesn't "stop player" results in "playStopped"?
Mark Schonewille
m.schonewille at economy-x-talk.com
Wed Jun 4 07:47:02 EDT 2008
Hi Tiemo,
Not sending the playStopped and playPaused messages might prevent
recursion from occurring. Hiding a player object does send the
playStopped message, which would make the recursion argument very
weak. So, I don't know what is the reason, but I don't really care, as
it is easy to send the message yourself. Correctly handling an
unwanted message, such as the playStopped message when hiding a
player, is more difficult, especially when you're unaware of it. So,
perhaps it is better to have some messages not sent, rather than to
have them sent unexpectedly.
When the alwaysBuffer of a player is true, it stays in memory when you
stop the movie and even when you go to a different card. Setting the
filename of the player to a different path, releases the memory used
for the previous movie and loads the new movie into memory (at least,
I think so). If the alwaysBuffer is false, the movie needs to be
loaded each time when the card with the player object is opened.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html
for more info.
On 4 jun 2008, at 12:16, Tiemo Hollmann TB wrote:
> Hi all,
>
> I think I am still missing some basics of the Rev player object. Rev
> 2.9 I
> would like to use my own buttons as controls.
>
>
>
> When sending "start player", the video starts and I get a message
> "playStarted", OK.
>
> When the Video is finished I get the message "playStopped", OK.
>
> When sending "stop player", the video stopps, but I don't get a
> message
> "playStopped" - Why?
>
> When using the standard player control "pause" I get a message
> "playPaused",
> ok.
>
> When using "set the paused of player foo to true", the Video pauses
> ok, but
> I don't get a message "playPaused" - Why?
>
>
>
> I could define my own status messages, but couldn't I use the standard
> control commands for my own? Is there really only a start and stop
> player
> command?
>
>
>
> Additional question. In other IDEs or languages I have to open a video
> before playing and close the video after finishing, otherwise the
> multimedia
> channel would keep open and Iwould get an "overflow" after a certain
> amount
> of videos. Obviously Rev handles all this open and close for me. Am
> I right
> that Rev closes the video channel after I stop the player and I
> don't have
> to care about closing? But is this also true, when using "stop
> player",
> without getting the "playStopped" message (see above)? Or can I
> close the
> video for myself anyway?
>
>
>
> Thanks for any tipps and coaching
>
> Tiemo
>
More information about the use-livecode
mailing list