Author Message

Posted: Tue Sep 08, 2009 3:32 pm   Post subject: Controlling Slide Videos through AS2

I'm programming a custom player. How do I access
and control embedded slide videos through AS2?
Same question for embedded swfs.

Also, how do I shut off all mouse clicking on slide videos.
I don't want that functionality.

Thanks,
Chris


Profile profile test

Posted: Wed Sep 09, 2009 11:26 am   Post subject: Re: Controlling Slide Videos through AS2

Hi!

It's not possible to control embedded Flash files or videos via iSpring AS API.


Profile profile test

Posted: Wed Sep 09, 2009 1:54 pm   Post subject: Re: Controlling Slide Videos through AS2

Thanks, please consider this option for future updates.

We want to use your product but we need to properly
sync videos to cue points and cannot allow users to
click on them during playback of the presentation.

Something like an array would probably to enough:

var MyVideoList = MyPlayer.getCurrentSlideVideos();

Chris


Profile profile test

Posted: Wed Sep 09, 2009 6:48 pm   Post subject: Re: Controlling Slide Videos through AS2

Made some progress on this.

For my purposes I can probably get by doing it this way.
It may help others trying to directly control the slide videos.

This also disabled mouse clicking of the videos within the slide.

Chris

Code:
// slides array
var slds = MyPlayer.m_skin.m_playbackController.m_presentation.m_slides.m_slides;

// loop through each slide object
for(var i=0;i<slds.length;i++){   
    
    // get the video controller
    var vpc = slds[i].m_slideInstancePlayer.m_listener.m_listener.m_videoPlaybackController;
   
    // list of active videos on this slide
    // note: careful this will be empty until slide fully initializes
    var avlist = vpc.m_activeVideos;
   
    if(avlist.length > 0){ // if list exists...
      
       for(var j=0;j<avlist.length;j++){ // loop through videos
      
         avlist[j].video.m_playbackIsEnabled = false;   // disable mouse
         var v = avlist[j].video.m_target; //get movieclip reference
         v.useHandCursor = false; // hide hand cursor
         v.play(); // ... as a test manually play the current video
      
        }//j
      
      }
    
 }//i


Profile profile test

Posted: Fri Sep 11, 2009 10:15 am   Post subject: Re: Controlling Slide Videos through AS2

FPChris wrote:
Made some progress on this.
For my purposes I can probably get by doing it this way.
It may help others trying to directly control the slide videos.
This also disabled mouse clicking of the videos within the slide.


Good if it works for you. However, please take into account that you are using non documented features of the presentation player. There is no any guarantee that this trick will work fine with future versions.


Profile profile test WWW www ICQ ICQ

Posted: Fri Sep 11, 2009 3:48 pm   Post subject: Re: Controlling Slide Videos through AS2

True. The above was just a brute force method for testing.


Profile profile test

Posted: Wed Nov 25, 2009 7:30 pm   Post subject: Re: Controlling Slide Videos through AS2

Just thought I'd vote for this feature too. Looking to sync video and slide presentations.


Profile profile test
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: No registered users