ActionScript 3.0 :: OSMF MediaPlayer.seek Not Seeking To The Correct Point?

Feb 24, 2011

Here's my function:

ActionScript Code:
private function onTrackClickHandler( e:MouseEvent,trackWidth:Number):void{
mps.mediaPlayer.seek((skinControls.trackBg.mouseX/trackWidth) * mps.mediaPlayer.duration);

[code].....

View 0 Replies


Similar Posts:


Flash :: Seeking Error In OSMF?

Dec 1, 2011

I have a HTTP video player built using Adobe's OSMF and I am experiencing a strange behavior when trying to seek within a subclip.The player requests data from the server using URL like "http:[url]...." to get the full video, and appends "?begin=123456" to request a subclip starting at 123456 bytes offset.Whenever I try to seek within a loaded subclip, the playhead just drops to the start of the subclip and the video plays from there. Although both mediaPlayer.canSeek() and mediaPlayer.canSeekTo(newtime) return true.

View 1 Replies

Flash :: OSMF Seek With Amazon Cloudfront?

Jun 7, 2011

I've written a little OSMF player that streams via RTMP from Amazon Cloudfront. There's a known issue, the mp3 duration is not correctly readed from metadata and thus the seek function is not working.
I know there's a workaround implying the use of getStreamLength function of NetConnection, which I successfully implemented in a previous non-OSMF player, but now I don't know how and when to call it, in terms of OSMF Events and Traits. This code is not working:

[Code]...

View 1 Replies

ActionScript 3.0 :: NetStream.seek() Not Seeking To Start Of Video On Mobile

Nov 4, 2011

I have a "video on demand" video that I'd like to seek at any point of the video. It's playing on a Motorola Xoom tablet. I can seek to the beginning of the video when the playhead is near the beginning. However, if I the playhead is towards the end of the video and I attempt to seek to the beginning of the video, the video seeks many seconds after the start of the video. I thought this might be a buffering issue, so I set inBufferSeek to true, but I still have the same issue.

View 2 Replies

ActionScript 3.0 :: FLVPlayer : Seeking To Any Point Like YouTube?

Aug 26, 2009

I am trying to achive is the "SEEK" effect that you find on YouTube. Like suppose the Video is 20 Minutes long and only 5 minutes are loaded and if you click on the 15th minute, the video will start playing from that point.I saw a PHP script some time back which would return the "FLV" which starts from the point which is requested to the PHP Script. I didn't bookmark that I don't know why and it was really long time back.

View 2 Replies

Flash :: AS3 - Dynamically Adding Cue Points To Flv And Seeking To Next Cue Point

Mar 14, 2011

I have a flvplayback component onto which I am loading a video. To mimic next frame and previous frame actions I am adding cue points to the loaded for every second of its length. The next frame /previous frame functions implement seekToNextNavCuePoint and seekToPrevNavCuePoint on the video. But its not working the way I expected it to.

Here is the actual class file. You can directly compile it with an fla file containing button instances in the library for play pause stop... Also you would need some sample flv file.

[Code]...

View 3 Replies

ActionScript 3.0 :: Seek To Cue Point Vs Time

Mar 26, 2011

I know seeking to a cue point is known to be inaccurate at times so I'm wondering if the accuracy of seeking to time and secs better. So far I've seen no true difference.

View 12 Replies

ActionScript 2.0 :: Seek To Specific Point In Video Before It Buffered

May 22, 2010

I'd like to start playing a web-based video at a specific time, say 2 minutes in, even if the video hasn't been downloaded that far. I thought I could just "seek" to that time but that apparently only works when the video is buffered first.

So for example, this:
Code:
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.play("[URL]");
ns.seek(123);
video.attachVideo(ns);

Seems to work if you have the video cached or buffered or whatever, but if you don't it gives the "NetStream.Seek.InvalidTime" error, which makes sense. I want to know if it's possible to start playing a video at a specific time, even if the video hasn't loaded up to that point.

View 1 Replies

ActionScript 3.0 :: When Seek To A Point That Has Not Downloaded Yet The Video Player Freezes

Apr 30, 2009

I am using progressive download to play video files in a video player. When I seek to a point that has not downloaded yet the video player freezes. The player enters the seeking state and stops playing.Clicking the play and pause buttons has no effect. The video player comes out of the seeking state and resumes playing only when the video file has completely downloaded. How do I implement the functionality where the player when seeked to a point that has not downloaded simply seeks back to the amount that has downloaded.

View 1 Replies

Flex :: Seek To An Exact Point In A Flash Video Without A Flash Media Server?

Aug 20, 2010

Is the Flash Video (or Flex VideoDisplay) component capable of seeking to an exact moment in a video?It seems to always 'snap' to keyframes (which is understandable). I'm just wondering if there are any mechanisms in the video classes for seeking to exact frames, ie it should do the translation from keyframe to specific frame in the background rather than having to actually play the video forward to the desired frame.This is not a streaming file and has nothing to do with buffering. The player is just downloading a movie file from the web and playing it from memory.

View 1 Replies

ActionScript 2.0 :: Xml - Scrub Back Through The Video To Any Point The Correct Subtitle Appears

May 8, 2008

i want it so that if you scrub back through the video to any point, the correct subtitle appears. I'm thinking something like...

[Code]...

View 1 Replies

Flash :: Android Streaming Video Using MediaPlayer?

Sep 29, 2011

I'm trying to create an app that would list a selected Livestreams, from Own3d.TV, Justin.Tv etc...

If my research isn't totally failed, I can use the MediaPlayer object to Stream video, the only question is how do I use it?

So far my code looks like this, but it's giving me an Exception when trying to prepare the MediaPlayer.

public class Media extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {

[Code].....

Is it even possible to Stream the video from these sites using the MediaPlayer?

View 1 Replies

ActionScript 2.0 :: Check If MediaPlayer Component Paused?

Jan 8, 2007

Is there a way to do this? I want it to pauseplay toggle when you click it, but the only property I can find is "playing" which evaluates to true unless the movie is stopped, which means the playhead is back at the start.

View 2 Replies

ActionScript 3.0 :: Get The Depths Of All The Blocks To Be At The Correct Levels At The Correct Times

Dec 30, 2009

I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?

View 4 Replies

Handle NetStatusEvents With OSMF?

Jul 12, 2011

I am developing a video player using the OSMF library. I have the problem that I sometimes lose the connection to the server. So I set up an object that watches the connection to the server and in case of connection lost it tries a limited number of times to reconnect before giving up. Everything works just fine except for the message that I get on the debugger version of the player which states:[code]But I still get the error. The onNetStatus method gets events like NETSTREAM_BUFFER_EMPTY, NETSTREAM_BUFFER_FULL or NETSTREAM_PLAY_START but not NETSTREAM_PLAY_STREAMNOTFOUND.

View 2 Replies

ActionScript 3.0 :: Load A ByteArray FLV In OSMF?

Oct 21, 2011

I'm working on a local application ( it's not a website or nothing related ) and I have various FLVs with a very simple encryptation method (just like adding 10 at each byte). I can load/play them using NetStream.appendBytes() after my decrypt, but that happens only after I read all video data. What I really need is to stream those videos from a remote url, and decrypting while receiving data, using a OSMF player that I already have.
 
This is my current code just to play my decoded FLV byte array
 
private function playBytes(bytes:ByteArray):void
{
// detecting it's header
if (bytes.readUTFBytes(3) != "FLV")

[Code].....

View 3 Replies

Actionscript 3 :: Set Video Size In OSMF?

Apr 29, 2010

OSMV is very thick so so I'm trying to put a series of minimalist tutorials and again I'm stuck with something that should be dead simple.I have a VideoElement that I added to a MediaPlayer. Now now do I set the size of the video?I'd like to just set the size on the mediaPlayer or MediaElement and not include 20 layout classes like the OSMF examples.

private function handle_elementLoaded(e:MediaFactoryEvent):void
{
mediaPlayer = new MediaPlayer(e.mediaElement); [code]....

View 1 Replies

Actionscript 3 :: OSMF - Add Cuepoint To A Video?

Jun 5, 2010

I'm trying to add a cuepoint to a video using OSMF. I built an OSMF video player, and I'd like to use this instead of the FLVPlayback component, which seems like the only way to add an actionscript cuepoint? Anyhow, I created a cuepoint by writing this:

[Code]...

View 2 Replies

Eclipse :: Flex 4.1 And OSMF 1.5 - Does It Work?

Apr 29, 2011

The Flex 4.1 SDK ships with OSMF 1.0. For new features, OSMF can be updated. Adding the updated osmf.swc to a Flex 4.1 project, I get error messages as soon as I add an OSMF component in my application (VideoDisplay in the sceenshot): Screenshot: [URL].png OSMF 1.5 download page According to the documentation, OSMF 1.5 should work with the Flex 4.1 SDK. Unfortunately, I have to stick to Flex 4.1 because Flash 10.1 needs to be supported (Flex 4.5 needs Flash 10.2) When I change the SDK to version 4.5, the error messages disappears and it compiles as expected. --> Is the documentation wrong about supporting Flex 4.1 or am I doing something wrong?

View 2 Replies

Flash :: Set A Buffer Graphic Using OSMF?

Jun 29, 2011

I'm building a pretty simple player and have a a buffer size set on my MediaPlayer (mediaPlayer.bufferTime = BUFFER_TIME). That's working but I want to show a graphic whenever it starts to buffer. I have an Event Listener on my mediaplayer to show and hide but it doesn't seem to be working properly.[code]...

View 1 Replies

Flex :: OSMF With Basic Authentication?

Jul 24, 2011

How would one create a video or audio stream using OSMF when there must be basic authentication on the url?Can one feed in Audio/Video using HTTPService to provide the header authentication?

View 2 Replies

Flash :: Crossfade Two AudioElements In OSMF?

Sep 5, 2011

I'd like to crossfade two AudioElements inside a SerialElement but I don't know where to start.

View 1 Replies

Actionscript 3 :: Load A ByteArray FLV In OSMF?

Oct 20, 2011

I'm working on a local application ( it's not a website or nothing related ) and I have various FLVs with a very simple encryptation method by now (just like adding 10 at each byte).

I can load/play them using NetStream.appendBytes() after decrypting, but that happens only after I read all video data it's not streamed.

What I really need is to stream those videos from a remote url, and decrypting while receiving data, using a OSMF based player that I already have built. I'm lost on how OSMF deals with FLV, otherwise, I would try to create a plugin or something like. .

find a way to load a local file using OSMF, passing a ByteArray value, instead of a url (below). Or even giving me directions to create a OSMF plugin to solve my problem.

videoElement.resource = "video_url/video.flv";

This is my current code just to play my decoded FLV byte array

private function playBytes(bytes:ByteArray):void
{
// detecting it's header
if (bytes.readUTFBytes(3) != "FLV")

[Code].....

View 1 Replies

ActionScript 3.0 :: OSMF Player Without Flex (Flash Only)?

May 28, 2010

I am looking to build a custom OSMF player such as this OSMF player sample, however I only have Flash CS but not Flex. Is it possible to build a OSMF player without using Flex?

View 2 Replies

Flex :: Play Flv Formatted ByteArray In OSMF?

Jan 9, 2011

I am developing an web application in flex which have a feature of recording the runtime by having a snapshot of each frames then encoding it into a ByteArray for video playback. I am currently using NetStream.appendBytes() for playing the ByteArray FLV. It is working, but I just found out about OSMF and thinking bout integrating it in my application. It is it possible to play the flv byteArray in OSMF?

View 1 Replies

Actionscript 3 :: Detect Event From SWFElement In OSMF?

Apr 7, 2011

I use OSMF's SWFElement for my project to load SWF file in to main Application but the main app can't detect event from child SWF at all, .CODE in the Main App

mediaPlayerSprite = new MediaPlayerSprite();
var swfElement:SWFElement = new SWFElement();[code]....

CODE in the Child Flash SWF using Flash CS3 add code in The FLASH TimeLine

this.dispatchEvent(new Event('animationEnd') );

View 1 Replies

ActionScript 3.0 :: Netstream AppendBytes And Seeking

Sep 13, 2011

I have a simple flv player which connects to a CDN which can take header byte range requests if a user wants to skip through a flv without the need for the flv to be 100% loaded.I am using a third party http librabry to add the range header to the request.My code plays the flv but when I try to skip to 30 seconds into the video it just freezes. I beleive the cdn does return the file as i can trace through the bytes and the header has the content-range repsonse (below).[code]

View 0 Replies

ActionScript 2.0 :: Seeking And Changing Only Part Of URL?

Feb 2, 2010

I have to set button for changing the default language with another one ... this button have to be in my flash header ... only the header in my site is flash ... I want to read the current URL and change the part of it .. for example:

www . myweb.com/en/about.html
>>>> www . myweb.com/fr/about.html

Is this possible with ActionScript 2.0?

View 2 Replies

Media Server :: FMS Causes Error 1009 In OSMF Player

Jul 5, 2011

I have written a program to publish the audio and video data to the FMS. I am publishing the video data to FMS in live mode and trying to play back via OSMF player. When i start publishing video data in the livepkgr application folder of FMS files like .bootstrap, .control, .meta are getting created. But when i try to playback via OSMFplayer i will get error 1009 and one intersting thing what i have observed is after 7 minutes this error won't come and OSMF player starts playing properly. give the solution for error 1009 which comes only for first 7 minutes?

View 12 Replies

Flash :: Experience Using Strobe Media Playback (OSMF)?

Sep 11, 2010

Does anyone have an experience of using Strobe Media Playback (OSMF) in a real project? How is it compared to JW Player and Flowplayer?

View 2 Replies







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