Show Video Via Flash / If Failed Show It Via Html5
Aug 26, 2010how I embed a html5 video player only if there's flash in the browser? If there is flash in the browser I want to use it instead.
View 2 Replieshow I embed a html5 video player only if there's flash in the browser? If there is flash in the browser I want to use it instead.
View 2 RepliesI'm porting in an .flv to Flash for the first time. I created the .flv from an .MP4 using Media Encoder CS5, and then opened a new Actionscript 3 .fla in Flash Professional CS5, clicked File > Import > Import Video. Then selected 'Load external video with playback component'. Everything seems to have imported fine, but when I publish the SWF and import it via Dreamweaver CS5 and preview the page, the video is there, but the controls are not. There's just a white box where the controls should be. Also, the video is out of sync with the audio, which I believe is a problem with Media Encoder, not Flash.
Here are some links:
The page that I'm working on (video at the bottom of the page)
The .FLA
The .FLV
The .SWF
I am building a flash video player with a custom UI, and admittedly I'm not sure exactly what I'm doing. I tried altering a skin, but that always comes out wonky due to whatever coding they use. So I'm altering single video components and putting them in the mc what I want them. It looks great, but the problem is that when video goes to full screen, all of the controls dissappear and I can't figure out how to make them show up. How do I get a movie clip to display on top of the video when it goes to full screen in flash AS3?
View 1 RepliesI created my flash video with a video skin I selected in CS4 and the skin file shows up in the same folder as the video but when I add the swf file to dreamweaver CS4 the controls that should show up underneath the video are not there.
View 2 RepliesI want to show related video's in flowplayer at the end of the video.
View 1 RepliesI want to show a div over a YouTube video but can't get it to work. I know that if you set the wmode to transparent or opaque it should work, but I've only seen this work when the <embed> or <object> tag is used. YouTube now embeds the video in an <iframe> so when I tried it, it didn't work.
Here's what my code looks like.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL]">
<html xmlns="[URL]"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">@import "reset.css";
[Code] .....
I'm using flash to design a basic website.Within that website I want to place a .flv file. Everything works fine in preview mode and test movie mode.The problem comes when I puplish to the web.I'm just using flash to publish which puts all the files in a folder.IN previous attempts, once I load those files onto a server it does not play the .flv file.The .sfw skin will show up but the general .sfw file for the project doesn't seem to be finding the .flv file.And yes, I'm uploading the .flv file to the server.Is there something wrong with the html code that it can't find the .flv file?I can replicate this problem on my desktop by moving the .flv file out of it's project folder.Once I do that and then click the .html file the page will load but it won't find the video file.It's like it can only open that file if it's in the original project folder and the folder doesn't get moved.
View 9 RepliesI have Background layer, Bkg_Image layer & Video layer. I have embeded the flv movie on Video layer. Though on stage it shows all the layers, but when I test the movie it shows only Background layer & Video layer. I can't see the Bkg_Image layer.
The Actions layer has external swf loading AS3 which is working fine. Only the problem with Bkg_Image layer which is imprortant for me.
When I test movie, I see as in the following snapshot (Just the Background_Image & Video):
I'm trying to create an overlay containing a flash player that is shown when a user clicks on a link. The div containing the player starts with display:none in CSS. Upon clicking, the div will be shown, and JS will use ExternalInterface to configure and start the player. The JS configures the player when it catches a "flash ready" event, which is fired by Flash on ADDED_TO_STAGE.All this works, except that the ExternalInterface callbacks are never created. The JS and AS3 work fine if the player is shown upon page load, or is hidden with visibility:hidden instead of display:none. I am aware that Flash will not be initialized with display:none, and this works as expected: when the Flash is unhidden, it fires its events and correctly initializes everything else (eg. GUI, other internal stuff). The only thing that doesn't happen as expected is that my ExternalInterface callbacks are not added.
ExternalInterface.available is true. It's not a timing problem, because even after several minutes the callbacks are still not present. The strangest bit is that the flash is able to call JS, fires JS events fine, and the code to fire the events comes after the code to add the callbacks. There are no errors thrown by any of the AS3 code. I'm seeing this problem in both Chrome and Firefox.
I'd like to play load/play one movie and show text at a specific times. In the Movie there is a scene where a board is shown. I'd like to show some text on the board when it appears. That's why I'd like to how to know when you reached a certain point.
Also about loading the video. I read there a several ways of loading a movie. What would be the best way in your opinion to load it in this situation.
1)Can this be done with the FLVPlayer component or through another way?
2) How to show a text at a specific time. Is there a function that I can use.
In my flex datagird i have a checkbox and a datgrid with seven columns. im populating values in first five column(remaining two column no values) of datgrid by an Arraycollection. now,By clicking the checkbox i want to show all seven column values and if i uncheck five columns has to show... how its possible?? heres my code
[Code]...
I'm fairly new to ActionScript and was wondering if anyone had an idea how this effect was done:[URL]..Click on a show date and the link zooms up and fills the screen giving show info. Then when you click the back button it shrinks back to where it was on the calendar.
View 3 RepliesI have 3D videos encoded with each eye's content side-by-side on each frame. What I want to do is take the left-half and over-lay it on the right-half. (I'll then change with the colors and the overlaying so that someone with blue-cyan 3D glasses can view the video).
I tried to attach a single NetStream to two video objects and offset them, but that only let the stream play on one object.
Ok, so I have tried and tried to figure this out. Of course in the test environment everything works beautifully, but when I test my swf on my site, thats when the sh*t hits the fan.
The problem is my buffer bar wont show up until the video is completly loaded. In flash however, it loads across as the video is downloaded, like it's supposed to.
Go to my site to see what I am talking about. The loader bar appears uder the progress bar, exactly like on youtube. www.blankensteincreations.com
Here is the code that controls it.
Code:
mcVideoControls.mcProgressFill.mcFillGrey.width = nsStream.bytesLoaded * 710 / nsStream.bytesTotal;
Of course that is wrapped in a timer funtion which, I add, works fine.
FLA is attatched as well as the code below so you can see how it works in flash.
Here is my full code:
Code:
const BUFFER_TIME:Number = 8;
const DEFAULT_VOLUME:Number = 0.6;
const DISPLAY_TIMER_UPDATE_DELAY:int = 10;
[Code]....
In my asp.net application,I want to show the .ppt file using the slide show manner.
That's to say,user can upload .ppt file to my server side,then other people can browser these ppts in the page ..
Since I have googled "embed powerpoint in web page" ,it seems that there is not a good idea to implement this and support the cross browser,so I thought the flash.
This is a slide show using the flash: [URL]
What I want is show the contents of the .ppt in this manner(it would be better if it support the animations in the ppt)?
I mean youtube or any other streaming video site, but I've seen it on Youtube. There are times that the loaded bar shows that more than enough video stream has been loaded so the player could play it but it suddenly pauses and shows the loading icon?
View 2 RepliesI have a sporadic bug where sometimes when a video is played the video doesn't show up for about 10 seconds but the audio is there.
i'm using flash as3:
_video = new Video();
_sound = new SoundTransform();
var connection:NetConnection = new NetConnection();
[Code]....
I'm using AS3 in CS4. I created it in After Effects, and saved it out as both an flv and an f4v.I have tried creating the banner with both these files. I can see the playback fine on both publish preview and test movie. On the computer it was created on in it plays fine when I check the html file. On any other machine (my network or sending the files to someone else) you can't see the playback. The flash "holder" is there, but nothing plays back.I have tried several times but have never gotten it to work. I included the code, but most of it is generated by Flash - I added some to get the video to loop.
View 4 RepliesI have one MC that he has an gray color, when I compel it, it is gray, everything is fine so far. I had to create one param in the HTML pra to be able to change at any time of the MC color ex:"meuFlash.swf?&cf1=ff3300>...", any time that I change this MC color , my MC change too. I create this. [AS]new Color (fundo_mc.fundos_mc).setRGB (parseInt (cf1, 16));[/AS] My problem is the following one, when I speak in the HTML that I do not want to use this color "ff3300", I only want to use "meuFlash.swf?...", mine MC are all black, it are not of the gray color that I already had left, I do not know because it is all black.
View 2 RepliesI'm including a video with it's controls into a frame in flash.When I try it and publish it as SWF the control bar of the video shows but when I publish it as a .app for mac or a .exe for windows and run itthe video shows but not the controls
I'm using the FLVPlayBack component to show the video
Looking into HTML5 video tag, and researching which browsers support which video file types, and my initial thought is things just got harder than just using flash. I am wondering if there is some skeleton code (combined with development approach for videos) that someone has figured out to do the following: If flash is available, use it If not, try html5 video ogg format If that doesn't work, try html5 video h.264 format If that doesn't work, try html5 video webM format Based on what I am seeing, am I correct in thinking that now, in order to accommodate all users on all browsers, a video needs to be published in 4 formats? If so, this HTML5 video thing is an epic fail!
View 2 RepliesI am trying to import a .flv video to my flash websiteI do it by choosing the "Progressive download from a webserver" optionIn the .swf file generated, the video runs normally , but when I run my website trough the index.html file and I goto the page where It is supposed to be, the video doesnt show up, as if it never existedI dont know what may be hapenning
View 2 RepliesI have a flash photo album that like most grabs the infomation from a XML file.I was wondering if it would be possiable to pull youtube video from xml and show them.I had someone who liked the photo album and wanted to know if you could play video instead of pictures.I added the youtube url .
View 2 RepliesI have published some videos with flash, but I need to find a way to display a very simple timer showing the elapsed time. I tried to use a dynamic text with AS3 without any success. I would like to use one of the ready-made skin for my player, and just add anywhere on the stage a dynamic text field with my time inside.
View 2 RepliesIm looking for a button code so when a user clicks on it a specific video which is included in the library will show up in the same screen. If anyone knows which code i should attach to this button to pop up the vide
View 4 RepliesIm looking for a button code so when a user clicks on it a specific video which is included in the library will show up in the same screen.
View 4 RepliesI need to make a video page. i used a flash player and implemented the videos on the pages. now my client needs that, the same page have to work with ipads, i know that we have to use html5 video player for that.
My question is in case eventhough html5 video supportable player available that should play the flash content first. in case it will not run the flash player then it should run the html5.
I have a long video of 50 minutes duration..
I want only show a segment for that video, for example I want to start from minute 15 until minute 16, Only shows a minute for that video, but, I want to see that video as a complete short video of 1 minute duration.
How can I tell after issuing a NetStream::play call when there is any video arrived which I can render (Video::attachNetStream)? I can see that most of that stuff is asynchronous and highly dependent on a number of variables like FMS latency, client latency and bandwidth, server load, weather etc. I however need a reliable dependent way of figuring when there is any picture to show. I administrate our service and need to monitor content people are publishing, for that I need to browse a hundre or so streams as fast as possible. What I do is I have a number of "player" streams that play a stream name (I use Administration API to get an array of these) , wait until there is picture, show it in a video object, disconnect video from stream, create new video object, play another stream, wait until picture, show it, and so on.
I found out that I can achieve a way to check whether video has arrived by NetStream::info.videoBufferByteLength, alternatively perhaps 'videoByteCount'. I cannot create a new stream for new video object, that is too much overhead, so I reuse streams. I close a stream, play new stream name, and wait until the either of the properties above is non zero. This has been working quite alright, but still occasionally I get stale data in the subsequent video objects, even when a stream is supposed to be playing new content. I need to avoid these.
So my question boils down to the already mentioned: what would be a reliable way to do what I am doing? It's just a stream of compressed data, there must be a way for Flash Player to know what is new data and what is stale data. In fact I don't think there is supposed to be stale data in a NetStream that is already playing something else! I know this is hardcore stuff, but we are pushing it :-)
I inserted a video into my movie clip. It freezes sometimes if internet connection is not fast enough but freezes at any frame. I want a loading icon displayed once it stops and disappear when it continues.
View 3 Replies