Jun. 30, 2009Anthony
I've got the these links to videos:
rtmp://video.autotrader.com/ondemand/multimedia/qa/ATCMedia/2009-04/01/v-00000038816-19-22-19
http://www.mediacollege.com/video-gallery/testclips/20051210-w50s.flv
rtmp://video.autotrader.com/ondemand/multimedia/qa/ATCMedia/2009-06/29/v-00000051255-18-22-55
rtmp://video.autotrader.com/ondemand/multimedia/qa/ATCMedia/2009-04/01/v-00000038800-18-42-28
http://media.autotraderstatic.com/model_info/media/WheelsTV/1onONE/1onONE_09_Cadillac_Escalade.flv
We are switching to the long tail player and all of the above videos work in our old player. The videos with no extensions and/or rtmp protocols dont appear to be working. I tried running them on a server and I got error 2048 if I run them local i get 2032 error. I'm running them in flex. Where urls & titles are being set through a function
private function changeMovie(url:String,title:String):void{
playerObject.config['title'] = title;
playerObject.config['streamer'] = url;
playerObject.config['type'] = 'video';
// playerObject.config['file'] = url; --tried it
// playerObject.config['type'] = 'flv'; --tried it
playerObject.view.sendEvent(ViewEvent.LOAD,url);
}
thanks for your help.
Anthony
Jun. 30, 2009lost
The RTMP URI must be broken into streamer and file, probably something like this:
streamer=rtmp://video.autotrader.com/ondemand/multimedia
file=qa/ATCMedia/2009-06/29/v-00000051255-18-22-55
Generically:
'streamer': 'rtmp://domain/application/instance',
'file': 'prepend:path(s)/filename.ext',
instance, prepend, path(s), and ext are optional depending on your server configuration.
If your RTMP source is a CDN, you may need to use one of these types: http://developer.longtailvideo.com/trac/wiki/FlashFormats#Streamingservers
Jun. 30, 2009Anthony
Thanks for the response. yeah, I tried that too & it didnt work for me. Were you able to get them working? I'll try the cdn types but we have video sources from all over. I'm wondering how I'd know which 1 to use.
Jun. 30, 2009Anthony
i did try (like in the flex demo. )
longTailSrcfile = "/flex/fast-ads/fastAdsMediaPlayerAssets/components/mediaPlayer/swf/longtail/longtailPlayer4.4.swf?streamer=rtmp://video.autotrader.com/ondemand/multimedia/qa/ATCMedia"+
"&controlbar=over" +
"&file=/2009-06/29/v-00000051255-18-22-55" +
"&title="+title+
"&autostart=false&type=video&" +
"skin=/flex/fast-ads/fastAdsMediaPlayerAssets/components/mediaPlayer/swf/longtail/sdk/skins/stylish.swf&" +
"resizing=false";
But I couldn’t get this working. I’m trying to change the source dynamically using a function in my app to change them with a src and a url. Some will be streaming and others could be static.
Something like
private function changeMovie(url:String,title:String):void{
playerObject.config['title'] = title;
playerObject.config['streamer'] = url;
playerObject.config['flie'] = url;
playerObject.config['type'] = 'video';
playerObject.view.sendEvent(ViewEvent.LOAD,url);
}
Jun. 30, 2009Anthony
Thanks for your help Ethan. he was saying streaming might not be supported in flex. Anyone shed any light?
Jun. 30, 2009Anthony
<mx:VideoDisplay> will work with any of the urls but I cant seem to get the longtail player working.
Jun. 30, 2009lost
These work for me in a swfobject v2.1 embedding, adjust accordingly for Flex. JW FLV Player v4.5.227
'streamer': 'rtmp://video.autotrader.com/ondemand/multimedia',
'file': 'qa/ATCMedia/2009-04/01/v-00000038816-19-22-19',
'type': 'rtmp',
'streamer': 'rtmp://video.autotrader.com/ondemand/multimedia',
'file': 'qa/ATCMedia/2009-06/29/v-00000051255-18-22-55',
'type': 'rtmp',
'streamer': 'rtmp://video.autotrader.com/ondemand/multimedia',
'file': 'qa/ATCMedia/2009-04/01/v-00000038800-18-42-28',
'type': 'rtmp',
Jul. 01, 2009Anthony
thanks lost!!!!! i got it working. Well you got it working. :-)
Jul. 01, 2009lost
That's great news!
Good Luck!
Jul. 01, 2009Anthony
I did make the suggestion to Ethan, that it would be nice if the player handled the assignment and you could just input a url.
Jul. 01, 2009lost
Because of the many different configurations needed for various versions of FMS, Wowza, and Red5, and live vs. static, subscription, token, etc., it's best if the configuration is split into the 5 different flashvars for maximum flexibility, IMHO.
Jul. 08, 2009Anthony
If you were using this as like a jukebox player. How would you resolve types that could be streaming or static? if there were a common pattern to the urls its pretty trivial but breaking it up into streamer, file & type with any url is a little more chanllenging
Jul. 08, 2009lost
Seems like when I compiled the list of URIs for the streams, I would take note of the type of media or stream.
Why would you need to do it later?
If I had a list of 1,000,000 raw URIs, I would make a header request (just a few bytes), then classify the URI based on the response that I received back from the server.
PHP has specific functions for doing this, almost no programming needed.
Typical server response:
HTTP/1.x 200 OK
Content-Type: video/mp4
X-Mod-H264-Streaming: version=2.0,client=flash
Content-Length: 12748183
Date: Wed, 08 Jul 2009 17:04:39 GMT
Server: LightTPD/1.4.23-1 (Win32)
Obviously an MP4 video file.
Jul. 10, 2009Anthony
Yeah, I was thinking that too but more so on the client side either in the flex/flash app or in the player itself. Thanks for your help
Jul. 10, 2009lost
You would probably have to do it in JavaScript on the client, because if I recall correctly, Flash has severe restrictions on getting headers. There's been a request in with Adobe for a long time to allow some header retrieval, but it hasn't happened yet.
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.