How To Create Youtube Video Player With Next And Previous Playlist In Flash
i want to create exact youtue video player in flash with next and previous playlist slides popup when we move our cursor over the left and right corner while video is playing as i shown in the picture link below.http://img135.imageshack.us/my.php?image=youtubedw7.png
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-29-2008, 07:38 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How Can I Create A Video Player Like Youtube.com
Im seeing them everywhere but i like the one at youtube.com
Its a simple video file but with a cool flash interface. The part im really interested in is the loading bar. The bar loads but the video steams what it can, and you can even click on it to get to that part of the video.
How can I create this? Plus what compression are they using?
Thanks
Tim
How To Play YouTube Video In The Flash FLV Player
Hi to all,
I have a problem.
I have a flash file which has a FLV player in it. Now in the FLV player display a flv file. But i need some changes.
I want to play a You Tube video in that FLV playback in the flash file. i have a code of that You Tube video.
The code is:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Kd6TrNMbBi4&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/Kd6TrNMbBi4&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
The code is also attached. Plz find the attachment.
My ouestion is How to play this You Tube link in the flash file.
Does anyone know how to solve it in Actionscript 2.0 ?
Is there any other cool and easy way to stream youtube videos in flv player?
Please advice,
chandrani
Flash Video Player With Xml Playlist
hi:
i have a site and i want to put video player in it. i have created that flash video player with "coffee cup web video player". when i Load the External .swfs into the Main Flash Movie its apears on top left, but i want it to apear on bottom middle. can any one please help me on it.
my site is http://70.69.186.137/html/main.html (this is my raw template).
Flash Video Player With Side Playlist
Hey,
I am a complete newb when it comes to flash. However I like to just dive in there and start to learn hands on with tutorials or whatever. So I want to ask if anyone might be able to help me find something that could guide me step-by-step on how to make an flv player with a side playlist of videos. For better clarification of what I am looking for I'll give you a link to a media player that I would like to make myself, but of course customized to my own look that I choose and such.
http://www.ligonier.org/media_player.php?tabID=1&id=003
Thanks,
Michael
Creating A Video Player With Dynamic Draggable Playlist. Is It Doable In Flash? Help Please
Hello Everyone,
I am scripting a video player and one of its functionalities is to be able to have a playlist that can be arranged by the user in any order user like. For Example, if there are lets say 5 videos within the playlist:
SONG 1
SONG 2
SONG 3
SONG 4
SONG 5
User can then change the order of the videos by clicking on any video and dragging it up or down just like windows mediaplayer and the player should play the videos in such order.
So far, I have been able to use the list component but am not sure if it will allow the dragging.
I would highly appreciate it if you guys can suggest what should I do to handle this functionality.
Thanks.
Video Sharing Site (like Youtube) With AS3 Video Player?
I was planning on using YouTube to upload some content then stream the videos (as swf's) back into my project. The problem is that the YouTube player is AS2 so I have to use some workarounds to be able to control the video. I was wondering if there were any other video sharing sites that used an AS3 based player so I could control it from within my own code without the workarounds needed for you tube.
Tutorial To Create Mp3 Player Without Xml Playlist
I have browsed the web for a flash mp3 player but all I have found either play just one file per player or use a playlist generated from an xml file.
I can`t use an xml file as the mp3's will be called from a database, does anyone know of an mp3 player that can call the mp3's from a database or know of any tutorials that will help me make something?
btw I am a complete flash newbie
thanks
Help - Trying To Create Mp3 Player With Listbox As Playlist
Hi
Okay, what I'm trying to create is an MP3 Player (play/pause, next, previous, volume control) with a Playlist that's in the form of a Listbox. What I also want is a comment box and a picture (text and picture external) that relates to the sound from each track. So that when the user clicks on a different track in the playlist OR clicks the next or previous buttons, the picture and comment will change to the ones relating to the next track being played.
Now, I have looked at Lee's tutorial on how to make a MP3 Player and also his XML Video tutorial and they both contain explanations I want for the MP3 Player I have in mind. So I'm trying to merge the knowledge of both tutorials. The thing is, I'm having a hard time trying to imagine how this will be structured. What code will I need to change? What exact code do I need to use? What tutorial should I adapt on?
I've made an XML file containing only the url's and the desc's of two songs. So far, all I have in my flash document is 2 layers, actions and songList. The songList layer contains a listbox with the instance of "songList". The actions layer has this coding:
Code:
var slist:XML = new XML();
slist.ignoreWhite = true;
slist.onLoad = function(){
var songs:Array = this.firstChild.childNodes;
for(i=0;i<songs.length;i++){
songList.addItem(songs[i].attributes.desc,songs[i].attributes.url);
}
ns.play(songList.getItemAt(0).data);
songList.selectedIndex = 0;
}
var sonList:Object = new Object();
sonList.change = function(){
ns.play(songList.getItemAt(videoList.selectedIndex).data);
}
songList.addEventListener("change",sonList);
slist.load("songs.xml");
While my XML is this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<songs>
<song url="Track 1_q1_pet hates.mp3" desc="Steve Turner - Bad Breath"/>
<song url="Track 1_q2_tight people.mp3" desc="Steve Turner - Tight People"/>
</songs>
The List works because it's bringing up the desc of then songs but the songs are not playing. I know I'm doing something wrong, but can anyone tell me EXACTLY how to go about this in SIMPLIFIED explanations in step-by-step bullet points as this way will help me understand a bit more (see the Introduce Yourself section and my post "Roche says Hello" for more details why).
If anyone can help me, you have a heart of gold thank you.
Youtube Video Player
Hello, can anyone help me on how I can create a video player in Flash such as the ones you see in youtube.com? I would like the video to start playing while it's still loading. Right now my videos are set to load completely before playing.
Thank you in advance.
Youtube Video Player
hello friends,
I need a player like youtube.Where can i get player like youtube.
pls help me.
regrads
harilal
Youtube Video Player
Hey all, this is my second topic on this experiment. I've added quite alot to my Youtube video experiment. I was just wondering what you though of it.
breefield.com/tube/breetube.zip
Ask any questions you have.
Youtube Video Player
Hi everyone
Our site http://atalamo.com , and I need the video player like Youtube but works with ASPX.
Who can help me ?
Thanks a lot
Youtube Video Player
hello friends,
I need a player like youtube.Where can i get player like youtube.
pls help me.
regrads
harilal
Video Player Like YouTube Is That Possible?
Hi all,
I'm using JW (jeroenwijering video player) and its nice enaugh.. there you can play many videos from play list... the videos in playlist showing below the screen... but i want it show after the movie end.. when a movie end in you tube you can see the previous and next scence..
any one can do it please??!
XML MP3 Player Like The 'XML Video Playlist'
Hi,
How would I create an XML MP3 player like the 'video playlist' tutorial, I have had a play around with it but can't get it to play the *.mp3 files. + would there be a way of getting the meta data from the MP3's to be displayed in a now playing box (scrolling through the data)
Thanks for any help, Great tutorials by the way!
Youtube Video Player, Slider Thing
http://www.youtube.com/watch?v=RLHdwddwRdE
how do i make the slider effect, that shows the video 1. downloading 2. being able to view anypart of the movie you want. by sliding across.
thanks
XML Video Player...modify The Playlist
The current play list is a compnenet in Flash that is populated by an XML file
it works fine but I would like to create a playlist that i can customize to match the site that I am working on.
any thoughts on how to set up a XML playlist
Ponyack
[F8] Multi XML Playlist In Video Player
I have a xml driven playlist, how can I make it so i can have multible playlists that will be linked to a button in flash. Here is an example of the player on my server www.palsmediagroup.com as you can see the buttons News Weather Sports need to be linked to a seperate playlist.
I shure could use some help on this.
Here is the XML code
<?xml version="1.0"?>
<videos>
<video>
<title><![CDATA[<img src='thumbs/esa_welcome.jpg' hspace='0' vspace='2'> <span class='videoTitle'>Intro <br> Site Intro</span><br> <span class='colons'>Length:</span><span class='videoDescription'> 10 sec</span>]]></title>
<file><![CDATA[http://components.earthscienceagency.com/sw_includes/videos/Component_Intro2.flv]]></file>
<link><![CDATA[http://components.earthscienceagency.com/]]></link>
</video>
<video>
<title><![CDATA[<img src='thumbs/esa_sample.jpg' hspace='0' vspace='2'> <span class='videoTitle'>Sunset<br> Sample Video</span><br> <span class='colons'>Length:</span><span class='videoDescription'> 10 sec</span>]]></title>
<file><![CDATA[http://components.earthscienceagency.com/sw_includes/videos/Sunset.flv]]></file>
<link><![CDATA[http://reviewjournal.com//]]></link>
</video>
<video>
<title><![CDATA[<img src='thumbs/esa_components.jpg' hspace='0' vspace='2'> <span class='videoTitle'>Pool<br> Sample Video</span><br> <span class='colons'>Length:</span><span class='videoDescription'> 13 sec</span>]]></title>
<file><![CDATA[http://components.earthscienceagency.com/sw_includes/videos/Pool.flv]]></file>
<link><![CDATA[http://components.earthscienceagency.com/components/]]></link>
</video>
<video>
<title><![CDATA[<img src='thumbs/esa_sample.jpg' hspace='0' vspace='2'> <span class='videoTitle'>Smoke<br> Sample Video</span><br> <span class='colons'>Length:</span><span class='videoDescription'> 29 sec</span>]]></title>
<file><![CDATA[http://components.earthscienceagency.com/sw_includes/videos/Smoke.flv]]></file>
<link><![CDATA[http://components.earthscienceagency.com/components/]]></link>
</video>
<video>
<title><![CDATA[<img src='thumbs/esa_components.jpg' hspace='0' vspace='2'> <span class='videoTitle'>Green Blob<br> Sample Video</span><br> <span class='colons'>Length:</span><span class='videoDescription'> 18 sec</span>]]></title>
<file><![CDATA[http://components.earthscienceagency.com/sw_includes/videos/Green_Blob.flv]]></file>
<link><![CDATA[http://components.earthscienceagency.com/components/]]></link>
</video>
<video>
<title><![CDATA[<img src='thumbs/esa_sample.jpg' hspace='0' vspace='2'> <span class='videoTitle'>Clouds<br> Sample Video</span><br> <span class='colons'>Length:</span><span class='videoDescription'> 14 sec</span>]]></title>
<file><![CDATA[http://components.earthscienceagency.com/sw_includes/videos/Clouds.flv]]></file>
<link><![CDATA[http://components.earthscienceagency.com/components/]]></link>
</video>
</videos>
Video Player And XML Playlist Problems
I have created a video player to house 4 different categories of videos. The categories are each represented by a button. The player sits to the left of the four buttons and to the right of the four buttons is the list of videos for each category.
I want to have it so that each button loads a different XML playlist (in the area to their right) when clicked.
I have the buttons loading each new playlist, but they are not clearing out the previous playlists so the new lists are just being added to the bottom of the list.
In addition when the video is playing and you click on a new category the video stops and I would like it to keep playing until a new video is selected from the playlist.
I know that there is something that I am just not seeing here and I need a fresh set of eyes. Please help!
Thanks!
Here is my code:
ActionScript Code:
package {
import flash.display.MovieClip;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import fl.controls.listClasses.CellRenderer;
import fl.controls.ScrollBarDirection;
import flash.display.SimpleButton;
import flash.events.MouseEvent;
public class VideoPlaylist extends MovieClip {
private var xmlLoader:URLLoader;
public function VideoPlaylist():void {
// Load the playlist file, then initialize the media player.
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
xmlLoader.load(new URLRequest("playlist-streaming.xml"));
FeaturedVidButt_btn.addEventListener(MouseEvent.MOUSE_UP, loadMe);
function loadMe (e:MouseEvent)
{
xmlLoader.load(new URLRequest("playlist-streaming.xml"));
}
v21Button_btn.addEventListener(MouseEvent.MOUSE_UP, loadMeTwo);
function loadMeTwo (e:MouseEvent)
{
xmlLoader.load(new URLRequest("playlist-streaming-2_1.xml"));
}
LowEnergyButton_btn.addEventListener(MouseEvent.MOUSE_UP, loadMeThree);
function loadMeThree (e:MouseEvent)
{
xmlLoader.load(new URLRequest("playlist-streaming-LowEnergy.xml"));
}
IconsButton_btn.addEventListener(MouseEvent.MOUSE_UP, loadMeFour);
function loadMeFour (e:MouseEvent)
{
xmlLoader.load(new URLRequest("playlist-streaming-Icons.xml"));
}
// Format the tileList, specify its cellRenderer class.
theList.setSize(170, 315);
theList.columnWidth = 155;
theList.rowHeight = 140;
theList.direction = ScrollBarDirection.VERTICAL;
theList.setStyle("cellRenderer", Thumb);
}
public function initMediaPlayer(event:Event):void {
var myXML:XML = new XML(xmlLoader.data);
var item:XML;
for each(item in myXML.vid) { // populate playlist.
// Get thumbnail value and assign to cellrenderer.
var thumb:String;
if(item.hasOwnProperty("@thumb")>0) thumb = item.@thumb;
// Send data to tileList.
theList.addItem({label:item.attribute("desc").toXMLString(),
data:item.attribute("src").toXMLString(),
source:thumb});;
}
// Listen for item selection.
theList.addEventListener(Event.CHANGE, listListener);
// Select the first video.
theList.selectedIndex = 0;
// And automatically load it into myVid.
myVid.source = theList.selectedItem.data;
// Pause video until selected or played.
myVid.pause();
// Listen for buttons selected
}
// Detect when new video is selected, and play it
function listListener(event:Event):void {
myVid.play(event.target.selectedItem.data);
}
}
}
Overlay The Playlist In A FLV Video Player
I'd like to add a button in my FLV video player that when pressed will bring up a playlist component that is positioned on top of the video player component. Clicking the button again would remove the playlist. I'm using Flash 8, so ActionScript 2 for now. Can someone point me in the right direction in terms of how I would program that button?
Thanks,
Tom Wood
Wendel Brume
Edited: 10/13/2008 at 08:35:04 AM by tomwood2
XML Video Player ...modify The Playlist
Hi,
I just finished this tutorail and had a couple of questions.
The playlist uses a component
I would like a playlist that I have more control over...not sure how to do this...
I would liek to be able to customize the font of the playlist so that it mtaches the overall font of the site that I am building.
any help would be great.
Ponyack
Video Player/XML Playlist Problem
I haven't been able to get the tutorial to work when i go to TEST Movie. could someone please check over my code to make sure everything looks good? thanks. i've checked the references and double checked everything and can't find anything wrong...help! the video doesn't play and the playlist and XML does not load. any thoughts or help would be greatly appreciated. thanks,
matt
here's the actionscript:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream (nc);
ns.setBufferTime(30);
ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}
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 * 162;
loader.scrub._x = ns.time / duration * 162;
}
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,-3,this._y,157,this._y);
}
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
}
function scrubit() {
ns.seek(Math.floor((loader.scrub._x/160)*duration));
}
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[i].attributes.desc,videos[i].attributes.url);
}
ns.play(videoList.getItemAt(0).data);
videoList.selectedItem = 0;
}
var vidList:Object = new Object();
vidList.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
}
videoList.addEventListener("change",vidList);
vlist.load("videos.xml");
here's the XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="AboutUs.flv" desc="About Us" />
<video url="test.flv" desc="School of Money" />
</videos>
Flash "wrapper" Around A YouTube Video Player?
Can someone tell me what is causing my Flash file to be incapable of playing a YouTube video? What I have created is basically a Flash "wrapper" that embeds a YouTube SWF file inside an object. When I compile the SWF and play it within an html file on my local computer, all is well. However, when I upload the same file to my server, the video refuses to play.
When I view the LiveHttpHeader logs, we see calls to a crossdomain.xml file:
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
So it appears that the cross-domain isn't the problem - - - it's set to allow playback on non-YouTube sites.
Any thoughts on the matter are greatly appreciated.
Attach Code
Security.loadPolicyFile("crossdomain.xml");
var embedme:String = "http://www.youtube.com/swf/l.swf?video_id=hVkEHBbv4Fg&rel=1&eurl=&iurl=http%3A//i.ytimg.com/vi/hVkEHBbv4Fg/default.jpg&t=OEgsToPDskLXySocnkEWAaWqA5rvjkmb&hl=en";
var movieGetter:Loader = new Loader();
movieGetter.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);
movieGetter.load(new URLRequest(embedme));
function loaded(evt:Event):void
{
var textfield:TextField = new TextField();
textfield.text = "see if this loads...
";
textfield.x = 50;
textfield.y = 50;
addChild(textfield);
addChild(evt.target.content);
textfield.text = "made it past video getting added";
}
Importing Xml Powered Video Player/playlist
Hi folks
Flash newbie here.
So I am making a lot of progress, but I have a problem that needs to get worked out by tomorrow.
My website is very video intensive, and needs to have easy access to a video menu associated with the player. I followed the tutorial here: http://www.adobe.com/devnet/flash/ar...ist_print.html
and customized it to my needs.
She sets the document class to VideoPlaylist (the name of the sourcefile she is pointing to is VideoPlaylist.as so I guess this makes sense)
Anyway, the question:
HOW do I get this video player/playlist imported into my main flash website?? If I change the document class in the main website, none of the other ActionScript that I wrote in that flash file works anymore and everything goes bonkers. ..
I think this has something to do with packages and the like, but I am out of my league
Help!
and thanks!
Dan
Video Player & XML Playlist Tutorial Advice
Hi,
I visited this site yesterday and I must start by saying I have learnt a great deal from the clear and concise tutorials for the video and XML Playlist. I used Flash a few years ago and haven't touched it since so thanks for the help with the excellent tutorials.
I am trying to make a multimedia player.
I ahve created the video and playlist using the tutorials and it works great.
But is there a way in which I can add images and sounds to appear within the XML PLaylist so the user can select them.
I was hoping for the image to load (or the sound to play) within the video player?
I don't know if this is possible.
I am thinking that I will have to create a XML Playlist for the Images, and another for the sounds? - But I may be barking up the worng tree??
Can anyone please advise on which is the best way to go about this problem.
Thanks
Video Player - Next And Previous Buttons
Ok I have a client who has got hold of a flv player and he wants me to add next and previous buttons so that it will play multiple videos...I don't really know how to do it.
Here's the AS:
Code:
//--------------------------------------------------------------------------
// initial variables that might be useful to change
//--------------------------------------------------------------------------
// toggle for which file to play if none was set in html
// you can change the 'test.flv' in your filename
if(!_root.file) { file = 'video.flv' } else { file = _root.file; }
// toggle for autostarting the video
// you can change the 'true' in 'false'
if(_root.autoStart == 'true') {
autoStart = true;
} else {
autoStart = false;
}
// toggle for the width and height of the video
// you can change them to the width and height you want
w = Stage.width;
h = Stage.height;
//--------------------------------------------------------------------------
// stream setup and functions
//--------------------------------------------------------------------------
// create and set netstream
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
// create and set sound object
this.createEmptyMovieClip("snd", 0);
snd.attachAudio(ns);
audio = new Sound(snd);
audio.setVolume(80);
//attach videodisplay
videoDisplay.attachVideo(ns);
// Retrieve duration meta data from netstream
ns.onMetaData = function(obj) {
this.totalTime = obj.duration;
// these three lines were used for automatically sizing
// it is now done by sizing the video to stage dimensions
// if(obj.height > 0 && obj.height < Stage.height-20) {
// setDims(obj.width, obj.height);
// }
};
// retrieve status messages from netstream
ns.onStatus = function(object) {
if(object.code == "NetStream.Play.Stop") {
// rewind and pause on when movie is finished
ns.seek(0);
if(_root.repeat == 'true') { return; }
ns.pause();
playBut._visible = true;
pauseBut._visible = false;
videoDisplay._visible = false;
playText.txt.text = "click to play";
}
};
//--------------------------------------------------------------------------
// controlbar functionality
//--------------------------------------------------------------------------
// play the movie and hide playbutton
function playMovie() {
if(!isStarted) {
ns.play(file);
playText.txt.text = "loading ..";
isStarted = true;
} else {
ns.pause();
}
pauseBut._visible = true;
playBut._visible = false;
videoDisplay._visible = true;
}
// pause the movie and hide pausebutton
function pauseMovie() {
ns.pause();
playBut._visible = true;
pauseBut._visible = false;
};
// video click action
videoBg.onPress = function() {
if(pauseBut._visible == false) {
playMovie();
} else {
pauseMovie();
}
};
// pause button action
pauseBut.onPress = function() {
pauseMovie();
};
// play button action
playBut.onPress = function() {
playMovie();
};
// file load progress
progressBar.onEnterFrame = function() {
loaded = this._parent.ns.bytesLoaded;
total = this._parent.ns.bytesTotal;
if (loaded == total && loaded > 1000) {
this.loa._xscale = 100;
delete this.onEnterFrame;
} else {
this.loa._xscale = int(loaded/total*100);
}
};
// play progress function
progressBar.tme.onEnterFrame = function() {
this._xscale = ns.time/ns.totalTime*100;
};
// start playhead scrubbing
progressBar.loa.onPress = function() {
this.onEnterFrame = function() {
scl = (this._xmouse/this._width)*(this._xscale/100)*(this._xscale/100);
if(scl < 0.02) { scl = 0; }
ns.seek(scl*ns.totalTime);
};
};
// stop playhead scrubbing
progressBar.loa.onRelease = progressBar.loa.onReleaseOutside = function () {
delete this.onEnterFrame;
pauseBut._visible == false ? videoDisplay.pause() : null;
};
// volume scrubbing
volumeBar.back.onPress = function() {
this.onEnterFrame = function() {
var xm = this._xmouse;
if(xm>=0 && xm <= 20) {
this._parent.mask._width = this._xmouse;
this._parent._parent.audio.setVolume(this._xmouse*5);
}
};
}
volumeBar.back.onRelease = volumeBar.back.onReleaseOutside = function() {
delete this.onEnterFrame;
}
//--------------------------------------------------------------------------
// resize and position all items
//--------------------------------------------------------------------------
function setDims(w,h) {
// set videodisplay dimensions
videoDisplay._width = videoBg._width = w;
videoDisplay._height = videoBg._height = h-20;
playText._x = w/2-120;
playText._y = h/2-20;
// resize the items on the left ..
playBut._y = pauseBut._y = progressBar._y = volumeBar._y = h-20;
progressBar._width = w-56;
volumeBar._x = w-38;
}
// here you can ovverride the dimensions of the video
setDims(w,h);
//--------------------------------------------------------------------------
// all done ? start the movie !
//--------------------------------------------------------------------------
// start playing the movie
// if no autoStart it searches for a placeholder jpg
// and hides the pauseBut
pauseBut._visible = false;
if(_root.image) {
imageStr = _root.image;
} else {
imageStr = substring(file,0,file.length-3)+"jpg";
}
imageClip.loadMovie(imageStr);
if (autoStart == true) { playMovie(); }
Help - How Create Video Player In Flash?
Hi people´s ~
someone can help me about video player in Flash?
or some tutorial site about ???
not how i import ... this i know ^^
but .. the play and stop buttom and load progress ...
Thanks guys ~~~
Maintain Aspect Ratio In "Video Player With Playlist"
Hello,
http://www.ultrashock.com/#/asset/40...-playlist.html
i have juz got this Video Player With Playlist. As i was set it up, i did not know that this player does not maintain the aspect ratio of my flash video. my 4:3 vids are fine but not 16:9. how can i set it to be compatiable to 16:9.
Thanks alot
Youtube Player In SA Flash
I'm trying to get a youtube player to work in the standalone flash player and I can't seem to get past the security issues. I found this thread (http://www.actionscript.org/forums/s....php3?t=122501), but that doesn't seem to be working for me. When I load the URL to the YouTube movie into the container clip, the player displays with the initial image from the video, but if I click the play button on the player the player window goes black and the loading animation plays continuously. It doesn't actually play the video. Whenever this happens, it prints this to the output panel:
Code:
Connection to null halted - not permitted from http://www.youtube.com/swf/cps.swf
-- Remote SWFs may not access local files.
I've tried adding the following security directives, but that hasn't helped:
ActionScript Code:
Security.allowDomain('www.youtube.com');
Security.allowDomain('gdata.youtube.com');
Security.allowInsecureDomain('gdata.youtube.com');
Security.allowInsecureDomain('www.youtube.com');
The URL to the YouTube movie I'm trying to load (http://www.youtube.com/v/ua0_88OwrRs) works fine if I paste it directly into a browser, so I know the video file is there and working. It's just the flash security that is the problem. Has anyone overcome this or know how I can overcome this?
Thanks,
Youtube Video In Flash
Hi guys,
I'm trying to play an youtube video inside my flash site but I don't even know where to start can anyone please help me?
Thanks for the attention!!
Load Youtube-player Into Flash ?
hi, i'm trying to launch a extern embedded movie player into my flashfile.
I used to convert movieclips into swf, but it would me more efficient to load an embedded player...
I want to play the video into a 'tv-screen' so, it's not an option for me to load the player in a dreamweaverfile or so...
is it posible at all, if yes, please anybody, help me on this...!!!
thnx
Flash Player Like Youtube Or Veoh
Hi,
I just download the Geovid AVI to Flash converter and got the flash video file but I want a cool player to embedded on my website, can you guys advice me how to go about this?
I want a player like how youtube or veoh for instance.
Dee,
[F8] Inserting Youtube Video Into Flash
i am making a web page with flash. it uses actionsript2. i was wondering if i can put an utube video into my flash page, with out using frames. can i load a html page via xml or java script. the html page would have the youtube video Embed.
the reason i want do that is to save bandwidth. my swf is for flash player 7
Youtube Video Embedded In Flash 8
does anyone know how to tell when a youtube video has finished playing from within a flash container?
i can embed the youtube player, but i don't know how to tell when it's done playing the video.
also, anyone know how to control the play/pause or other functions from the container?
thanks in advance for any help.....
How To Embed YOUtube Video In Flash?
Hello,
I'm new to these boards, my name is vodmare. Nice to meet you all. I have a problem. I have a flash website that I am playing around with, I have the .fla file and that is what I am working with.
I want to use the .html embed code from youtube to embed a youtube video on one of the pages. But I cannot do it! It just displays the .html as text.
I am pretty experienced at using programs like these and I understand them. However, when it comes to....I guess "scripting" I suck. So if any of you kind souls out there has an input, please make it dirt dumb to understand
Thanks for any help anyone has.
Need A YouTube Style Flash Vdo/music Player
Hi Guys,
I am fairly new to flash action scripting. I know the basic animation and not my field of expertise. I desperatly need flash player than can play dynamically loaded music file or vdo file, same way as youtube flash vdo player. I am probably not aware of the lingo for these type of players.
Could one of you please direct me to the right direction? Cheers!
TIA
Youtube Video Embedded In Flash & Redirect
I would like to load videos from the Youtube server in a flash object, like this site. Once the video has been viewed, the user must be redirected to another page.
Could someone please explain how to do this? I´m willing to pay for a working script.
HOW TO ADD YOUTUBE VIDEO INSIDE OF MY FLASH MOVIE
HOW TO ADD YOUTUBE VIDEO INSIDE OF MY FLASH MOVIE. CAN SOMEBODY HELP ME WITH THIS. I LIKE THIS VIDEO FROM YOUTUBE I ALREADY CREATED A FLASH MOVIE BUT I DO NOT KNOW HOW TO ADD THIS VIDEO(WHICH IT IS NOT MINE, I GOT IT FROM YOUTUBE.) I ONLY GET THE EMBED<OBJECT.....>. OR THE URL BUT I DO NOT KNOW HOW TO ADD THIS INSIDE MY FLASH MOVIE . CAN SOMEBODY HELP ME WITH THIS ?????????????????? THANK YOU
Flash Video Play In A Page Like Youtube
Hello,
I post a lot of videos on my blog and always have to have people click on a link that opens a new window to play my flash videos. i do this because if i were to place multiple flash videos onto a page, they would all immediately start downloading. This web site does what I am looking for, (http://blog.elysiumproductions.com/) it has a jpeg as a placeholder on an html page, and then when you click it, the flash video begins downloading. Do you know some workflow to make this, or is there a service. The site i mentioned says it uses click2start.net, but that site doesn't have anything on it. This would be really helpful.
Thanks
Flash To Show Video Á La Googel, Youtube Etc
Hi,
a lot sites use flash to show videos, like youtube.com and video.google.com. I haven't use'd flash in 5 years and I wonder how hard it is to make your own player? Do anyone know if there's a tutorial for it? Did a google search but with no luck.
Do the player use a format of its own or does it stream wmv, avi etc aswell?
[F9] Example On How To Embed A Youtube Video In Your Flash Application (fullscreen)
working example http://jaxxrr.110mb.com/other/fs3.html
the fullscreen part is nothing special really.. one line of script on a button
on (release) {
Stage.displayState = "fullScreen";
}
but you also need to edit the html file and set the allowFullScreen parameter from false to true, it is there just set it to true (don't write it twice like I did )
so either
<param name="allowFullScreen" value="true" />
...
<embed src="example.swf" allowFullScreen="true" ... >
or
AC_FL_RunContent( ... "allowFullScreen", "true", ... )
depending on how you launch the flash..
Also make sure your html file does'nt get overwritten when publishing again.. go to publish settings and uncheck html
|