Hi,
I'm trying to create a site where video is under programmatic control by javascript rather than skin buttons. Initially I tried Windows Media Player but wasn't getting what I wanted. Now moved to Flash. I've created a SWF using Web Video Player 5.0 and added the appropriate code to my site copied files etc. But whenever I try to run the following API calls on the Flash Object I get no response or error messages (both on IE and FF).
var flashmovie = window.document["example"];
flashMovie.Stop();
Using this Web page http://www.webwasp.co.uk/tutorials/b23- … /index.php
I discovered many commands to have very close control of the Flash Videos. Such as TPlay(), TStopPlay(), TGotoFrame() etc. I wish to use these for very specific control via external (to the player) controls (so not control via skin buttons - long story, it is what I need to do). (Still confused by the TPlay/TStop and Play/Stop - T or not to T?).
After a confusing few days I guesstimated that my Flash videos were not the same as others. A Right click view of the Context Menu proved the issue. Many Flash videos have access to Forward, Rewind, Back commands. My CC created video does not.
So, any explanations as to something like CC creating Flash Lite... perhaps the Web Video Player can only create half hearted videos (good enough for most) but don't have the full whack of features for the fine control I require. Or perhaps there is a setting or xml flag I need.
If CC WVP can't help then any suggestions?
Oh, I started using SWFObject yesterday. When creating a new WebVideo today it automagically did it in the SWFObject style. I'm not convinced SWFObject contributes anything - what is it for? (I thought it would help provide access to the API but not the case).
Cheers
Stuart
I'm trying to create a site where video is under programmatic control by javascript rather than skin buttons. Initially I tried Windows Media Player but wasn't getting what I wanted. Now moved to Flash. I've created a SWF using Web Video Player 5.0 and added the appropriate code to my site copied files etc. But whenever I try to run the following API calls on the Flash Object I get no response or error messages (both on IE and FF).
var flashmovie = window.document["example"];
flashMovie.Stop();
Using this Web page http://www.webwasp.co.uk/tutorials/b23- … /index.php
I discovered many commands to have very close control of the Flash Videos. Such as TPlay(), TStopPlay(), TGotoFrame() etc. I wish to use these for very specific control via external (to the player) controls (so not control via skin buttons - long story, it is what I need to do). (Still confused by the TPlay/TStop and Play/Stop - T or not to T?).
After a confusing few days I guesstimated that my Flash videos were not the same as others. A Right click view of the Context Menu proved the issue. Many Flash videos have access to Forward, Rewind, Back commands. My CC created video does not.
So, any explanations as to something like CC creating Flash Lite... perhaps the Web Video Player can only create half hearted videos (good enough for most) but don't have the full whack of features for the fine control I require. Or perhaps there is a setting or xml flag I need.
If CC WVP can't help then any suggestions?
Oh, I started using SWFObject yesterday. When creating a new WebVideo today it automagically did it in the SWFObject style. I'm not convinced SWFObject contributes anything - what is it for? (I thought it would help provide access to the API but not the case).
Cheers
Stuart
Oh dear - I've just discovered there is a thing called Flash Lite. For mobile apps.
I of course mean Flash - nearly the full thing but not quite but I'm sure it will be good enough. Flash Lite hopefully sums it up.
I've learned a bit more.
Play is a Standard Methods and TPlay is a TellTarget Method.
No idea what that means but this is the link
http://www.adobe.com/support/flash/publ … sh_03.html
Some suggestion that these calls stop at Flash Version 5. I assume the latest is 9.0.XXX.
PS
I've noticed that myvideoplayer.html and the folder myvideoplayer_files are joined at the hip. Move or Delete one and the other goes with it. Freakiest thing I've ever seen for an operating system command. Can't begin to imagine how CC manages to do this. Or why.
I of course mean Flash - nearly the full thing but not quite but I'm sure it will be good enough. Flash Lite hopefully sums it up.
I've learned a bit more.
Play is a Standard Methods and TPlay is a TellTarget Method.
No idea what that means but this is the link
http://www.adobe.com/support/flash/publ … sh_03.html
Some suggestion that these calls stop at Flash Version 5. I assume the latest is 9.0.XXX.
PS
I've noticed that myvideoplayer.html and the folder myvideoplayer_files are joined at the hip. Move or Delete one and the other goes with it. Freakiest thing I've ever seen for an operating system command. Can't begin to imagine how CC manages to do this. Or why.
stuart wrote:
Freakiest thing I've ever seen for an operating system command.
Freakiest thing I've ever seen for an operating system command.
Funny guy, Stuart, although I don't know what you mean by that. As with all html/web design, files loading other files need to know where the files are located/stored. So, naturally, if you move one away from the other, the html isn't going to be able to load the objects properly.
I think part of the problem is the example you're seeing of controlling the video is where the swf file itself is the video. Web Video Player converts your video file into an FLV and the SWF file only controls it (SWF's more of a middleman in this case, not the video itself). So, that would probably explain why you wouldn't see the same Rewind/Forward options. I personally don't think you can use external code to control the videos played through Web Video Player's SWF, but I'm not really one to say. There may be a way to use your own code to play/pause/stop the FLVs, but I do believe the purpose of creating Web Video Player was so that we wouldn't have to. http://www.flashstrap.com
http://www.lodipc.com
Thanks Adam,
Yes a middleman explains the issue well. Simplifying things for the user is obviously what CC is all about. Perhaps I can go direct to the FLV in some Ninja style. Sounds difficult.
I've asked the same question on other web forums including the adobe flash forum (and they should know). But no replies. I always end up trying to do Ninja stuff.
But I am genuinely spooked by the file/folder link. When I see that kind of thing within an application I think great - shows how careful the developer has been to help the user not make mistakes but to export that to the operating system seems odd to me. Partly as I can't begin to imagine how it is done. Seems very virus like. Almost like a Big Brother monitoring my files. Just my sinister imagination.
Cheers
Stuart
Yes a middleman explains the issue well. Simplifying things for the user is obviously what CC is all about. Perhaps I can go direct to the FLV in some Ninja style. Sounds difficult.
I've asked the same question on other web forums including the adobe flash forum (and they should know). But no replies. I always end up trying to do Ninja stuff.
But I am genuinely spooked by the file/folder link. When I see that kind of thing within an application I think great - shows how careful the developer has been to help the user not make mistakes but to export that to the operating system seems odd to me. Partly as I can't begin to imagine how it is done. Seems very virus like. Almost like a Big Brother monitoring my files. Just my sinister imagination.
Cheers
Stuart
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.