是否有可能在flash播放器中播放iis7上托管的流畅视频流?(Is it possible to play in flash player a smooth streaming video hosted on the iis7?)
我想使用flash视频播放器(例如jw flash player而不是silverlight播放器)播放来自IIS的流畅视频流? 在这种情况下我应该使用哪种视频格式? 然后可以通过使用微软编码器编码的平滑条纹来播放例如视频吗? 你知道一些替代视频播放器,它结合了flash和silverlight功能(按照java脚本选择)与flash和silverlight一起使用吗?
I want to play smooth streaming video from IIS using the flash video player like e.g. jw flash player instead of silverlight player? Which video format should I use in this case? Can flash then play e.g a video via smooth streming encoded with microsoft encoder? Do you know some alternative video players, that combines flash and silverlight functionality (selected per java script) to use with flash and silverlight?
原文:https://stackoverflow.com/questions/6312310
最满意答案
它是面向对象的 - 现在是99%的代码。
如果你看一下CakePHP 2.x的源代码,你会看到如下例子:
class Controller extends Object implements CakeEventListener {
这意味着Controller类扩展了Object类并实现了CakeEventListener接口。
阅读http://php.net/manual/en/language.oop5.php可能很有用,这样你就可以了解PHP中的面向对象编码
It is Object Oriented - as is 99% of code nowadays.
If you take a look at the source code of CakePHP 2.x you will see examples such as:
class Controller extends Object implements CakeEventListener {
Meaning the Controller class extends the Object class and implements the CakeEventListener interface.
It would probably be useful to read through http://php.net/manual/en/language.oop5.php so you can get an understanding of what Object Oriented coding in PHP looks like
相关问答
更多-
.java文件的OO设计看起来很棒。 如果这是你的意图,XML对于制作保存的文件是个好主意。 我不会在Archer.java的构造函数中解析整个事情 - 这似乎相当武断。 我建议一个专门用于处理已保存文件的单独类。 至于XML与数据库,它取决于您打算如何使用保存的数据。 如果您阅读整篇文章或立即全部写完,那么两者都可能是合适的。 将XML文件保存到SD卡可以轻松共享已保存的游戏。 如果您预见到只更改部分以保存和恢复活动游戏的状态,那么您应该使用数据库,因为使用XML时,您每次都必须重写整个文件。 请记住,在 ...
-
看一下Interpreter和Factory Method模式。 Take a look at the Interpreter, and the Factory Method patterns.
-
JSON-RPC是JSON远程过程调用,默认情况下是面向过程的。 但是,如果您在HTTP上工作,则可以将每个RPC服务视为对象。 即如果您通过HTTP访问/foo/bar并通过JSON-RPC调用beep ,则调用bar对象的foo服务的beep方法。 否则,您可以按照过程调用映射的所有OOP的方式执行此操作: foo.bar(x1,x2) -> bar(foo,x1,x2) 其中foo是对象的“指针”,对于RPC,它可能是对象UUID。 (这就是在某些RPCS中实际完成的方式)。 所以你打电话 f=n ...
-
无论您是想从头开始还是尝试重写,它实际上完全取决于您。 两者都有其优点和缺点。 一旦你理解了OOP的基础知识,它就非常容易实现,我发现我更喜欢OOP而不是结构化。 这是一个转换为OOP的简单结构化程序的示例:结构化: Class Foo { public static DoSomething() { return true; } } 要实现这一点,我们会说: main() { Foo f; f = Foo.DoSomething(); } ...
-
面向对象的问题(Object Oriented question)[2022-01-24]
问题是赋予你的任务具有功能性。 当然,您的解决方案转向功能性解决方案,远离顶部所需的人工面向对象。 您可以将解决方案放在像教师要求的“真正的”面向对象的服装中(将变量放入课堂中),但在我看来并不自然。 The problem is that the assignment that was given to you is of a functional nature. Naturally, your solution steered towards a functional solution and away ... -
它是面向对象的 - 现在是99%的代码。 如果你看一下CakePHP 2.x的源代码,你会看到如下例子: class Controller extends Object implements CakeEventListener { 这意味着Controller类扩展了Object类并实现了CakeEventListener接口。 阅读http://php.net/manual/en/language.oop5.php可能很有用,这样你就可以了解PHP中的面向对象编码 It is Object Orient ...
-
问题很可能与您使用冗余变量并在不同时刻访问其中一个或另一个有关。 你的Enemy类有x,y,width和height的变量,但它也有一个矩形的变量,它有自己的x,y,width和height。 你的Enemy构造函数在矩形上设置初始大小,但是getWidth和getHeight方法引用了这些的非矩形版本,它们仍然是零,所以你要绘制零大小的精灵。 您需要删除矩形或删除位置和大小变量。 如果删除矩形,请确保同时删除enemyY变量上的static关键字! 编辑:保留矩形功能的备用解决方案: public cla ...
-
是的,您绝对可以使用UML与其他方法进行建模,例如用例图或acitivity图绝不会与OOP绑定。 Yes, you can definitely use UML for modeling with other approaches, for example the use case diagram or acitivity diagram are in no way bound to OOP.
-
在C中,标准方法是声明初始化器宏: #define SERIAL_INITIALIZER { .init = init, .open = open, /* and others */ } Serial serial = SERIAL_INITIALIZER; 在C的大多数情况下,根本不需要动态初始化变量。 你只需要它用于malloc ed对象。 In C, the standard way would be to declare an initializer macro: #define SERIAL_ ...
-
使PHP网站面向对象和MVC的正确方法是什么?(What is the right way to make a PHP website object oriented and MVC?)[2022-05-23]
我会建议如下: 通过浏览无框架PHP MVC框架 (不介意代码)来理解MVC的基础。 使用像Symfony这样的大名称框架测试MVC,以查看“最佳实践”。 他们的文档和代码值得花时间。 实验。 I'll suggest the following: Understand the underpinnings of an MVC by skimming thru The no-framework PHP MVC framework (don't mind the code). Test MVC with a b ...