Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

Slideshow using Video seek or current position

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Slideshow using Video seek or current position

    Hi all!

    Can this be done?

    I need to ceate a slideshow type app that uses the video seek or position times to show a specific image.

    The images (300+) would be on one page and a video will play throughout, uniterrupted. I want to therefore use the video seek times to show and hide the relevant image.

    If it can be done, any ideas how or other suggestions welcome?

    Thanks in advance.:confused:

  • #2
    Hi...I created a play button and attached a page timer that starts when its clicked on.

    --Use a page timer (increments 1 second at a time)

    Page.StartTimer(1000);



    --Then in the page properties under "On Timer" I put the following...


    time = MediaPlayer.GetCurrentPos("Plugin1");

    if time == 0 then
    Image.Load("Image1", "AutoPlay\\Images\\Graphic1.jpg");
    elseif time > 0 and time < 5 then
    Image.Load("Image1", "AutoPlay\\Images\\Graphic1.jpg");
    elseif time > 5 and time < 10 then
    Image.Load("Image1", "AutoPlay\\Images\\Graphic2.jpg");
    elseif time > 10 and time < 15 then
    Image.Load("Image1", "AutoPlay\\Images\\Graphic3.jpg");
    end



    It will switch between the images at the different times, in this example it switches at 0, 5, 10 seconds.

    Hope this helps..

    Comment


    • #3
      Thanks Octane, I will try it out.

      Comment


      • #4
        Thanks Octane it works well!

        Is there a reason why the == does not work and have to use < and > ?

        It works well though, thanks.

        Comment


        • #5
          Hi...Glad it works for you...

          The reason for the "> 0 and time < 5" instead of == is so that the graphic stays up for that duration, in this case graphic 1 stays up for 5 seconds before switching to graphic 2 at the 5 second mark, which stays up betweeen 5 and 10 seconds (5 seconds) etc....

          Hope that helps..

          Comment


          • #6
            :confused: Of course...! Sorry, had a moment there!

            Thanks again.

            Comment


            • #7
              doens't work

              hi i tried to do this but it doesn't work. i put 30 piuctures on one page and copied the text you have written under on timer event on page properties and created a button for play. but when i start app a gett error message on timer, line 1 attempt to index global "media player" (a nil value)

              tnx

              Comment


              • #8
                medvedek - I think there may be some confusion.

                If I've read this correctly, Carlos has got two items on his page -

                1. A video that runs all the time.
                2. An image object.

                The video is being 'monitored' and depending on how far it has played different pictures are loaded into the image object.

                The error you are getting is because you probably don't have a media player plugin object there so the reference isn't valid.

                Comment


                • #9
                  help me, please

                  Hello my Friends, I need you help .

                  i tried to do this like mr.medvedek but it doesn't work too.
                  i put 3 pictures on one page and make modify octane6228's script under on timer event on page properties like this.

                  --Then in the page properties under "On Timer" I put the following...
                  time = MediaPlayer.GetCurrentPos("Plugin1");

                  if time == 0 then
                  Image.Load("Image1", "AutoPlay\\Images\\Graphic1.jpg");
                  elseif time > 0 and time < 3 then
                  Image.Load("Image1", "AutoPlay\\Images\\Graphic1.jpg");
                  elseif time > 3 and time < 5 then
                  Image.Load("Image1", "AutoPlay\\Images\\Graphic2.jpg");
                  elseif time > 5 and time < 7 then
                  Image.Load("Image1", "AutoPlay\\Images\\Graphic3.jpg");
                  end


                  because in this case I experiment with 7-8 second video long.

                  and created a button for play the video.and add a script

                  --Use a page timer (increments 1 second at a time)
                  Page.StartTimer(1000);


                  but when i start app, I get error message "on timer, line 4 attempt to index global "media player" (a nil value)."

                  i am sure that i am install media player object plugin oready.

                  I try to do this about 5 hour it still not work.
                  Please help me, am very appreciate your help.
                  this is my project.please take a look.

                  http://www.geocities.com/shariya_phd/Project.zip

                  thank you , my friend.

                  Comment


                  • #10
                    used this link

                    above link may be broken.

                    please used this link

                    http://geocities.com/shariya_phd/Project.zip

                    Comment


                    • #11
                      oop...

                      when i try to download my file it fail.
                      the above two link still broken.
                      because when I click it. it jump to

                      http://geocities.com/shariya_phd/Project.zip

                      Please delete the word "us.share." then you get a file.
                      I try to upload it to IR forum many time but it fail.

                      thank you.my friend.

                      Comment


                      • #12
                        Example

                        am still need your help. :lol
                        as i mention above,this is an example i try to achieve.
                        yes , it a nice work. I made it by a programe name "talkingslide"
                        but i want to build it in AMS cause a consisten in design
                        and loading time.

                        a programe name "talkingslide" can export to .exe and .html
                        i dont want to use it because i can't control it in side AMS runtime
                        and in .html extention am not want to use it because it need a loading time.

                        i think an application like this,can be made by ams. but need a hardcore scripting to do. I am a newbie and need you help.

                        any help is appreciate. thank you
                        Attached Files

                        Comment


                        • #13
                          Shariya,
                          You are using a video object on your page, but the action in the onTimer event calls for a mediaplayer pluging object.
                          If you change your action to Video.GetCurrentPosition instead, it will work. It DOES work!!

                          Yossi

                          Comment


                          • #14
                            thank you

                            ****, yosik
                            thank for you help
                            when i chang

                            time = MediaPlayer.GetCurrentPos("Plugin1");

                            to

                            time = Video.GetCurrentPos("Plugin1");

                            i don't see an error but the i mage don't load ?


                            please ,help me again

                            Comment


                            • #15
                              ho...i see

                              oh .... i see , yosik

                              i must chang ("Plugin1"); to ("Video1"); too

                              it work now, thank yosik.
                              you safe my life. :lol

                              Comment

                              Working...
                              X