I would like to know to create a youtube like flash player - actionscript-3

I basically want to embed a swf object and then feed different videos to it. Right now, I made a xml driven video player, however, I would have to create a new swf and xml list for each video I want to embed on my site. This is a real drag and pain. What is the procedure to make a universal player like youtube.
FYI: I can't use flow player because it uses java script and I would like the pages I make on my site to be able to share on facebook.

Take a look at an article for the Adobe Open Source Media Framework. Home site here.

How is the player xml based if you have to create a new swf for each video?
You have to simply send the absolute path of the flv at embed time through flashvars.

Related

Insert html video player in As2 page

I have a online courses with a lot of videos. These videos are in Vimeo for the app of this courses but I use flv loaded to the server in my flash version and the administrator wants to get off these flv.
Cause I don't know a bit of AS3, i can't use the vimeo api. So:
How can I display a webpage (where an html player will be running the video) in my swf? Like some kind of web object. The result, must be the video page inserted in the swf area
Please, be specific in your answer, my knowledge of coding is poor.
Thanks a lot! :)
The best way to approach this would be to setup an ExternalInterface in the Flash course that will communicate with the page. From there, Flash can call a method that is responsible for rendering an iframe embed of the Vimeo player. You'll probably have to pass both the video_id and the location where the video should be displayed (x/y in the event that it changes).
Once you have the javascript setup to render the iframe embed where you need it, you can interact with the player via the Javascript API (https://developer.vimeo.com/player/js-api). The player would essentially be rendered above the Flash (kind of like a lightbox), but will allow the control that you need.
You can also setup whatever playback controls that you need to pass from Flash to Javascript, and eventually to the iframe via the API.
Please let me know if you need any more clarification on how this can be setup.

How to stream RTMPT in a webpage

How can I play the link below within an html file?
rtmpt://s4bfl.castup.net/993860018-123.flv?ct=IL&rg=KZ&aid=386&tkn=20130417204452&ts=0&cu=C78D7065-B213-4905-A7E9-73E7994A4443
I know I need an SWF player, but I can't find one that works with this link.
For example, this site lets me stream it in the demo
http://www.ideaweb.it/eng/player.cfm.
but I can't find a way to include it in my website.
You can do it by make an embed of this player http://www.longtailvideo.com/jw-player/ you just need to download the player and upload it to your website and thats it.

Load only audio from youtube in as3

Is it possible to load only the audio from YouTube into my AS3 flash custom player through youtube AS3 api?
I want to load it into a sound object and then assign it to a sound channel.
I would like to know if there is an "official" way to do this, I'd like to avoid improvising (like loading the whole stream and then use only the audio).
Thank you.
I suggest you read the YouTube terms of service carefully:
https://developers.google.com/youtube/terms
In particular, you may not "promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API".
Doing so in any way (such as moving the video off stage) is likely to have your site blocked for playbacks by YouTube for breach of terms of service.
NB: YouTube manages to provide the service it does through advertising on top of video content. Separating the content like this prevents YouTube from making any money from the service it is providing.
If you use it for private usage, its okay I guess.
After some research work with different APIs and libraries and researching source code, I just tried it by myself and wolla.
Just saying, audio only links are in the page source of each video.
You just have to know what you are looking for ;)
Open a youtube video, view page source and search for "mime%3Daudio". There should be 5 matches, full url for example:
"https%3A%2F%2Fr2---sn-35cxanpbo5a-8pxl.googlevideo.com%2Fvideoplayback%3Fsource%3Dyoutube%26signature%3D30EC556F55533FBFD9003767730D10556681F33A.B12E021CA54CCB9E225F58A4430E9BB528081FB5%26requiressl%3Dyes%26expire%3D1527306011%26clen%3D3064602%26initcwndbps%3D1152500%26ipbits%3D0%26mime%3Daudio%252Fmp4%26dur%3D192.911%26fvip%3D5%26lmt%3D1524946334873350%26key%3Dyt6%26sparams%3Dclen%252Cdur%252Cei%252Cgir%252Cid%252Cinitcwndbps%252Cip%252Cipbits%252Citag%252Ckeepalive%252Clmt%252Cmime%252Cmm%252Cmn%252Cms%252Cmv%252Cpl%252Crequiressl%252Csource%252Cexpire%26itag%3D140%26gir%3Dyes%26ip%3D81.217.53.239%26id%3Do-ALNxMeQYw4LLc1FAjxt4h795wKTdqJnzc_SBgzEJVBxR%26c%3DWEB%26keepalive%3Dyes%26mm%3D31%252C29%26mn%3Dsn-35cxanpbo5a-8pxl%252Csn-2gb7sn7r%26ei%3Du4IIW7DfC46rgAfrrpnICw%26ms%3Dau%252Crdu%26mt%3D1527284230%26pl%3D16%26mv%3Dm"
Just decode URL and you got what you want.

Embedding Media Players for streaming audio

I already know that there are flash and html5 players that can effectively stream a shoutcast source. I also know that I can simply add a link to the .pls and have it open. I know that I can't force a specific player to be used on a users system. I've looked through various questions on this site and haven't actually found a solution.
I know that if I use a simple href command and point it to an m3u file I can pop open a window and then it will load whatever audio player a user has set as a default player. What I would like to do is provide a way for a person to click on a link for a specific type of player and then have that open an embedded player of that type. If the user does not have that plug-in or player installed it will offer the option to dowload and install. I've figured out how to embed a windows media player and a quicktime player but I haven't yet figured out how to embed real audio or a "default" (winamp vlc media) player. I'm hoping someone has an idea on how to accomplish this. Thanks.
All you need to do is embed the right content, and the system will use whatever plugin has registered itself to handle that content type.
<embed src="somefile.ra" />

embed video in html: using object tag

I have been trying to make my own customized video player for a website, but i don't really get how you are supposed to do. I've watched video's on youtube how you make your own flash player, but they embed the video in it in flash and there must be another way, like creating the player design, then having a html tag telling the video path and stuff. I've seen other video sites like movpod (i use it to watch stuff like the simpsons :p). They have an object tag in their site with the .swf player (design), but if i go to that file, it only shows up the design of the player, not the actual video. They are then using param tags to define the path to the video in the page. My question is, how do you make the player design, without importing a video in like flash cs5 or something, using said said object tag to the design, and params to define what actual video you want to watch.
The params passed are usually FlashVars. It's basically a Parameter in the object or embed tag defining some variables you can access in Flash, i.e. the adress of the video to play. See http://www.permadi.com/tutorial/flashVars/index.html example 1
In Flash then you read the address to the video and load it, i.e. using a FLVPlayback object.