Home arrow Forum arrow Guides arrow User Guides arrow How to Make a Play List for Streaming Video
How to Make a Play List for Streaming Video
January 09, 2009, 02:04:41 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to Make a Play List for Streaming Video  (Read 336 times)
0 Members and 1 Guest are viewing this topic.
JasmineT
Newbie
*
Offline Offline

Posts: 8


View Profile
« on: December 02, 2008, 10:05:04 PM »

Video lovers always have numbers of videos in various formats, why don’t share them on web page with other people. If you don’t know how, this tutorial will be for you.

What are needed:

  • Sothink Video Encoder for Adobe Flash
  • HyperSnap
  • Dreamweaver
  • Flash

Step1 Convert your videos of different formats to FLV

Select the video you want to convert.Open Video Encoder for Adobe Flash, and select a video file. Many formats of videos are supported. You can also crop and trim the video. Then click “next”.




Specify audio and video settings for output FLV, and click “next”.


Select “Generate FLV”, “Generate SWF”, “Generate HTML”, “Generate thumbnail”, and “Auto play”. Also select “Get the FLV path from a URL variable and play progressively” and specify a name, “myvideo”, for example.


This is for creating thumbnails of listed videos at the end.Click “Options” button on the right side of “Generate thumbnail”, and you’ll see this pop up. Set “Dimension” for images. Select “Remember my settings”. And you can choose to set first frame or a certain frame as a thumbnail. Then click “OK” and “Next”.


Choose skin and style for playback


The Conversion is in progress.


When the conversion is finished, you will get your flv, swf, htm and jpg files.


For preparation, click .htm file and capture (with HyperSnap 6) the playback image at like this, and check its dimension is 482*344.


Step2 How to make a play list for video

Open Macromedia Flash 8 and choose Flash document in Create New, and save as playlist.fla.


Click Size button at the bottom of the program to change document dimension.


This will pop up. Please insert the dimension: 482*344.


Use Rectangle Tool to draw first item of a play list:


Set color


Set corner radius


Draw a rectangle


Choose this tool to rotate the direction of color change.




Click it, and add texts.




Set texts as Dynamic Text


And input “name” and ”duration” in Var respectively


Now select the rectangle and two text boxes, and right-click on them. Choose “Convert to Symbol”, and choose Movie clip. Then it appears in Library as Symbol 1.

Double-click it, and use Oval Tool to draw a small circle like this and convert to movie clip


And name it “thumb”


Right-click on it and choose Convert to Symbol, and choose movie clip. Then it is in Library as symbol 2. Then drag Symbol 1 it to the stage twice.


Respectively select these three items and give names: listitem0, listitem1, listitem2


And write Actions respectively as below.

The “0” in the script should be “listitem” number.

Now select these three items, and convert to Movie clip as Symbol 3. And name it “playlist”.


Double-click it, and draw a triangle at the bottom for turning pages. Right-click the triangle and convert it to Button as Symbol 4. Drag it from Library onto Stage.



Select the triangle on the right and select Window > Transform.


Rotate it and you will get:


Then add action script for these two buttons:

For the left one, just change”-1” to “1” for the right one:


Now add a text, and set it property like this






Select Playllist and click in Timeline to add action script:


Code:
var xml:XML = new XML();
var mlist:Array;
var curpage=undefined;
var itemsperpage=3;
 
function loadPlayList(url:String)
{xml.onLoad = onPlayListLoaded;
       xml.load(url);}
 
function onPlayListLoaded(success:Boolean)
{if(!success) return;
if(xml.hasChildNodes())
       {mlist = new Array();
             
       for(var xitem:XMLNode = xml.firstChild; xitem != null; xitem = xitem.nextSibling)
              {if(xitem.nodeName == "item")
                     {var mitem = new Object();
                     mitem.url=xitem.attributes.url;
                     mitem.thumb=xitem.attributes.thumb;
                     mitem.title=xitem.attributes.title;
                     mitem.duration=xitem.attributes.duration;
                     mlist.push(mitem);}}
                  ShowPage(0);}}
 
function LoadFLV(id:Number)
{var url=mlist[curpage*itemsperpage+id].url;
       _root.LoadFLV(url);}
 
function ShowPage(step:Number)
{if(curpage==undefined)
       curpage=step;
       else
       {var dstpage=curpage+step;
       if(dstpage<0) dstpage=0;
       if(dstpage*itemsperpage+itemsperpage-1>mlist.length) dstpage=Math.floor((mlist.length-1)/itemsperpage);
       if(curpage==dstpage) return;
       curpage=dstpage;}
     
pagestr=String(curpage+1)+"/"+ Math.floor((mlist.length+itemsperpage-1)/itemsperpage);
     
       for(i=0;i<itemsperpage;i++)
       {var ListItem=eval("listitem"+i);
       var id=curpage*itemsperpage+i;
             
       if(id<mlist.length)
       {listitem.name=mlist[id].title;
       listitem.duration=mlist[id].duration;
       listitem.thumb.loadMovie(mlist[id].thumb);}
       listitem._visible=id<mlist.length;}}
             
loadPlayList("playlist.xml");
for(i=0;i<itemsperpage;i++)
{var ListItem=eval("listitem"+i);
       ListItem._visible=false;}

Then Click Scene1, use Rectangle Tool to draw a shape and convert it to Movie clip as Symbol 5. And name it “Loader”.


Input 0 in X and Y




Click in Timeline and add action script:


Code:
function LoadFLV(url:String)
{
       Loader.loadMovie("forbiddenkingdom.swf?myvideo=" + url);
       Loader._visible=true;
 
       onEnterFrame = function()
       {
              if(_root.Loader.g_isEnd)
              {
                     onEnterFrame=undefined;
                     _root.Loader.unloadMovie();
                     _root.Loader._visible = false;
                     playlist._visible=true;
              }
       }
}
 
Loader._visible=false;
if(myvideo!=undefined)
{
       LoadFLV(myvideo);
       playlist._visible=false;}

Step3 Put video on web page

First open converted file: forbiddenkingdom.htm in Dreamweaver, and you will see:

Code:
&lt;body bgcolor="#ffffff"&gt;
&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="482" height="344" align="middle"&gt;
       <param name="allowScriptAccess" value="sameDomain">
       <param name="movie" value="playlist.swf?myvideo=forbiddenkingdom.flv">
       <param name="quality" value="high">
       <param name="bgcolor" value="#ffffff">
       <param name="allowFullScreen" value="true">
       &lt;embed src="playlist.swf?myvideo=forbiddenkingdom.flv" quality="high" align="middle" bgcolor="#ffffff" width="482" height="344" allowFullScreen="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"&gt;
&lt;/object&gt;
&lt;/body&gt;

Change swf name to “playlist .swf”

And we also need to create an xml file like this:

Code:
<item url="forbiddenkingdom.flv" thumb="forbiddenkingdom.jpg" title="The Forbidden Kingdom" duration="00:01:00"/>
 
<item url="10000bc.flv" thumb="10000bc.jpg" title="10000 BC" duration="00:00:32"/>
 
<item url="panda.flv" thumb="panda.jpg" title="Panda" duration="00:01:56"/>
 
<item url="darkknight.flv" thumb="darkknight.jpg" title="The Dark Knight.flv" duration="00:00:37"/>
 
<item url="spiderwick.flv" thumb="spiderwick.jpg" title="The Spiderwick .flv" duration="00:00:37"/>
 
<item url="horton.flv" thumb="horton.jpg" title="Horton Hears a Who" duration="00:00:30"/>

“url” is the name of flv name, “thumb” is the name of video thumbnail, “title” is content of the flv file, and “duration” is the length of the flv file.

Now you can upload flv, swf, and htm files to the folder where you put this web page on your server.

Now others can enjoy your video online!

Resource Share

If you would like to use this playbutton, you can download it here!

More video tutorial >>
Logged
yanrenwen
Hero Member
*****
Offline Offline

Posts: 330


View Profile
« Reply #1 on: December 19, 2008, 01:46:01 AM »

YouTube Video Converter is the most powerful YouTube assistant software in market today. The YouTube FLV Converter can download YouTube videos unlimited simultaneously (a real time saver!); Automatically name the downloaded video the same as the YouTube title; Convert YouTube videos to various video formats, including avi, DivX, XviD, rm, rmvb, MOV, MPEG, MPEG4 AVC, H.264 and WMV, VOB; VCD, SVCD and DVD Format .mpg; Convert download YouTube videos to a format compatible with your favorite portable device, including iPod Video, iPod Touch, iPod Nano, iPhone, Zune, PSP, PDA, Apple TV, as well as video capable MP3 players, 3GP mobile phones, and Pocket PC.
 
The FLV Editor is an idea solution to edit the FLV files without changing the FLV format. With the FLV Editor, we can clip the video, crop the video, merge the selected FLV files into one, add watermark on the FLV file, add subtitle, customize the video effect, etc. Moreover, the FLV Editor allows us to trim one selected file into several segments and output one FLV video with several output formats. (you can click the above related links to directly reach the related edit description or refer the left navigation)
 
The DVD to iPod Mac Software also can convert DVD to other popular video formats like: FLV, MPEG1, MPEG2, MP4, 3GP, 3G2, MOV, AVI, MPEG TS/TP (for HD Video), etc. With the DVD to iPod converter for Mac Software, you can freely enjoy your favorite DVD on video iPod, on iPod touch, iPod Video, iPhone, Apple TV, PSP, PS3, Youtube (web), Creative Zen, iRiver PMP, Archos, various video mobile phones and many other digital video and audio players.

Apple TV Converter for Mac is a popular and powerful video to Apple TV conversion software on Mac OS (including Mac OS X 10.5 Leopard).
 
We are specilized, professional and reliable website for selling and service.
Logged
happy_2009
Hero Member
*****
Offline Offline

Posts: 410


View Profile
« Reply #2 on: December 24, 2008, 01:54:56 AM »

FLV Converter Mac is a powerful FLV converter for Mac software which can convert FLV video files to all popular video formats and convert FLV to popular audio formats for Mac OS X users. FLV Converter Mac OS X softwrare supports all video popular formats indcluding FLV, MPG, MPEG1, MPEG2, MP4, 3GP, 3G2, MOV, AVI, Mpeg TS/TP (for HD Video), etc. The Mac FLV Converter can also convert FLV to MP3, WAV, OGG, 3GP, AAC and M4A, AC3, APE, etc audio.
Video Converter for Mac is powerful Video Converter Mac OS software which allows you convert videos between popular video formats. The easy-to-use Video Converter Mac lets you to enjoy your videos on iPod, PSP, Mobile Phone, Zune, iPhone, Apple TV and MP4/MP3 player. This Video Converter Mac allows you to set the destination, the output files.
DVD Ripper for Mac is an ideal solution for ripping your DVD videos to popular Video and Audio formats. It combines the features of Mac DVD Ripper and Mac DVD Audio Ripper, which makes DVD Ripper Mac as a full featured ripping software. DVD Ripper for Mac enables you to Rip DVD to all popular Video formats including AVI, MPEG, MPG, WMV, DIVX, RM, MOV, FLV, 3GP, 3GP2, MP4, MP4 AVC and Audio formats such as MP3, WAV, WMA, AAC, AC3, M4A (AAC), OGG, RA, AU, etc.
Logged
happy_2009
Hero Member
*****
Offline Offline

Posts: 410


View Profile
« Reply #3 on: December 25, 2008, 03:11:39 AM »

Mac DVD Ripper  is an all-in-one DVD ripper for Mac OS X software. This Mac DVD Ripper is an excellent DVD Decryption tool for Mac users to rip DVD to various video formats (including MP4, AVI, M4V, MOV, 3GP, MPG, FLV) and audio formats (MP3, M4A, AAC, WAV, OGG, APE, etc.) for playback on iPod touch, iPod classic, iPod nano, iPhone, Apple TV, PSP, PS3, Youtube (web), Creative Zen, iRiver PMP, Archos, all kinds of video cell phones and digital video and audio players. The Mac DVD Ripper is what godgious you need to put your DVD movies on your mobile devices.
iPod Converter Mac   is the best Video to iPod converter Mac OS X software for you. With the iPod Converter for Mac you can easily convert popular video formats including FLV, MPEG1, MPEG2, DivX, Xvid, WMV, 3GP, 3G2, MOV, AVI, MPEG TS/TP (for HD Video), etc to iPod compatible MPEG-4 videos. And also it is not only and iPod Video Converter for Mac, but it can convert all popular videos to iPhone, Apple TV, PSP, PS3, Youtube (web), Creative Zen, iRiver PMP, Archos, MP4, various mobile phones and many other digital video and audio players.
iPod to iTunes for Mac is so powerful and easy to use that it can transfer iPod video, iPod music, podcast and TV shows from your iPod or iPhone to iTunes library with great ease. On the other hand, it is also Mac to iPod/iPhone transfer software. The music and videos on your Mac, whose formats are supported by iPod and iPhone including AAC, MP3, MP4, MOV, WAV etc., can be directly transferred to your iPod/iPhone with this software, no need to buy music from iTunes music store.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.146 seconds with 18 queries.