在WPF应用程序中嵌入flv(flash)播放器(Embedding flv (flash) player in WPF app)
是否有方法将任何Flash Player / activx嵌入到WPF应用程序中以播放FLV文件?
我猜也是可以在WPF WebBrowser控件中添加一些JS代码并在那里播放视频?
这是好方法吗?
Is there a method to embed ANY flash Player/activx to WPF application to play FLV files?
I am guessing also if it is possible to add some JS code to WPF WebBrowser control and play video there?
Is it good approach?
原文:https://stackoverflow.com/questions/14563008
最满意答案
它应该工作正常。 只要你绑定到
IN6ADDR_ANY
,然后加入组播组,你应该能够发送和接收单播数据包没有问题。使用多播时,绑定到
IN6ADDR_ANY
(或IPv4的INADDR_ANY
)很重要。 如果绑定到特定接口,则会破坏Linux系统上的多播。It should work fine. As long as you bind to
IN6ADDR_ANY
, then join the multicast groups, you should be able to send and receive unicast packets with no problem.It's important to bind to
IN6ADDR_ANY
(orINADDR_ANY
for IPv4) when using multicast. If you bind to a specific interface, this breaks multicast on Linux systems.
相关问答
更多-
通过绑定在NicAddress上,它只接受来自网络地址的传入数据包。 绑定到0.0.0.0将允许来自广播IP的传入协议以及其他IP地址 By Binding on the NicAddress, it only accepts incoming packets from the network address. Binding to 0.0.0.0 Will allow incoming pacts from the broadcast IP as well as other IP addresses
-
嗅探网络与嗅探传入单台机器的数据略有不同。 不幸的是,嗅探网络可能需要进行一些基础设施更改,而与编码几乎没有关系(如果没有大的修改,您的代码仍然有用)。 观察以太网 您需要了解的几个术语: 冲突域 , 广播域 。 如果您的整个网络处于相同的冲突域,只需将嗅探器添加到网络中,您就应该能够观察到数据包(至少使用wireshark,不确定您发布的代码)。 碰撞域未受到ehternet集线器的影响 。 冲突域由活动网络设备( 路由器和交换机 )分隔。 广播域由路由器或VLAN之间的交换机分隔。 处于单独的冲突域意味 ...
-
在Python中发送和接收IPv6链接本地多播UDP数据报?(Send and receive IPv6 link-local multicast UDP datagrams in Python?)[2022-10-04]
这是一个python mcast演示的链接,可以兼容IPv4和IPv6。 Here's a link to python mcast demo, does both IPv4 and IPv6. -
为了创建多个特定于接口的套接字来接收寻址到相同多播地址(224.0.0.9:520)的数据包,我原来的Go代码缺少三个主要问题: 要将多个套接字绑定到同一个UDP端口,请设置syscall.SO_REUSEADDR 要将套接字限制为特定接口,请设置syscall.SO_BINDTODEVICE 将UDP套接字绑定到0.0.0.0:520 在此处查找完整的示例代码: http : //play.golang.org/p/NprsZPHQmj In order to create multiple interf ...
-
任何小程序在指定的UDP端口上接收组播数据包?(Any small program to receive multicast packets on specified UDP port?)[2023-10-24]
这里有一个python脚本,它将打印传入的数据; # Multicast client # Adapted from: http://chaos.weblogs.us/archives/164 import socket ANY = "0.0.0.0" MCAST_ADDR = "224.0.0.7" MCAST_PORT = 7000 # Create a UDP socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, sock ... -
找到了。 原来防火墙阻止了数据包。 service firewalld stop 这个伎俩。 Found it. Turns out firewall was blocking the packets. service firewalld stop This did the trick.
-
尝试将IPV6_JOIN_ANYCAST传递给s.setsockopt()代码,而不是IPV6_JOIN_GROUP 。 不幸的是,Python socket模块没有定义它,但你应该能够传递相应的整数。 在Linux中, IPV6_JOIN_ANYCAST是27 , IPV6_LEAVE_ANYCAST是28 。 (在/usr/include/linux/in6.h中定义) 我能找到的最好的文档是从这个lkml电子邮件描述Linux内核的anycast补丁 : 加入和离开任播组的应用程序接口是2个新的set ...
-
在听众中,我认为你需要设置 listeningMc_req.imr_interface.s_addr = htonl(INADDR_ANY); ...因为这也是绑定套接字的接口。 根据您是否在单个主机上运行所有内容,您可能需要考虑环回接口,并且绑定到INADDR_ANY将执行此操作。 In the listener, I think you need to set listeningMc_req.imr_interface.s_addr = htonl(INADDR_ANY); ... since th ...
-
使用SOL_IPV6而不是SOL_SOCKET 。 测试订阅ff80::1并使用ping6 -I eth0 ff08::1生成流量。 This appears to be impossible after all. I am now using Linux's AF_PACKET socket type with "cooked" mode (SOCKET_DGRAM) to access the raw IPv6 packets with link-layer header and a BPF to fi ...
-
它应该工作正常。 只要你绑定到IN6ADDR_ANY ,然后加入组播组,你应该能够发送和接收单播数据包没有问题。 使用多播时,绑定到IN6ADDR_ANY (或IPv4的INADDR_ANY )很重要。 如果绑定到特定接口,则会破坏Linux系统上的多播。 It should work fine. As long as you bind to IN6ADDR_ANY, then join the multicast groups, you should be able to send and receive ...