简体   繁体   English

用php播放asx或pls格式

[英]play asx or pls format with php

Is it possible to play either format through PHP? 是否可以通过PHP播放任何一种格式? I don't want to use jw player or Flash. 我不想使用jw播放器或Flash。 I just want it to auto play when loaded through PHP. 我只希望它通过PHP加载时自动播放。 Any ideas? 有任何想法吗?

PHP is typically used on a server, to render HTML to clients. PHP通常在服务器上使用,以将HTML呈现给客户端。 It can be used for systems programming tasks, but isn't very well suited to the task. 可以用于系统编程任务,但不太适合该任务。

Playing video or audio requires client software. 播放视频或音频需要客户端软件。 The choice of language for the server is irrelevant, as the client player could be built-in "Media Player" or "preview" applications, or mplayer or vlc , or the software could be something that is embedded (or embeddable) in web browsers. 服务器语言的选择无关紧要,因为客户端播放器可以是内置的“ Media Player”或“ preview”应用程序,或者是mplayervlc ,或者软件可以是嵌入(或可嵌入)在Web浏览器中的东西。 HTML5 will make playing video without goofy browser plugins easier , but as there is no standard on video format , that won't be an awesome solution for a long time, and in the meantime, you get to use something goofy like jwplayer or flash to render video to clients. HTML5将使没有goofy浏览器插件的视频播放变得更容易 ,但是由于视频格式没有标准,因此在很长一段时间内都不是一个很棒的解决方案,与此同时,您可以使用jwplayer或flash等愚蠢的东西来向客户呈现视频。

But which program you use has nothing to do with the programming language used on the server-side to distribute or promote those files to users. 但是,您使用哪个程序与服务器端用于向用户分发或提升这些文件的编程语言无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM