How to make an AS3 Flash video player?

坚强是说给别人听的谎言 提交于 2019-11-30 19:14:43

问题


I would like to make a Flash video player that takes a URL as an attribute when you embed it and loads the video based upon that attribute. All I need for the moment is a play/pause button. How can I do this is AS3? It needs to be able to play F4V files.

If it's simple to make other features, like full screen, showing how much of the video has been loaded on the timeline, or being able to click at any point in the timeline yo jump to that point in the video, please tell how!

Thank you so much!


回答1:


Making your own from scratch is inventing the wheel. if your doing it as a side project, that's fine but there isn't enough scrolling on this page in order to explain how to build you own player. You honestly best to google it. A good source to get started is http://www.gotoandlearn.com/ and have a look at Lee Brimlows tutorials.

*If you're looking at building a player of your own - also consider using the new StageVideo API as this will soon be standard for flash video.


There are many freebies out there to assist you in getting a video player made.

  • http://flowplayer.org/ - popular, but charges for the good stuff.
  • http://www.longtailvideo.com/players/ this is JWplayer and you may have seen it in many places.
  • http://www.webresourcesdepot.com/lightweight-flv-player-component-toobplayer/ easy to use but is AS2

But I recommend http://www.opensourcemediaframework.com/ This has been strongly developed within the towers of Adobe and theres nothing you cannot do with it. It's AS3 and free of charge. You can see examples of this on Adobes' Dev Net or Brimlows blog.

I use it myself and it includes many examples, embed code, documentation and feature plugins such as youtube and adverts.




回答2:


Have a look at OSMF, it will help you a lot.



来源:https://stackoverflow.com/questions/4985935/how-to-make-an-as3-flash-video-player

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!