Simple Player with Thumbnail List

Simple Player with Thumbnail List

Postby admin » Tue Oct 27, 2009 4:45 pm

By personal request from many of you, to build a video player with thumbnails list as used on supravisionmedia.com front-page, here it is a simple and easy to implement app.

You can download the example file from the following link:
http://www.supravisionmedia.com/Services/freeDownloadItem.php?id=569845



You can find more info about the component on the following link:
http://www.supravisionmedia.com/index.php?option=com_content&view=article&id=77%3Asupravideoprov2&catid=39%3Aproducts&Itemid=56
admin
Site Admin
 
Posts: 15
Joined: Sun Oct 25, 2009 5:54 pm

Re: Simple Player with Thumbnail List

Postby Daniel » Wed Oct 28, 2009 11:03 pm

Thanks, looks great...
Daniel
 

Re: Simple Player with Thumbnail List

Postby Anders » Wed Oct 28, 2009 11:05 pm

Can I add more than 3 video items?
Anders
 

Re: Simple Player with Thumbnail List

Postby Anders » Wed Oct 28, 2009 11:07 pm

Is it possible to get the current time??? :?:
Anders
 

Re: Simple Player with Thumbnail List

Postby admin » Wed Oct 28, 2009 11:11 pm

Sure you can add as many items as you want, you can do that in the xml, but you need to make sure you make kind of a scroll... or use the SupraSliderBasic or Pro
admin
Site Admin
 
Posts: 15
Joined: Sun Oct 25, 2009 5:54 pm

Re: Simple Player with Thumbnail List

Postby admin » Wed Oct 28, 2009 11:18 pm

You can get the current video, you need to use the even listener from the example file and listen for the PLAYER_STATUS event. This event returns an object that has the following properties:

playerStatusObj.playerPlaying;
playerStatusObj.playerVersion;
playerStatusObj.videoRepeat;
playerStatusObj.videoPaused;
playerStatusObj.currentPlaylist;
playerStatusObj.globalVolume;
playerStatusObj.currentVideoDuration;
playerStatusObj.currentVideoTime;
playerStatusObj.videoSmoothing;
playerStatusObj.videosPath;
playerStatusObj.currentMediaItem.mediaItemUrl;
playerStatusObj.currentMediaItem.mediaItemToPlay;
playerStatusObj.currentMediaItem.mediaItemId;
playerStatusObj.currentMediaItem.mediaItemInfoObject.itemTitle;
playerStatusObj.currentMediaItem.mediaItemInfoObject.itemAuthor;
playerStatusObj.currentMediaItem.mediaItemInfoObject.itemYear;
playerStatusObj.currentMediaItem.mediaItemInfoObject.thumbUrl;

You need the currentVideoTime
http://www.supravisionmedia.com/support ... YER_STATUS

The following code should finish the job

Code: Select all
SupraVideoPro.addEventListener(MediaControlEvent.CONTROL_TYPE, supraEventHandler);
function supraEventHandler(evt:MediaControlEvent):void {
   switch (evt.command) {
      case "PLAYER_STATUS" :
         trace("PLAYER_STATUS");
         var statusObj = evt.commandValue;
         statusObj.currentVideoDuration;
         statusObj.currentVideoTime;
                        trace("HERE TRACE THE TIME: " + statusObj.currentVideoTime);
         break;
   }
}
admin
Site Admin
 
Posts: 15
Joined: Sun Oct 25, 2009 5:54 pm

Streaming

Postby Designer » Thu Oct 29, 2009 12:55 am

Hey guys, Is there any way to stop the streaming before completed?
I need a feedback ASAP!
Designer
 

stream

Postby ::Flashy:: » Fri Oct 30, 2009 11:10 am

I don't think so, as I know the only way to stop the streaming is by closing the browser ;)
::Flashy::
 


Return to SupraVideoPro v.2 - Example Apps

Who is online

Users browsing this forum: No registered users and 1 guest

cron