How can I play a youtube video in swfloader? - apache-flex

I embed a youtube video in my air application. It loaded and played well, but I cannot play more than one video at the time, only one video is played at the time, do you know why?
The code is:
url:String = "http://in.youtube.com/v/fVGk5qm6Mac&hl=en&fs=1";
//texturl.text=url;
swfloader.load(url)

I'm not sure, but I guess that if you create separate SWFLoader instances for each video you want to play, it shouldn't be a problem. It's hard to tell from the code you provide if you are using 1 or more SWFLoader objects.

You should be able to do this, but like Christophe mentioned, you'd need one SWFLoader instance for each video that you want to display at the same time. If you want to play the videos one after the other, you could use the same SWFLoader to do that though. Just wait until the video finishes playing, and then load the new one at that point.

Maybe this will help
Sample Youtube to Flex App

Related

Play video from an intermediate point

I am in the middle of an application that has a module to play videos from a directory on the same web-server. Everything is fine, except for the point that, while video is streaming, if I try to drag the player tip to an intermediate point, it either drags back to where it was(in flex player) or keeps loading un-till the video actually approaches that point(in case of jw-player or html5 player) or does nothing(in some other online players available). My client wants to be able to play or start buffering from any desirable point. I read something about RTMP to be used for such thing, but wasnt able to find a direct guide over how to do it.
Help appreciated!
If you're talking about being able to load a video file from x seconds in to the video, you should look into http pseudo-streaming. Here's a link to the jwplayer page about it: jwplayer pseudo-streaming

How to Over ride youtube external style?

I'm working on a website and i use a wordpress plug-in that embeds youtube videos.
Now it has this great option to show only an image of the video and load the video only if you press the video so the page won't take a lot of time to load.
The problem is that in that mode it takes that video photo from youtube and it also takes a big, red, play button image that is ugly as hell :)
Now that button's css is coming from some external link (http://s.ytimg.com/yts/cssbin/www-embed-vflSBO3VV.css) and i don't know how to over ride it.
Any suggestions?
That is the site i'm working on btw - http://www.lab.gezerweb.com/ClipPress/
Thanks.
I believe you're talking about an embed that uses controls=2, correct? (See https://developers.google.com/youtube/player_parameters#controls)
If so, then no, there's no way to override the default play button in the cued state.

Soundcloud HTML5 Volume Control

I have a track on my website which utilizes the soundcloud HTML5 player. I was wondering if there is any way I can make it a little quieter that way it doesn't shock the viewer upon opening my page. If anyone could lead me in the right direction as to how to alter the players volume on soundcloud it would be much appreciated :D
I know it has something to do with javascript: setVolume(volume) but I'm not familiar with JavaScript so if someone could help me out that'd be great. I want the volume to be at 50%.
If need be, i could also use the flash player.
I'm fine with using either HTML5 or flash player, I just want the volume to be set at 50% when someone plays it.
You can do this by using the Widget API
Basically, the widget is embedded into your page with an iframe. Give the iframe an id, include the API library (linked above) and then it's really simple.
SC.Widget('myIframeId').setVolume(50);

Apply a Filter to a Camera video stream publishing to Media Server

I am Trying to Apply some information Like text and An Image as an overlay to create a overlay effect as lice a security camera with time and date on the video along with a png based Logo.
I can record VIDEO Using Flex and FMS or any other Media Server. But I want to save a modified version of the stream being uploaded.
Use camTwist (mac) or webcammax (pc) as your video input...you can use that program to use the webcam and then add whatever over it (text, date). Use Flash Media Live Encoder and select camTwist as your video source. Stream and save your recordings using that FMLE.
Sorenson Squeeze is pretty awesome for this and is cross platform. Camtwist is cool but it's not really a 'pro' app, that makes me sound way snobbish. It's actually pretty fun and a good suggestion for a simple result but I haven't found anything better than Sorenson Squeeze for the features and control it gives you.

Flex video/audio chat for a site

Looking for a component which can be embedded inside my site (PHP, ASP.NET...whatever) and give a support for video chat.
I'm not a flex developer and would like to use a component. There are some/many video chats available, like flashcoms, red5chat...but all of those are heavy(monolit) components.
What I would like to have on my site is just a small video showing output from my camera (me) and another video showing the other party...but those videos should be split, not in the same flash component, but separate (two different EMBED tags on my page).
Are there any components available to do that (of course with support from appropriate media server)? Are there any good guides on how to develop such a component?
Thank you very much!
You will have to program in flash, there is no stright direct components just waiting to be implemented, you can use flash CS3 instead of flex!!
Which let you built an small video object to display the camera, publish it, and then capturing on another swf with an small video object but there you play a NetStream Object and add it to an Video Object and voila!!!

Resources