Quantcast
Channel: Adobe Community : Popular Discussions - Developers
Viewing all 42585 articles
Browse latest View live

How can I check my versions?

$
0
0

I can play a certain video using the player over here  http://osmf.org/dev/2.0gm/setup.html

 

But with the player that I have, that I built from source around June, the same video doesn't play. I'm thinking that the issue is that the version from the link above is different than the one I have, but how can I check this? Where can I find the version numbers of OSMF and the Strobe Media Playback?


HLS Playback in OSMF

$
0
0

We want to play back HLS in OSMF, and are looking for an experienced OSMF developer to do this.

 

Matthew Kaufman has already written most of the code for this:

http://code.google.com/p/apple-http-osmf/

However, it needs to be ported to the latest version of OSMF, and probably some fixes.

The obvious reference point is Adobe's implementation of HDS in the OSMF source, and there are many similarities between the two implementations.

 

My initial investigations involved doing the basics, have got it to compile but not correctly function.

Examples of things which need to be done:

  • Abstract some classes e.g. create HTTPStreamingIndexInfo.as and HTTPStreamingM3U8Factory.as
  • Changes to event handling in HTTPStreamingM3U8IndexHandler.as
  • Implement createHTTPStreamingFactory() in HTTPStreamingM3U8NetLoader.as

 

I'd welcome quotes on the work.

Please reply in the thread, or via email ndoyle [at] regencymedia.com.au

Caching issue with Flash Player 11.7

$
0
0

Hello,

 

Our Flash app is live-streaming MP4 video from our CDN, starting with the recent release of Flash Player 11.7

 

Background: 

We have a Flash app that runs in the browser. We see the problem with IE 8, 9, 10, on Windows XP and Windows 7. Both 32-bit and 64-bit.  When our app makes a request for a MP4 video to our CDN, the browser refuses to cache it, and it is causing high network traffic. Caching worked fine in Flash Player 11.6.

Detail:

Using Fiddler, we have contrasted HTTP requests in good/bad cases. The only difference is that, with Flash Player 11.7, the (bad) raw request contains:

Pragma: no-cache 

I realize that this is implementation specific. Note thatwedon'twant this.

We are using theOSMF framework(version 2.0) and have access to the source.

Our code looks approximately like:

resource = new URLResource(url);

player = new MediaPlayer();

factory = new DefaultMediaFactory();

element = factory.createMediaElement(resource);

player.media = element;

 

We are reasonably sure that the URLResource (or its implementation) is adding the Pragma field.

 

Question:

Does anyone have a fix for this? I'm interested in (a) suggested patches to OSMF (b) settings for Flash Player. What changed?

EDIT: We wonder if IE is adding the "Pragma no-cache" because it perceives our video SWF to be either a proxy or outside the "sandbox", so to speak. I have seen notices that 11.7 can introduce issues with backwards compatibility. We are using Flex 3.6. Are there any issues that smell like this one?

MediaPlayer's courtesy unload defeats connection sharing?

$
0
0

When setting MediaPlayer.element a "courtesy" unload is performed on the previous resource.

This has the effect of closing any shared connection.

 

I'm trying to play multiple streams from the same streaming server without going through the connection establishment overhead every time.

Is there another way to accomplish this without setting MediaPlayer.element to avoid closing the shared connection? Or is this a bug in osmf?

 

TIA

imagetrait not being displayed in Safari

$
0
0

Anyone has experienced any issues with an imagetrait on Safari? I have a serial element with an image, swf and a video.


The latter are working fine but the image doesn't display at all and it shoots me the error:

 

ArgumentError: Invalid parameter passed to method
    at org.osmf.traits::LoadTrait/setBytesLoaded()
    at org.osmf.elements.loaderClasses::LoaderLoadTrait/loadStateChangeStart ()
    at org.osmf.traits::LoadTrait/setLoadState()
    at org.osmf.traits::LoadTrait/onLoadStateChange()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.osmf.traits::LoaderBase/updateLoadTrait()
    at Function/<anonymous>()

 

 

Any ideas what could be wrong with it?

OSMF HTTP Stream seek bug...

$
0
0

(This was also posted in Flash as I couldn't find the OSMF forum!)

 

Hi,

I have built an OSMF player that allows users to seek to where they were when resuming, but also to scrub back to the beginning.

 

EG:

 

A stream is 1 minute long.

User starts play at 25 seconds.

User can scrub back to 5 seconds or forward to 55 seconds.

 

This works perfectly with RTMP - TimeTrait reports correctly and video displays correctly.

 

EG:

Start at 25 seconds, TimeTrait reports: duration = 60, current position = 25 and displaying video is 25.

Seek to 5 seconds rewinds to current duration = 60, position = 5, displaying video is 5.

 

But...

 

With HTTP streams...

Start at 25 seconds. TimeTrait reports: duration = 60, current position = 25 and displaying video is 50.

Seek to 5 seconds rewinds to before the start of the stream and gives me a media complete... end of stream.

Start at 30 seconds, TimeTrait reports duration = 60, current position = 30 and displaying video is 60so gives me a media complete... end of stream.

 

It is pretty clear that what is happening is that HTTP stream seeking is resetting my start index to the seek point, as if I had started play with:

 

NetStream.play(seekPoint);

 

Rather than:

 

NetStream.play();

NetStream.seek(seekPoint);

 

This, I hasten to add, is a horrendous issue from my client's point of view as it effectively means I cannot allow resume of content.

 

Does anybody have any ideas, workarounds?

 

G

Metadata handling in ProxyElement (inconvenient)

$
0
0

Hello!

 

I've come across the inconvenience when working with metadata in ProxyElement.

1) Every element that is proxied gets ProxyElement metadata values (that have been set before) on permanent basis and not loses it after being unset as a proxied element:

 


 

publicfunctionset metadata(value:Metadata):void

{

 

 

// Transfer all old values to new:

 

foreach (var url:String in proxiedMetadata.keys)

{

value.addValue(url, proxiedMetadata.getValue(url));

}

proxiedMetadata = value;

proxiedMetadata.addEventListener(MetadataEvent.VALUE_ADD, redispatchEvent);

proxiedMetadata.addEventListener(MetadataEvent.VALUE_CHANGE, redispatchEvent);

proxiedMetadata.addEventListener(MetadataEvent.VALUE_REMOVE, redispatchEvent);

}

2) Consumer that is listening for METADATA_ADD of ProxyElement never gets informed of new values appearing in ProxyElement metadata after the proiedElement is set. Look at this code in creating ProxyElement:

 

proxy2 =

new ProxyElement();

 

proxy2.addEventListener(MediaElementEvent.METADATA_ADD,

function(event:MediaElementEvent):void {

 

trace ("METADATA ADDED: " + event.namespaceURL);

});

 

proxy2.addEventListener(MediaElementEvent.METADATA_ADD,

function(event:MediaElementEvent):void {

 

trace ("METADATA REMOVED: " + event.namespaceURL);

});

 

 

And this, say, button click handler:

 

 

var e:MediaElement = new MediaElement();

 

if (null == proxy2.getMetadata("META1")) {

e.addMetadata(

"META1", new Metadata());

}

else {

e.addMetadata(

"META2", new Metadata());

}

proxy2.proxiedElement = e;

 

 

 


METADATA_ADD and METADATA_REMOVED are never called.

 

This is particulary inconvenied when using LoadFromDocumentElement. Imagine complex processing of loaded content with adding metadata to it - top level LoadFromDocument will never inform a listener of the addition of proxied metadata when its content is loaded and formed.

 

For now I'm using a temporary solution like this:

 

 

overridepublicfunctionset proxiedElement(value:MediaElement):void {

 

     super.proxiedElement = value;

 

 

     if (null == value) return;

 

 

     //Copy all proxied metadata

 

     var keys:Vector.<String> = value.metadataNamespaceURLs;

 

     foreach (var key:String in keys) {

          addMetadata(key, value.getMetadata(key));

     }

}

 


It does not fire METADATA_REMOVE events but OK for LoadFromDocuments.

 

I think it will be great if ProxyMetadata gets somehow rewritten in later releases - or may be I'm not getting a concept of ProxyElement?

What do you think?

 

Thank you!

How to use Logging?

$
0
0

I am trying to get QoS and other information from OSMFPlayer. I have logging set to true in the project properties.

 

I import org.osmf.logging.*, and add the code...

CONFIG::LOGGING { logger.fatal("LOG THIS INFO"); }

...

CONFIG::LOGGING { private static const logger:org.osmf.logging.Logger = org.osmf.logging.Log.getLogger("OSMFPlayer"); }

 

(I am using logger.fatal because I assumed it would be the best to get only the information i want.)

 

It appears that thsi is all I need to create a log, however, I cannot find a log anywhere. Is this all that is needed to create a log. And where should the log appear? The documentation is pretty sparse on this topic.

 

My setup is a Linux server with my media and OSMFPlayer streaming to a Windows client using Firefox.

 

Thanks,

Dan

 



Seeking within client buffer in OSMF player flushes the client buffer

$
0
0

Hi,

 

In one of the skin for OSMF player I saw that when we seek then loaded bar and current bar both becomes equal to seek point and it again starts loading from seek point though loaded bar was greater than current bar initially.

In other words I can say when we perform seek operation then bufferLength becomes 0 and start buffering once again from the seek point but if we are seeking within the client buffer why should it make bufferLength 0 and flush older data which was already buffered.

Anyone has idea on this issue.

 

Regards,

Amit

Anyone else seen this while loading a plugin: "Error #2044: Unhandled IOErrorEvent:"

$
0
0

Hello All,

 

I'm curious if anyone else has seen this error while loading an OSMF plugin dynamically:

 

"Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type."

 

You will only see this with the debug version of the Flash Player. The plugin loads fine, but the RTE appears. I've submitted a bug for this (http://bugs.adobe.com/jira/browse/FM-1104) but apparently no one at Adobe can reproduce it while everyone on our team can easily reproduce it at will. Some use Windows, some use Macs.

 

I've written a very simple player and a very simple plugin, you can simply refresh your browser to try to reproduce the error. You won't see anything on the page, just hit refresh a few times until you see it. You'll need the debug version of the Flash Player to see the RTE. One guy on our team (uses Windows) claims he sees it after he clears his browser cache. I can make it happen on Safari for Mac by simply hitting Cmd-R a few times.

 

http://mediapm.edgesuite.net/chuck/osmf-test/OSMFPluginErrorTest.html

 

I also see this on cnn.com. I've attached a screen shot.

 

Screen shot 2010-11-15 at 2.43.34 PM.png

 

Go to cnn.com and watch any video. I get the RTE every time on the first try. We are seeing this repeatedly on OSMF built players that load OSMF plugins dynamically.

 

Reply if you see the error. This will greatly help in determining that I've not completely lost my mind

In the mean time, I'll be working locally on a work around and hopefully submit that to the OSMF trunk.

 

Thanks,

- charles

interrupt player and start anew with SerialElement

$
0
0

Hello,

 

How can I stop player and start with the new playlist?

I use SerialElement to make a playlist from (SWF, Image, Video).

 

serialElement.addChild(new DurationElement( playTime, new SWFElement( new URLResource(urlString))));

 

When I get information about new playlist I pause the player and remove

serialElement children:

 

while(serialElement.numChildren != 0) serialElement.removeChildAt(0);

 

and add new items.

But after this I get "playbackError"..

Do I need to kill some other processes before adding new items ro SerialElement?

 

Thank you in advance,

Kioshin10

Stage Video Flicker

$
0
0

Hi, all,

 

Incredibly excited about OSMF 1.6 Sprint 1.  I am especially excited about the Stage Video functionality.

 

For optimal usage of Stage Video, what do I need to change in my actual player, besides the version of OSMF?

 

Before, I had video rendering over some (incidental) background content. I experienced a flicker, and thought this might have been due to a graphic behind the video; the flicker doesn't happen when I turn off StageVideo.  Do I need to get rid of that graphic manually, or will the video just blot it out?

 

Thanks,

 

Nick

netStream client handler

$
0
0

Hi,

I want to add an handler for onMetaData on my netStream Client.

The onMetaData function is never called, but I know that the .flv file I'm playing contains metadata...

 

public class CustomNetStream extends NetStream
{

     public function CustomNetStream(connection:NetConnection)
     {

        super(connection);

 

        client = new NetClient();

        NetClient(client).addHandler(NetStreamCodes.ON_META_DATA, onMetaData);

 

        addEventListener(NetStatusEvent.NET_STATUS, onNetStreamStatus);

     }

 

     public function onMetaData(value:Object):void
     {
           NetClient(client).removeHandler(NetStreamCodes.ON_META_DATA, onMetaData);
          
           trace("Got metadata.");
      }

 

    private function onNetStreamStatus(event:NetStatusEvent):void
     {

       trace("onNetStreamStatus() - event.info.code=" + event.info.code);

     }

}

Definition org.osmf.layout:AbsoluteLayoutFacet could not be found

$
0
0

Can anyone please guide me how to fix this error, I am using FlexBuilder 4.5

 

Thanks

Dynamic Streaming Buffer

$
0
0

I have a DynamicStreamingResource with three bitrates. When I seek during playback, it takes 6.5 seconds to fill the buffer. In contrast, when I use a single URLResource to stream just one video, the same buffer fills in under a second. The lag is very noticeable to the user.

 

My question is, why is there such a discrepancy in the rate at which the buffer fills between a single stream and a multi-bitrate stream? The network connection speed is the same. Why is one slower?

 

FYI - I'm observing the bufferLength property on my MediaPlayer to get those numbers.


Flash Builder 4.6 Error No grammer constraints (DTD or XML schema) detected for the document

$
0
0

Hi All,

 

I just updated to 4.6 from 4.5 and all of my XML files now have the following warning: No grammer constraints (DTD or XML schema) detected for the document.  I've been searching desperately to find out why this is happening but i'm getting nothing.  I read on a stack overflow forum that you're supposed to go in to preference > XML > XML Files > Validation and change some DTD settings there, but in this version, it's not available.  I tried ignoring grammar versions too. Still nothing.  Anyone run into this issue before?  Looking forward to your feedback.

OSMF 2.0 unable to play RTMP streams - playbackError !!

$
0
0

Hi

 

I am using latest OSMF swc file with flex 4.6 to compile a video player on android. The basic MediaPlayer Example plays http files well enough. but it is not playing any rtmp streams (live or recorded). I have tested with FMS 4.5 and Red5 1.0. In MediaPlayerStateChangeEvent i get playing... playbackError. thats it.

 

I have seen this mentioned by others as well. Can some please please help me out with this. No matter what way i try it just does not work. fms says client connected by when trying to play stream it says playbackError. SMP on desktop plays the same url well.

 

Please help!!

UI as plug-ins

$
0
0

How much can plugins aid us for UI elements within our player? I.E. can player controls be made as plugins?

 

(This question comes from a customer.  Reposting here for the OSMF team to respond and for the benefit of the whole group.)

Sumner Paine
osmf product manager

VerifyError: Error #1053

$
0
0

Any idea why I'm getting the following error?

 

VerifyError: Error #1053: Illegal override of play2 in org.osmf.net.dynamicstreaming.DynamicNetStream.

Problems with Akamai Streams

$
0
0

Hi !

 

I am new to OSMF and i love it. However, i can not get the Akamai streams to work properly.

 

If i understood it correctly, OSMF should play the Akamai streams even without any plugins ( http://forums.adobe.com/message/2636240#2636240 )

 

My player plays "normal" streams and progressive downloads just fine, but if i try an Akamai stream, i am first getting the MediaStateChangeEvent with "ready" and then a MediaStateChangeEvent with "playbackError". After that i am getting a MediaError with errorcode 16 (Stream not found)

 

I am trying to connect just like i do for all other streams:

 

var resource:URLResource = new URLResource(streamURL);
var mediaElement:MediaElement =  _mediaFactory.createMediaElement(resource);

 

_mediaContainer.addMediaElement(mediaElement);
_mediaPlayer.media = mediaElement;

 

 

As i said, it works fine with normal streams (so my player works) and the same Akamai streams are playing fine in other players (for example, the Akamai test player) so the stream URLs are also fine.

 

please help

 

One more question regarding the plugins - if i would need to play secure Akamai streams, then i still would need the plugin, right ? And for dynamic streaming i still need the SMIL plugin ?

 

Thank you !

Viewing all 42585 articles
Browse latest View live




Latest Images