在 Flex 中嵌入 Windows 媒体播放器
我有一个要在应用程序中使用的 mp4 文件。目前我正处于研究用于这项工作的技术阶段。我熟悉 flex,希望能够将它用于应用程序。但我无法找到在 Flex 中播放该文件的方法。我只能在 Windows Media Player 中播放该文件,并且需要安装三个编解码器:Mp4Audio.ax、Mp4Video.ax、Mp4Src.ax。
在我看来,如果我可以在flex中嵌入一个Windows Media Player插件或者我可以在Flash播放器中指定音频和视频编解码器,那将会非常方便。 否则我想我将不得不学习.Net。
请帮助我。提前致谢。
I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in windows media player and that required the installation of three codecs : Mp4Audio.ax, Mp4Video.ax, Mp4Src.ax.
As i see it, it will be very convenient if i could embed a windows media player plugin in flex or i could specify the audio and video codecs in the flash player.
Else i will have to learn .Net, i guess.
Kindly help me out. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在创建一个air应用程序,那么您可以使用NativeProcess启动windows-media-player。无论如何,如果你有一个灵活的网络应用程序,那么你没有任何选择。 :(
我的建议:将视频文件转换为可以通过flex播放的有效mp4文件。我建议你检查ffmpeg库(你可以使用它将文件转换为H264格式)
If you are creating an air app then you are able to start the windows-media-player using the NativeProcess. Anyway if you have a flex web app then you do not have any options on this. :(
My recommendation: Convert the video file to a valid mp4 file that can be played by flex. I suggest you to check ffmpeg library (and you could use it to convert the file to H264 format)