View Full Version : WMP plugin stops playing when switching pages
BlueMe
11-22-2007, 07:24 AM
Hi guys,
I have a problem, I've read -all- 167 pages (AMS 6.0 subforum) and didn't find the answer i wanted. I usually don't ask for help but this time, im stuck at this.
I did find something related with my problem and also a thread (wich I forgot to bookmark/save) in wich is mentioned that this is the default behaviour of WMP plugin, not playing when changing pages :(
I have six pages in my application, in the first page i have the media_player plugin from wich users can open an audio/video file but if I browse to another page, the plugin stops playing.
After reading a lot of this forum, I've asked a member here (on YM!) wich said it would post an example, since at that point I wasn't in hurry, I've waited... but no example, so now I'm asking you, all:
Is there a way I can solve this? How?
I need the media_player plugin or else my application in wich I've put a lot of time and effort will be very boring :(
usernameCasper
11-22-2007, 08:03 AM
Hey Blueme,
Have you already tried to inheret the WMP-page on other pages?
Hth,
-Casper
BlueMe
11-22-2007, 08:35 AM
Yes, I tried that and nothing, stops playback same as before.
I'm asking myself, why this plugin isn't that well documented.
For example, you have the option to hide the transport controls but then you can't code Prev/Next?
In the plugin's help file, you have just "SEEK" :huh
EDIT: Under the last post, there's "Similar threads" I just found that thread wich I forgot to bookmark: http://www.indigorose.com/forums/showthread.php?t=15518
I'm thinking (and hoping) that it must be a way to do this when you can do so much with AMS.
usernameCasper
11-22-2007, 08:37 AM
I don't know about this plugin, never used it.
Can't you store the playlength in a global variable to be used in other pages
to set the position ?
Maybe that works, if it won't I can't help you, maybe someone else.
Hth,
Casper
BlueMe
11-22-2007, 08:48 AM
Doing that won't do me any good, even if it would work it would be a gap when switching pages, besides that I use streams as well..
Thanks for trying to help Casper.
srussell
11-22-2007, 08:58 AM
How about creating single page with the WMP video and change the other content dynamically? You could change the content of a label or paragraph object as needed.
I haven't seen your app, but you could show/hide groups of objects with variables... i.e show Paragraph 2, hide Paragraph 1, etc. as well
Hope that helps...
srussell makes a good point. All objects are per-page so there is not going to be an easy way to span multiple pages with a single playing object.
Adam Kapilik
azmanar
11-22-2007, 02:42 PM
Hi,
Currently, Audio/Video in WMP Object and FLASH object will stop when changing pages.
However, there is a possible alternative concerning Audio only.
AUDIO (ASF/MP3/WMA/OGG/WAV) if running in AMS Audio Channel ( either background or narration) will continue to play even after changing pages until you practically STOP IT or stopped by itself when finished.
Downloadable example here (http://azman.info/ams/AudioTest.apz).
I'm using RadioButtons as playlist for this example. A ListBox Playlist is a possible alternative.
SRussell's suggestion is better if there is streaming from servers.
BlueMe
11-23-2007, 02:49 PM
I thought about that, srussell, but I didn't know how to acomplish it. Now when u reminded me about this option i finally see how to do it.
To make my job easier it would be great if i could group some buttons, something like this.
(Page1) btn_Internet = btn_Opera, btn_Yahoo, btn_oDC
(Page2) btn_Multimedia = btn_Winamp, btn_BSplayer, etc, etc
Currently I have 6 pages that contain over 100 buttons, it would be such a pain to start over again.
If I can group buttons as explained above, I'll be able to do someting like this:
Page1 (OnClick)
btn_Internet.Hide
btn_Multimedia.Show
Am I making any sense here?
@Adam, I'll post a feature request soon, about this plugin.
@azmanar, thanks for your help, but that's not what i'm looking for.
srussell
11-23-2007, 06:36 PM
This is kind of a down and dirty way to do this, but you can use the sequentially numbered objects, the visibility parameter and global functions to show/hide various groups... The Flash object should play uninterrupted when showing/hiding objects. Please check the global functions and the function calls from the radio buttons.
See attached sample...
We may want to suggest a "Group" parameter in the Autoplay objects dialog and the ability to apply certain properties (such as Visibility...) to the group at runtime. We added something like that to Mediaforge... Comes in handy.
BlueMe
11-23-2007, 11:16 PM
Thanks a lot srussell, this is perfect, i will post my results in a day or two. I have to modify a lot of things, so it will take some time.
I'll show some screenshots of my project when i'm done.
Thanks for your help guys, it's really appreciated :yes
srussell
11-24-2007, 08:02 AM
Thanks a lot srussell, this is perfect, i will post my results in a day or two. I have to modify a lot of things, so it will take some time.
I'll show some screenshots of my project when i'm done.
Thanks for your help guys, it's really appreciated :yes
Glad that worked out for you... Let us know how it goes... :yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.