ActionScript 3.0 :: Toggling Video Fullscreen And Positioning Videoplayer UI?

Oct 12, 2011

I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them:(The project is for Flash Player 10 and the video is intended to run inside a browser.)

Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI in the swf itself), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?

Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen,. How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Toggling Video Fullscreen And Positioning Videoplayer UI - Best Practice?

Oct 12, 2011

I've landed a project which is centered around building a custom video player with some special functionality (so I can't just use the default Flash video player, unfortunately). I have two small 'problems' in the sense that I could probably solve them myself, but I'd like some input on best practice for solving them: (The project is for Flash Player 10 and the video is intended to run inside a browser.)

Problem 1: Toggling between normal / fullscreen playback Ok, so my custom video player needs to be able to toggle between fullscreen and normal embedded-in-webpage player size. How does fullscreen toggling currently work in AS3 -is there a specific AS3 method for fullscreening a specified video object in the swf (without stretching the video player UI overlay), and if so, does it automatically black out the background if the screen format doesn't match the video format? - or do I need to download a class for this?

Problem 2: Positioning video player UI when going fullscreen As opposed to YouTube, I want the player UI to still show up when the video is toggled to fullscreen mode - but as mentioned above, I don't want to stretch its size along with the video. So is there a best practice for repositioning the video player UI to the vertical bottom and horizontal center of the screen when the user clicks full screen? I'm not entirely familiar with what happens to the Flash stage when it goes full screen, How to deal with not knowing the coordinates of the vertical bottom/horizontal center when screens have different ratios and resolutions?

View 3 Replies

ActionScript 2.0 :: Positioning Mc At Fullscreen

Feb 1, 2009

i have seen websites with fullscreen .swf and i dont know what kind of script they used to have the movie clips positioned constantly i.e. 20px from right border of the screen while all people have different resolutions.

View 2 Replies

ActionScript 2.0 :: Positioning Mc To Borders With Fullscreen?

Feb 5, 2009

how do i make some movie clip positioned lets say 10 pixels from border while im using fullscreen swf?

I have tryied:

Code:
bobek._x = (Stage.width)-60;
bobek._y = (Stage.height)- 60;
(test movie clip have 50x50px)

but it just put it once and takes the width and height of the .fla settings insetad of real dimensions of fullscreened .swf

How to make it position the mc all the time whenever someone resize the window/open it in fullscreen?

Im using those commands for full screen:


Code:
fscommand("allowscale","false");
fscommand("fullscreen","true");
fscommand("showmenu","false");

[Code].....

View 12 Replies

ActionScript 3.0 :: Load New Video Into VideoPlayer?

Jul 15, 2011

I've made a very simple video player from bits I've found on the internet and it's working great provided I want to only use 1 video...

I have added two buttons on the stage and the idea is, if you click "videoBtn1_mc" it plays video1 and if you click "videoBtn2_mc" it plays video2.

I can't seem to eject/unload the first video that is loaded in. Once it loaded in it will just play that one no matter which btn I click...

Here is my code. The buttons I'm referring to are right at the bottom...

ActionScript Code:
import flash.events.MouseEvent;
//------------------------------------------------------------------------------------------
////CONSTANTS////

[Code].....

What must I add to eject/unload the current video so the new one can load in?

View 4 Replies

ActionScript 3.0 :: Seek To A Not-yet-loaded Second In Fl.video.VideoPlayer?

May 11, 2009

I'm using fl.video.VideoPlayer and I'd like to be able to seek arbitrarily within the video. seek() works unless the given time isn't yet loaded, in which case the video hiccups and continues playing normally. I'd like it to seek to the specified second even if it's not yet loaded, loading/buffering as necessary. I've tried seek() and play() and haven't been able to make this work.

View 1 Replies

Html :: Fl.video.VideoPlayer Loads Flv Relative To Swf?

Nov 9, 2009

Update: Turns out this is undocumented behaviour of the NetStream class - NetStream loads relative to the swf, as opposed to URLRequest which loads relative to the HTML doc...annoying.I am having a strange issue where loading an FLV file using thefl.video.VideoPlayer class that comes with CS4: Adobe docs hereUsually when loading external content into flashplayer, the path is relative to the HTML page that the swf is embedded in - but when I try and load an FLV using the VideoPlayer class the player looks for a path relative to the swf, not to the HTML (as you would expect).

eg:
My file setup is:index.html (which contains the swf)swf/my-video-player.swfvideo/my-video.flv

[code].....

View 1 Replies

ActionScript 3.0 :: Flash Fullscreen Screensaver - Positioning Unscaled MovieClips

Aug 30, 2010

I am making a fullscreen "screensaver" project (using screentime, FYI). I have some mcs on the stage that I want to scoot down to the bottom left, right or whatever on the screen. I want these elements to position themselves differently based on the users resolution and aspect ratio of their monitor. (for example: whether the monitor is 800x600, 4:3 OR 1366x768, 16:9, I want a text field or mc to be 10 pixels for the bottom and left of the screen).

View 1 Replies

Javascript :: YouTube Video Not Playing Correctly After Toggling The Player's Visibility

Mar 26, 2012

I am using YouTube JS API to play videos on my site. Video is played on the dialog box. When user closes the dialog box, player is stopped - player.stopVideo(); But when user clicks again on video icon again, dialog box appears

In Chrome, the video starts playing at the previous position - OK Firefox, the video starts playing from the start irrespective of where user left it last time. - NOT OK

As per my requirements, I want the Chrome to behave as how firefox is behaving.

Here's a fiddle: [URL]

View 1 Replies

Flex :: Detect Source Video Size VideoPlayer?

Apr 30, 2010

Is it possible in Flex 4's VideoPlayer control (spark.components.VideoPlayer) to detect some attributes of the source video?

In my case, it's a local file. I would need to detect the original width and height of the input source video (an h264 f4v).

View 2 Replies

ActionScript 3.0 :: Fullscreen Button On The Playback Component, Which Will Allow The User To Toggle The Video Fullscreen?

Apr 13, 2009

I like to make a fullscreen desktop application, with an FLV, using the FLV Playback component. However, I�d like there to be a Fullscreen button on the playback component, which will allow the user to toggle the video fullscreen.I cant, for the life of me, figure out how to do this with various settings�it should be easy! This is what I have--is there a better way to do things (without a custom movie player)? My inital settings are as follows:

Code:
stage.displayState = StageDisplayState.FULL_SCREEN;
theMovie.fullScreenTakeOver = false;

Then I have a function which should work--but my button won't appear in fullscreen--Can I apply this function to the built-in fullscreen button?:

Code:
function handleClick(event:MouseEvent):void
{
if ( !theMovie.fullScreenTakeOver )[code]....

View 9 Replies

Flex :: Flash - Getting Exect Time Of Currently Playing Flv Video Stream In VideoPlayer?

Dec 5, 2010

How to get timestamp with milliseconds or better nanoseconds of currently playing video?

View 1 Replies

Actionscript 3 :: Seek Function Don´t Work On Flex VideoPlayer After The Video Finish?

Jan 22, 2012

The video seeks normally when first playing but when it finishes i can´t seek the video again. I used a listener to call a function after the event TimeEvent.COMPLETE occurs(video finishes). In the function i call the function player.seek(20) for example but it doesn´t work. The video keeps in the end of it.

View 1 Replies

ActionScript 3.0 :: Video Scrubber Positioning To The Edge Of The Screen When The Video Starts

Sep 3, 2009

I'm tweaking the video code found here [URL] His progress bar starts at the edge of the stage. My progress bar starts at x=40 into the stage. My problem is that even though all my mcs related to the progress bar are positioned properly the scrubber mc hops to the edge of the screen when the video starts. It also acts as if the progress bar you scrub though is at the edge of the screen too. I can't figure out why it's doing this. There's nothing in the code to tell it to do as such.

[Code]...

View 6 Replies

ActionScript 3.0 :: Fullscreen Video From Fullscreen Air App?

Feb 24, 2011

I'm hoping someone can help me with an issue I'm having.
 
I currently have an AIR Application that runs fullscreen.
 
At some point in the application, I am trying to get a video to play fullscreen as well.

[Code]...

View 3 Replies

Professional :: Error "Definition Fl.video:VideoPlayer Could Not Be Found"?

Mar 8, 2010

I have this in a .as file package {import fl.video.VideoPlayer;import flash.display.Sprite; public class VideoPlayerExample extends Sprite{public function VideoPlayerExample() {}}} When I create and save .fla file with a document class VideoPlayerExample, and test the movie I got this error: 1172: Definition fl.video:VideoPlayer could not be found.
 
how to make flash find where the definition is. My copy of Flash was installed with the default installation settings.

View 4 Replies

Actionscript 3 :: Get Video Controls To Show Up In Fullscreen Video Flash?

Oct 17, 2010

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 Replies

ActionScript 3.0 :: Positioning The Video Controls?

May 12, 2010

how to position my video controls. I thought I had it figured out until I moved my video and the controls did not move with it. I tried doing this: video.addChildAt(vidControls, 2); but it keeps barking at me.

Code:
video = new Video();
video.width = 640;
video.height = 360;

[code]....

View 1 Replies

AS3 :: CS3 / CS5 Fullscreen Video Window Revert At Video End?

Feb 19, 2011

I have an EXE flash project that has a menu with several videos in a little player. The player has a fullscreen button that makes the video go fullscreen. When the video is over, the widescreen video is frozen on the last frame and stays there. I need the player to automatically leave widescreen mode at the end of the video and go back to the regular menu player.

I'm using AS3 to call up the videos from the menu clicks, so I'm not scared to get into code using actionscript. I just don't know what to do.

View 1 Replies

ActionScript 3.0 :: Fullscreen Only On Video

Dec 10, 2009

I made a website this week for school about Pink (URL...).But when I enter fullscreen mode (not available online) the website completely vanishes and the only item I get to see is the video from the videos page.[code]

View 0 Replies

IDE :: Fullscreen Playing Video Only?

Oct 20, 2009

I'm using the normal

Code:
stage.displayState = StageDisplayState.FULL_SCREEN;

and it's just fullscreening the video part of my swf, not the entire swf.

View 6 Replies

ActionScript 3.0 :: Fullscreen On Only Video?

Mar 25, 2010

i have a swf that is 900x500 that plays videos which are usually in the 500 range on width.is there an easy way to only have the video show on fullscreen?

View 1 Replies

ActionScript 3.0 :: Fullscreen Video And Display Certain MCs?

Apr 27, 2009

I am just starting to use AS3 (grumble) and I have a video application that when it runs fullscreen it hides all other movie clips and objects on the stage. I would like to display certain objects/movie clips over the fullscreen video.

View 1 Replies

Center Video At FullScreen With NoScale

Jul 23, 2009

I'm trying to center my FLVPlayback video programmatically in AS3 but I'm having a hard time with it.[code]This code isn't working, does anyone have any ideas how to get this to work?

View 4 Replies

Force Playing A Video In Fullscreen?

Mar 18, 2011

I need to know how it's possible to force playing a video in fullscreen mode?

Fullscreen is in most of the cases a function by ActionScript and is triggerd with a user action, like mouse click or double click.

The other way is to force playing a video in the mobile devices native player, like youtube does. I have no clue how this approach is realized.

View 1 Replies

ActionScript 3.0 :: Video In Fullscreen Without Stretching?

Aug 23, 2009

I am working on a project with video player in it using Video object that plays flv files or FMS streams. The user can switch to fullscreen browser mode. And here is my problem - most of the time the aspect ratio of the video is different from the screen ratio so it looks stretched. I want to put black spaces left and right or top and bottom (depending on the current video and screen ratios) so that it looks normal without stretching.

View 0 Replies

ActionScript 3.0 :: Imported Video Going Fullscreen On Its Own?

Nov 1, 2010

I have an application that is showing an imported mp4 with the playback component. The video is to be displayed at a fixed size on the interface. When I launch the app it works perfect. However this is a projector file that I need to launch in fullscreen mode.

For fullscreen I am using

ActionScript Code:
import flash.display.StageDisplayState;
stage.displayState = StageDisplayState.FULL_SCREEN;

The app opens up in fullscreen however the video is taking up the entire screen now.. I need it to hold its place on the interface in fullscreen mode.

View 2 Replies

ActionScript 3.0 :: Video Fullscreen Resizing?

Nov 16, 2010

I have a problem with my video player that I'm working on. Currently, it's using a video screen component that is fed video via netStream. There is a fullscreen button that when clicked, sets the mode to true, and the player resizes. However, I'm having trouble where the control bar is concerned.

[Code]...

View 1 Replies

ActionScript 2.0 :: Embedded Swf With Video > Fullscreen?

Dec 3, 2010

I would like to play a video in full screen. This is no problem when the swf resides embedded in a HTML document on itself, but..

..now it's loaded into another swf file called 'container.swf' (look at picture A).When the fullscreen function is called from within the swf file that contain the video and the fullscreen button, it goes to picture B. The other two swf files (swf1 and swf2) also goes into fullscreen. My desired result would be picture C.The video goes fullscreen within it's own swf file and does not "take over" the whole screen.

View 9 Replies

Actionscript 3.0 :: Fullscreen Sometimes Freezes Video?

Jan 13, 2010

I just noticed it while working on a new project. When I enter fullscreen with fullscreeensourcerect in Internet Explorer and then exit again, there are leftovers (artifacts) from the video still visible where they should not be. I have attached a screenshot to demonstrate. The same flash movie works in firefox withouth these artifacts staying onscreen. Internet Explorer Version: 8.0.6001.18702Firefox Version: 3.5.7Nvidia Geforce GTX 260 (Driver version: 195.62)

flash code:
Code: Select allpackage
{

[code].....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved