FLV Playlist
I want to embed multiple *.flv files into my video however,
after the first video has stopped playing, I want it to
automatically start playing video two.
Is this possible via actionscript for though any way that I
havent looked at yet. At the moment, I've imported video a and
video b (for ease) and my clients are forced to click a button to
view clip #2.
haha, that just so happens to be exactly why I was doing this
(the dynamic text). Now I'm sure i've done it inefficiently, but
this is my code.....
I'll add the code required to make it stop instead of keep
looping....
I'm not 100% sure about it, experement for yourself a little,
but you should have the jist of it.
VideoArray = new Array();
VideoArray[0] = "part1.flv";
VideoArray[1] = "part2.flv";
VideoArray[2] = "part3.flv";
var currentVideo = 0;
my_video.play(VideoArray[currentVideo]);
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
if (currentVideo < VideoArray.length) {
// Increment to the next video in the list
currentVideo++;
// begin playing the new video
my_video.play(VideoArray[currentVideo]);
my_video.addEventListener("complete", listenerObject);
/* End control of video */
// when the timer ticks....
countDown = function () {
switch(Math.round(my_video.playheadTime)) {
// Part 1 Slides and some combined for part 2
case 0:
if (my_video.contentPath == "part1.flv") {
myText.text = "1";
if (my_video.contentPath == "part2.flv") {
myText.text = "5";
break;
case 66:
if (my_video.contentPath == "part1.flv") {
myText.text = "2";
break;
case 179:
if (my_video.contentPath == "part1.flv") {
myText.text = "3";
break;
case 218:
if (my_video.contentPath == "part1.flv") {
myText.text = "4";
break;
case 83:
if (my_video.contentPath == "part2.flv") {
myText.text = "6";
break;
case 128:
if (my_video.contentPath == "part2.flv") {
myText.text = "7";
break;
case 309:
if (my_video.contentPath == "part2.flv") {
myText.text = "8";
break;
case 521:
if (my_video.contentPath == "part2.flv") {
myText.text = "9";
break;
case 700:
if (my_video.contentPath == "part2.flv") {
myText.text = "10";
break;
case 1043:
if (my_video.contentPath == "part2.flv") {
myText.text = "11";
break;
case 1190:
if (my_video.contentPath == "part2.flv") {
myText.text = "12";
break;
case 1321:
if (my_video.contentPath == "part2.flv") {
myText.text = "13";
break;
/* DEBUG MODE!!! Will display current time and content path.
Just remove comments
myText.text = Math.round(my_video.playheadTime) + " " +
my_video.contentPath;
// Start the timer, 10ms intervals for accuracy
timer = setInterval(countDown, 10);
Similar Messages
-
Hi guys,
Im trying to create a dynamic streaming FLV playlist using
the list component and Flash Communication server 1.5. Ive tried
modifying both guides by Lisa Larson (the one for FMS2 and the one
for FCS1.5) but whenever I load the completed swf nothing plays.
Occasionally the previews show in the list component but will just
not play.
Can anyone point me in the right direction?
Thanks
gSearch for JW player on Google and look at that.
Regards
FlashJester Support Team
e. - [email protected]
w. - www.flashjester.com
"This has been one of the most impressive and thoroughly
pleasant
experiences of customer support I have ever come across -
astounding!"
Director - hedgeapple -
Hi
I need a good tutorial about setting up flv playlist, with
thumbnails, full
screen button opltion and all thins in progressive download
mode
is there something like this for free?
thanksHi
Go to
here scroll thru the Archive
list you'll find what ya need.
Hope it helps -
FLV Players with multiple playlists.
Both the LA Times
http://www.latimes.com and the
Chicago Tribune
http://www.chicagotribune.com
as well as other newspapers have a nifty multi-playlist FLV player
on their front page. The Player comes with a playlist that shows
thumbnails for a list of videos. But you can also click on a
drop-down menu and select a different playlist. The drop-down menu
for the playlist selector at the Tribune site even has a scroll bar
within itself. I see that ESA sells a similar player, but they told
me they don't/won't/can't add the drop-down playlist, only buttons.
Are the players on the front of those news sites being built
entirely within Flash? If so, can someone point to a tutorial
please? And if so, can these players be built entriely in Flash 8,
or do they require add-ons, or is this new to CS3?
Thanks,
TWYes, the latimes movie player is a full flash application,
that uses asp to get its play list. -
Random FLV from an SMIL Playlist
I have been trying to find a way to randomly select an flv
file to play in a 400x100 signature I have for some of my forums.
There is no user control on this swf besides onRollOver to start
the flv and onRollOut to pause it. What I want to achieve is
whenever the swf is loaded that it will randomly select an flv from
a playlist. From what I have read, SMIL is the best format to use
with FLVPlayback. All I should be needing to do is typing in the
SMIL URL into the concenturl inside the properties of the
FLVPlayback. However, this doesnt work. I also haven't a clue how
to actually randomize it. I could not find anything regarding the
required code used in SMIL to randomize the playlist.
Any help, hints and clues would be very appreciated as this
has stumped me for quite some time.If I am listening to my Shuffle in random/shuffle
order and come to a song from an album I want to hear
more of, can I switch it to Playlist order and hear
the rest of the songs in order of the playlist?
I believe that's the way it's supposed to work... WHY not TRY it? -
Looking for FLV player with playlist for my Flash site
I've been looking for an FLV player that I can embed "inside" my flash site--most likely loaded as an external swf via loadClip inside my main swf file. I also need it to be AS2 compatible for my current project. If anyone has some ideas please share, thanks.
-DavidI have a sample here http://www.smithmediafusion.com/blog/?p=337 that uses an rss feed as the playlist.
Regards,
Dan
http://www.dsmith.tv
http://www.smithmediafusion.com/blog -
Problems with FMS2 streaming flv through xml playlist
I've been testing for the first time FMS2 and has been quite
a pain to make it work, I've been able to stream a single flv file
but now that I've tried to stream multiple flv using a xml playlist
(using the same example provided in
http://www.adobe.com/devnet/flash/articles/video_player.html)
and it wont work.
I have IIS and FMS2 in the same computer.
In the example provided by Adobe was an error in
VideoSource.as in line originally was:
my_FLVPlybk.contentPath = nav.attributes.url + "/_definst_/"
+ stream.attributes.name+".flv";
And had to change "/_definst_/" to "_definst_/" to make it
work, since path are:
rtmp://localhost/videsource/_definst_/fish.flv for example
and not:
rtmp://localhost/videsource//_definst_/fish.flv
Once that was solved and tested it works locally (in the same
machine where the server is installed) but when testing from
another computer it doesn't stream any videos.
All the files are place the way it supposed to be in:
\applications\videosource\streams\_definst_ (here are the
videos)
\applications\videosource (here is the main.asc)
Then in IIS:
\Inetpub\wwwroot\playlist (playlist-demo-1.xml,
VideoThumb.as, VideoSource.as, VideoSource2.html, VideoSource2.swf,
SteelExternalAll.swf).
When tested local with
http://localhost/playlist/VideoSource2.html
or
http://localhost/playlist/VideoSource2.swf
works, but
when trying from another computer in the same network or
outside with
http://my_server/playlist/VideoSource2.html
wont stream like I said before.
In the single flv stream (without xml playlist) I seem to be
able to stream, just made a .fla with a FLVPlayback component
pointing to: rtmp://localhost/test/_definst_/test.flv
And trying
http://my_server/test.html
works fine.
I've done the following:
1. Added a MIME type to IIS for .flv and .swf
2. Vhost.xml is open for all networks
(<Allow>All</Allow>)
3. Change the Global Security Settings for the Flash Player
to access the .flv on the IIS server.
4. No firewalls activated (for testing purposes).
And it works with the single .flv stream but not with the
xml playlist and I've run out of ideas or what to do, so I'm in
need of anyone who can help me out and give me some insight.
Thanks in advance.Sounds like a Flash Player security issue because you are
running from a desktop. One of the items that can be different
between Test Movie and a published test is security and any
internet protocol. Flash Security errors fail silently.
Look at
NetConnection.connect
method for the security warnings and references.
If you plan to deploy from a web server, test there and it
will likely work. -
FLV & SWF player with XML Playlist
What I want is to create a player that can handle SWFs and
FLVs or just FLVs, that load from a XML playlist.
Now I have seen the tutorial (Creating a Dynamic Playlist for
Progressive Flash Video) url:
http://www.adobe.com/devnet/flash/articles/prog_download.html
But this populates a list that you have to click to play the
next movie, but I want it to play swf1 or flv1 then 2 then 3 and so
on, then loop. But I can't find a tutorial for this anywhere?
Any ideas, I need a detailed tutorial or a working example?I recently made something like that, but then my project
consultor, made me change to use only flv files.
The project is going to be an internal tv channel for a
university, here in Portugal. First I thought of mixing SWF and
FLV's together, but then it required that someone that used the
system, knew how to program SWF's, because you need to change a
flag (variable) at the end of the playback of the SWF. This change
of flag status indicates that this SWF is over and pass to the next
entry of the playlist. Without this, I think that you would never
know when to go to next entry. so, the code resembled a little like
this:
if ((_root.percen_tx.text == "100%") || (_global.over == 1
&& _global.tipo[_global.num]=="1")) {
_global.over = 0;
_root.percen_tx.text = "";
if (_global.num == (_global.filmes.length-1)) {
_global.num = 0;
switch (_global.tipo[_global.num]) {
case "1" :
loadMovie(_global.filmes[_global.num], _root.swf_cont);
_root.descr_tx.text = "";
_root.percen_tx.text = "";
break;
case "0" :
_root.contentor.my_FLVPlybk.contentPath =
_global.filmes[_global.num];
_root.descr_tx.text = _global.descr[_global.num];
break;
} else {
_global.num += 1;
_root.percen_tx.text = "";
switch (_global.tipo[_global.num]) {
case "1" :
_global.over=0;
loadMovie(_global.filmes[_global.num], _root.swf_cont);
_root.descr_tx.text = "";
_root.percen_tx.text = "";
break;
case "0" :
_root.contentor.my_FLVPlybk.contentPath =
_global.filmes[_global.num];
_root.descr_tx.text = _global.descr[_global.num];
break;
A brief explanantion:
_global.over -> 0 (not over); 1 (is over)
_global.tipo -> value that comes from an xml, and
indicates if this playlist entry is a SWF or a FLV (they go to
different MC's);
_root.percen_tx -> Indicates the percentage of the FLV
file that was already read. "100%" is over
This is not the most efficient way to do it, because you can
use listeners and so on, but at the time I abbandoned this, at this
stage. Now it's only FLV, and only a few lines of code.
You can see the project at www.ipvctv.com
Hope it helped a bit. -
FLV Player with Dynamic Playlist
So this is the first time I've experimented with a Dynamic
Playlist in an FLV Player and I'm learning a lot. I found a
tutorial on the Adobe site similar to what I'm looking to create.
[URL="
http://www.adobe.com/devnet/flash/articles/prog_download.html"
one is for Progressive Download, which I want.[/URL]
The same person also wrote one for [URL="
http://www.adobe.com/devnet/flash/articles/video_player.html"
I only mention that, because in the Streaming version, the videos
have the standard Adobe video controls in them, and the Progressive
tutorial does not. Usually I just create my own controls and link
it to the video component that I'm using, but this tutorial is
different than I normally roll.
In the library there is an object type "Video", which I can't
recall ever seeing before. If I delete it from the stage my videos
won't play, so it's definitely important. It doesn't give
parameters like the FLVPlayback does so I can't choose controls on
it. I don't know if there is a way.
Or maybe I need to build my own controls and find a way to
tie them into what we have here, but that would be stretching the
bounds of my knowledge, and I was hoping to have this up soon to
send to a potential employer.
What I'm looking for is some help to get pointed in the right
direction to just add the controls to the player in that tutorial.
If there is an "easy button" somewhere that I can push that'd be
great. If I need to get dirty I'm willing to, but I'm a bit lost
right now.
Thanks in advance for any help!Search for JW player on Google and look at that.
Regards
FlashJester Support Team
e. - [email protected]
w. - www.flashjester.com
"This has been one of the most impressive and thoroughly
pleasant
experiences of customer support I have ever come across -
astounding!"
Director - hedgeapple -
XML driven FLV player with playlist, can someone please help me?
OK so ive been working for a client recently building him a new site for his racing team and he wants a video jukebox on the "videos section" of the site.
Now i am the one with the job of updating this jukebox with new videos which he makes (this happens often) so i want updating to be as easy as possible.
Im new to the use of XML with flash and followed a tutorial to create a dynamic Image Gallery which is really easy to update, all i have to do is drop the files into the right directories in my FTP client and edit the XML file, perfect.
I want the jukebox to do the same thing.
I want to have a jukebox with a "video screen" with basic controlls (play/pause, volume, rewind, seek) on the left and a small vertically scrolling menu on the right that contains thumbnails and descriptions of the videos that when clicked changes the content of the video component to play the chosen video.
I found a tutorial on the adobe site that shows how to achive this through the use of the "video component" and the "list component" in flash 8 HOWEVER, this isnt very pretty and almost impossible to customise due to the list component and i would like to be able to mimic the style of the image gallery i already produced to keep things all nice and uniform.
i want to use XML to point flash to the source of the FLV files, the source of the thumbnail jpgs and give the text for the description so that its easy to update and use flash's drawing interface to make it pretty.
Basically i want to reproduce something like this.
Ive been searching for weeks now and i cant find anything to help me with this, if anyone knows of any tutorials, books, videos or has any idea how to help me it would be MUCH appreciated.
Thankyou.Try this link:
http://www.taiwantrade.com.tw/MAIN/en_front/searchserv.do?method=listProductComp anyDetail&company_id=163054&locale=2
There is an email address and telephone numbers.
Also look on the box and instructions.
Ciao. -
Flv xml Stream Playlist action script help
So if you go to this site:
click here
you will see a FLV player that has a list of videos that are
pulled from a .xml file...
The action script for this player is as such:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
rewindButton.onRelease = function() {
ns.seek(0);
playButton.onRelease = function() {
ns.pause();
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
duration = obj.duration;
function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadBar._width = amountLoaded * 194.5;
loader.scrub._x = ns.time / duration * 194.5;
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for(i=0;i<videos.length;i++) {
videoList.addItem(videos
.attributes.desc,videos.attributes.url);
ns.play(videoList.getItemAt(0).data);
videoList.selectedIndex = 0;
var vidList:Object = new Object();
vidList.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
videoList.addEventListener("change",vidList);
vlist.load("videos.xml");
I want to action script something that will make the videos
play one after the other, get rid of the list on the right and have
buttons on player that allow you to go to the next/previous video
listed in the .xml file
Its sort of like the player at
click
here
I know this is a lot to ask, but I am currently in a jam and
any help would be greatly appreciated...
Thanks
Matthelm88gotoAndLearn is a fantastic base to build off of.
but
i'm looking for the same thing... how do you get the files
to play one after another?
i've looked for everyhting ns. related and i can find any
doc's on this one.
i 've found the
function complete_listener(eventObject:VideoEvent):void {
if (my_FLVPlybk.source == "rentv1.flv") {
my_FLVPlybk.play("rentv2.flv");
else if (my_FLVPlybk.source == "rentv2.flv") {
my_FLVPlybk.play("rentv3.flv");
on the flash video live docs.. but i can't find anything on
how to tie it into the XML.
anything anyone can offer would be a huge help ... -
Please help. Trying to create external xml vidoe playlist. Desperate!
I was given an assignment to create and external video playlist using an xml file. I have never used flash before, know nothing about encoding and all that was given to the class in terms of instuctions was a short tutorial that has no resources for troubleshooting. We were given everything; the external playlist file equipped with the video skin, the video list, actionscript that loads the xml and the xml file. We were told that all we need to do is change the names of the videos in the xml file to match the names of our videos. I did that. We were also told we needed to "name target", but we were not informed on how to do this. I have tried everything, visited every tutorial and I cannot figure out how to get this damn thing to work. I cannot even get flash to load the xml file. PLEASE HELP.
Here is the xml file:
<?xml version = "1.0" encoding = "i-8859-1"?>
<playlist>
<ADogWithoutABone
flvurl="ADogWithoutABone.flv"
desc="Hyper Wall First Video" />
<Highway
flvurl="Highway.flv"
desc="Hyper Wall Second Video" />
<PsychoBabble
flvurl="PsychoBabble.flv"
desc="Hyper Wall Third Video" />
<SomethingElse
flvurl="SomethingElse.flv"
desc="Hyper Wall Fourth Video" />
</playlist>
I tried putting in the entire address of the file location, but it did nothing.
Here is the actionscript in the flash file:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(new URLRequest("playlistXML.xml"));
function xmlLoaded(event:Event):void {
var playlistXML:XML = new XML(event.target.data);
var item:XML;
for each(item in playlistXML.videoname) {
trace("item: "+item.attribute("flvurl").toXMLString());
myPlayList.addItem({label:item.attribute("desc").toXMLString(), data:item.attribute("flvurl").toXMLString()});
//Select the first video
myPlayList.selectedIndex = 0;
//And automatically play it
myPlayScreen.play(myPlayList.selectedItem.data);
//Add a listener to detect when new video is selected and play it
function listListener(event:Event) {
myPlayScreen.play(event.target.selectedItem.data);
myPlayList.addEventListener(Event.CHANGE, listListener);
I tried placing the full address of the xml file in, along with the file address of the videos, but again it did nothing. Everything is located in the same file, and the videos in a sub file in that file. I tried taking out the sub file and putting all the videos in the same file, but it did nothing. I am sure it's something very simple, but like I said I have NO experience with this whatsoever. I am SO lost and DESPERATELY need help. PLEASE someone SAVE MEEEE!
Thanksto parse your xml correctly use:
function xmlLoaded(event:Event):void {
var playlistXML:XML=new XML(event.target.data);
var item:XML;
for each (item in playlistXML.children()) {
trace("node: "+item.attribute("flvurl").toXMLString());
myPlayList.addItem({label:item.attribute("desc").toXMLString(), data:item.attribute("flvurl").toXMLString()});
//Select the first video
myPlayList.selectedIndex=0;
//And automatically play it
myPlayScreen.play(myPlayList.selectedItem.data);
you more problems after that, though. is myPlayList a list component? -
Running a live stream from an XML playlist
I have just successfully installed Adobe FMS on my server.
I would now like to know how to program a script to run a continuous live stream, of MP4 videos, from an XML playlist.
Can anyone tell me how to do this? ...or provide me a good tutorial? (I am a complete newbie to ActionScript.)
Thanks in advance...application.allowDebug = true;
application.onAppStart = function(){
this.userID =0;
this.playObj = new Object();
this.timObj = new Object();
this.passCli = new Object();
this.couObj = new Object();
this.couObj.count = 1;
application.so0 = SharedObject.get("so",false);
this.dates = new Object;
this.dates.dat0 = new Date().valueOf()+"a";
this.dates.dat1 = new Date().valueOf()+"b";
this.dates.dat2 = new Date().valueOf()+"c";
this.dates.dat3 = new Date().valueOf()+"d";
this.myStream = new Object;
this.myStream.st = Stream.get (this.dates.dat0.toString());
this.myStream.st1 = Stream.get (this.dates.dat1.toString());
this.myStream.st2 = Stream.get (this.dates.dat2.toString());
this.myStream.st3 = Stream.get (this.dates.dat3.toString());
this.int0
this.int1
this.int2
this.int3
this.int4
this.lock0=0;
this.lock1=0;
this.lock2=0;
this.lock3=0;
this.lock4=0;
listen();
function listen(){
clearInterval(application.int3);
application.int0 = setInterval(time,1000,application.myStream.st);
application.myStream.st.onStatus = function(info){
if(info.code == "NetStream.Play.Stop"&&application.lock0==0){
trace("code0"+info.code);
clearInterval(application.int0);
application.timObj.tim = 0;
application.int1 = setInterval(time,1000,application.myStream.st1);
application.couObj.count = 2;
playcurr(application.passCli.cli);
switchStream(application.so0);
listen1(application.myStream.st1);
application.lock0=1;
function listen1(mystreamst1){
mystreamst1.onStatus = function(info){
if(info.code == "NetStream.Play.Stop"&&application.lock1==0){
trace("code1"+info.code);
mystreamst1 = null;
clearInterval(application.int1);
application.timObj.tim = 0;
application.int2 = setInterval(time,1000,application.myStream.st2);
application.couObj.count = 3;
playcurr(application.passCli.cli);
switchStream(application.so0);
listen2(application.myStream.st2);
application.lock1=1
function listen2 (mystream2){
mystream2.onStatus = function(info){
trace("code2"+info.code);
if(info.code == "NetStream.Play.Stop"&&application.lock2==0){
clearInterval(application.int2);
application.mystream2 = null;
application.timObj.tim = 0;
//application.int3 = setInterval(time,1000,application.myStream.st3);
application.couObj.count = 4;
playcurr(application.passCli.cli);
switchStream(application.so0);
application.lock2=1;
listen3(application.myStream.st3);
function listen3(mystream3){
mystream3.onStatus = function(info){
trace("code3"+info.code);
if(info.code == "NetStream.Play.Stop"&&application.lock3==0){
trace("yes yes yes yes yes yes");
clearInterval(application.int3);
application.couObj.count = 1;
mystream3 = null;
application.timObj.tim = 0;
//application.int4 = setInterval(time,1000,application.myStream.st);
playcurr(application.passCli.cli);
switchStream(application.so0);
application.lock0=0;
application.lock1=0;
application.lock2=0;
application.lock3=0;
application.dates.dat0 = new Date().valueOf()+"e";
application.dates.dat1 = new Date().valueOf()+"f";
application.dates.dat2 = new Date().valueOf()+"g";
application.dates.dat3 = new Date().valueOf()+"h";
application.myStream.st = Stream.get (application.dates.dat0.toString());
application.myStream.st1 = Stream.get (application.dates.dat1.toString());
application.myStream.st2 = Stream.get (application.dates.dat2.toString());
application.myStream.st3 = Stream.get (application.dates.dat3.toString());
application.myStream.st.play(application.playObj.vid[0],0,-1,0);
application.myStream.st1.play(application.playObj.vid[1],0,-1,0);
application.myStream.st2.play(application.playObj.vid[2],0,-1,0);
application.myStream.st3.play(application.playObj.vid[3],0,-1,0);
listen();
///here next
application.onConnect = function(client){
application.acceptConnection(client);
application.passCli.cli = client;
client.call("setUserID",null,this.userID);
this.userID++;
if(application.clients.length == 1 ){
videoArray = new Array();
var playlist = new XML();
playlist.ignoreWhite = true;
//parse xml play list for individual elements
playlist.onLoad = function( success ) {
if(playlist.loaded == true) {
if (playlist.firstChild.hasChildNodes()) {
for (var aNode = playlist.firstChild.firstChild; aNode != null; aNode=aNode.nextSibling) {
if (aNode.nodeType == 1) {
//create array from parsed xml elements.
videoArray[aNode.attributes.id] = aNode.attributes.name ;
//pass array out of onload function
application.playObj.vid = videoArray;
application.myStream.st.play(application.playObj.vid[0],0,-1,0);
application.myStream.st1.play(application.playObj.vid[1],0,-1,0);
application.myStream.st2.play(application.playObj.vid[2],0,-1,0);
application.myStream.st3.play(application.playObj.vid[3],0,-1,0);
pass0(videoArray);
//play first video on playlist
playlist.load("http://www.privatechatnow.com/fmsuser/playlist.xml");
}//end onetime if statement
function pass0(videoArray){
//receive array
//play intial video
if(application.clients.length == 1){
// application.playObj.vid=videoArray;
playcurr(application.passCli.cli);
for (var key in application.playObj){
trace(key + ": " + application.playObj[key]);
//put currently playing videio into object
//isolate playlist switching loop for each connected client
//listen to currently playing stream with onStatus
//change to next video in playlist
//use onStatus and current duration and seek to scrub to cuurently playin video each time a user connects.
//continue untill playlist is played then loop back to first video in playlist.
//onConnect play currently playing video
if (application.clients.length >1){
playcurr(application.passCli.cli);
//message client with currently play flv
//message client when flv changes
//message client with metadata
application.onPublish = function(clientObject, streamObject){
trace("Stream name :: "+streamObject.name);
function switchStream(so0){
if(application.couObj.count == 1){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[0].length;
nextlen = application.playObj.vid[1].length;
so0.send("playSecond",application.playObj.vid[0],clength,currlen,nextlen);
if(application.couObj.count == 2){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[1].length;
nextlen = application.playObj.vid[2].length;
so0.send("playSecond",application.playObj.vid[1],clength,currlen,nextlen);
if(application.couObj.count == 3){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[2].length;
nextlen = application.playObj.vid[3].length;
so0.send("playSecond",application.playObj.vid[2],clength,currlen,nextlen);
if(application.couObj.count == 4){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[3].length;
nextlen = application.playObj.vid[0].length;
so0.send("playSecond",application.playObj.vid[3],clength,currlen,nextlen);
function playcurr(client){
trace("count = "+application.couObj.count.toString());
if(application.couObj.count ==1){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[0].length;
nextlen = application.playObj.vid[1].length;
client.call("playZero",null,application.playObj.vid[0],clength,currlen,nextlen);
if(application.couObj.count ==2){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[1].length;
nextlen = application.playObj.vid[2].length;
client.call("playZero",null,application.playObj.vid[1],clength,currlen,nextlen);
if(application.couObj.count ==3){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[2].length;
nextlen = application.playObj.vid[3].length;
client.call("playZero",null,application.playObj.vid[2],clength,currlen,nextlen);
if(application.couObj.count ==4){
clength = application.timObj.tim-3;
currlen = application.playObj.vid[3].length;
nextlen = application.playObj.vid[0].length;
client.call("playZero",null,application.playObj.vid[3],clength,currlen,nextlen);
application.onDisconnect = function(oldclient){
if(application.clients.length ==0){
this.userID--;
function time(myStream){
application.timObj.tim = myStream.time; -
Question: how to get the adobe plug in to play a downloaded flv file ?
I want to know how to get the flv adobe plug in which i downloaded as a result abc or nbc or cbs.com i forget exactly which said i had to and also it seems to be used for playing most all videos from web such as those from utube,hulu, etc. So my question is how do i get the plug in to play any downloaded *.flv video ? The particulars on the one i have is:
Output folder: C:\WINDOWS\system32\Macromed\Flash
Execute: "C:\WINDOWS\system32\Macromed\Flash\uninstall_plugin.exe"
Extract: NPSWF32.dll
Extract: NPSWF32_FlashUtil.exe
Extract: flashplayer.xpt
also perhaps FLVPlayer.swf of about 9Kb may have something to do with it?
And the latest update i have was about jan 13 when it seemed to automatically take over my system and update itself.x
I know it has the ability to do what i want- which is full screen cropped ,change aspect ratios etc. and seems
It has to be able to or else it could not play the files and give those options which it does on some videos like from utube etc. in the first place. Unfortuneately it has something also to do with the useless *.swf files which are apparently of no use to anything and could certainly be eliminated .
I have downloaded several freebie flv players such as bs player etc. etc. but they all have so many faults and are not suitable. Bs player does what i want but it hangs , have to go to system mgr. to get out of it sometimes , often difficult to use etc.etc. The main features is i need is to be able to make and play playlists to automatically in full screen one after the other in a specified order with NO user intervention and the ability to magnify or 'pan in' i guess they call it and change aspect ratios so that i can have full screen as if just cropping part of horizontal such as if want to view a 16/9 aspect ratio on a computer as i have with the prior standard 4/3 aspect and change a downloaded vertically stretched to a cropped instead etc.
Also it doesn't make sense to download others and take up disk space when already have the adobe - also adobe seems to be the only one that plays hulu flv's correctly - on other flv players the video and audio are way out of sync and not just by few seconds but often by a minute or more. I know there is another 'pain' way to do it which is create a *.avi or other extension with loss of clarity etc. which have done but would like to be able to just do it in real time while playing the flv file itself as for example
as bs player does.
Anyway if there is no way to get adobe to do this does anyone know of any other free flv player downloads which will do what
i want - basically playlists, magnify , pan,crop and still full screen, change aspect ratios - other than bs player ?The plugin is what it is: a browser plugin - it cannot act as a standalone player.
To play local flv files you either need to
download/install the standalone player (Projector) from http://www.adobe.com/support/flashplayer/downloads.html
download/install Adobe Media Player http://www.adobe.com/products/mediaplayer/ -
Hi all,
I'm trying to create a web tv using Flash Media Server and
Flash Media Encoder.
I tried to send a live stream (taken from a webcam) through
the FME encoding. That's all right.
Now I will try to send a stream that is already stored in a
FLV file (or from more files using an XML playlist) on my server
starting at time T1: when I will connect from a client (ex.: in
time T2>T1), I will receive the stream not from the start of
the file but in realt time at the actual point (ex.: from point
T2-T1, such as a television channel).
Is it possible using FME and FMS?
I'm using FMS 2 and FME 2.0.1
Thx
Tozoo**This is my first flash application so I am very confused.
This is my main.asc content:
application.onStatus = function (){
serverNC = new NetConnection();
serverNC.connect("rtmp://rtmp1.youtube.com/videolive?sparams=...../youtubestreamname");
serverNS = new NetStream(serverNC);
serverNS.attach(sample);
serverNS.publish(sample.name,"live");
This is my FMS directories:
And this is my panel on the server:
What can I do?
Maybe you are looking for
-
Anybody knows how to bounce them off the edge of the frame ...
I want them to change position randomly and smothly and also bounce off the edge of the frame. i will be so happy if you can help me. Here is the code: FlatWorld: import java.awt.*; import javax.swing.*; import java.util.*; * This FlatWorld contains
-
Wharehousing University Research and Academic Papers
SAP Document Management System. I want to warehouse research and academic papers and expose it to the university community through SAP Enterprise Portal. How do I go about this? Chris Edited by: Christian Bolu on Mar 7, 2009 5:38 AM
-
Resources for movies for iPod Video 60Gb?
I've just acquired the iPod Video and absolutely love it! Are there places you can download content for it, besides Apple.com which seems very limited at this point? Also, I'd love to import my favorite DVDs, but I don't know if that's a legal use of
-
[solved]How to compile a software with debug symbol from aur?
How does auch developers compile their project? Seems that archlinux user always trying to avoid build software from git/svn directly. But after searching a lot I sill haven't found how to compile with debug symbol while using PKGBUILD. Anyone help?
-
Hello Everyone, I have a one year old iBook, and was thinking of upgrading to iLife 06. I have a small concern. It mentions on the Apple Store site that it takes 10 GB of HD space to install it. Is that in addition to the space used by the iLife on m