Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to assign FlvPlayback source to f4v dynamically

Participant ,
Jun 03, 2013 Jun 03, 2013

Odd quirk here...

I'm using the FlvPlayback component to play multiple videos.  Some are flv files, some are f4v files, all residing in the same directory on my Flash Media Server.

If I enter the URL to an f4v file in the "Source" field available in the properties panel when the component is selected on the stage, the f4v file plays fine, as do the flv files.

However, if I try to set the source dynamically via actionscript using:

flvPlayback.source = "rtmp://myFMS/myProject/myVideo.f4v";

No go!  The video doesn't play.  However, using the above code to reference a flv works just fine.

Does an f4v require different verbiage than an flv does?

TOPICS
ActionScript
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 03, 2013 Jun 03, 2013

yes, for fms, the application.xml file can be used to set mime types:

http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926bcf-7ff0.html#WS5b3ccc516d4fbf351e63e3d119f2926bcf-7eea

<MimeType>video/mp4-f4v</MimeType>

Translate
Community Expert ,
Jun 03, 2013 Jun 03, 2013

you need to add f4v files to your servers mime types.  contact your server admin.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 03, 2013 Jun 03, 2013

Thanks for your prompt reply, kglad.

So until we add the mime types to our Flash Media Server, the video won't load the f4v using the dynamic AS3 code, but it _will_ play the video when the URL is entered into the property panel's "source" field?

That seems odd to me, but if that is indeed the case, I'll have our server admin add the mime types.

Thanks again!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 03, 2013 Jun 03, 2013

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 03, 2013 Jun 03, 2013

Hi kglad,

My server admin doesn't seem to know how to set that up.

Where can you add the mime types?  Is it in some config or xml file somewhere?

Thanks again

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 03, 2013 Jun 03, 2013

yes, for fms, the application.xml file can be used to set mime types:

http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926bcf-7ff0.h...

<MimeType>video/mp4-f4v</MimeType>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 04, 2013 Jun 04, 2013

Wow, kglad, thanks for your concise and helpful information!   It's very much appreciated!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2013 Jun 04, 2013

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 05, 2013 Jun 05, 2013

Hi kglad,

I'm still having a little difficulty I'm hoping you can help me with on these f4v's.  

I realized I need to be storing the f4v files in the VOD folder in the FMS's webroot, since this is what we need to do to utlize Adobe's new video method that enables users to see the videos on iOS devices as well as desktops on our webpages.  (This approach requires the use of manifest files).

However, the video I'm trying to implement now is within an iPhone app, (being built in Flash and exported as a native iOS app).   Up to now I've been using the old flv files in the app with the flvPlayback component, (the files reside in the applications directory on the FMS), and that's been working fine.  But now we want to use the new, higher quality f4v files located in the VOD directory on the webroot.

The flvPlayback component plays them just fine when I test the app on my desktop within the Flash Professional environment, but once I export it to the iPhone, the f4v videos don't play.

Is there something special I need to do with the flvPlayback component in order to get the f4v files to play on iOS devices?  Thanks again for your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 05, 2013 Jun 05, 2013
LATEST

Never mind, kglad, I think I found the answer to my dilemma... it looks like it can't be done.  : /

"FLV is On2 VP6, and that can be handled in iOS using the FLVPlayback component. F4V is generally H.264, and that can't be handled." 

(As quoted in this thread:  http://forums.adobe.com/message/3895106  )

Thanks again for your willingness to help!  You rock!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines