我需要修改我们添加到架构中的自定义属性,但是在所有用户的基础上.该属性是MD5哈希,我已经将其存储为公共变量.我正在尝试获取列表框中列出的指定OU中的所有用户的列表,以便您可以选择要应用值的所有用户或单个用户.
这是我目前的Form1.cs代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Cryptography;
using System.DirectoryServices;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
String Password;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
Password = textBox1.Text;
}
private void button1_Click(object sender, EventArgs e)
{
System.Security.Cryptography.MD5CryptoServiceProvider x = new System.Security.Cryptography.MD5CryptoServiceProvider();
byte[] bs = System.Text.Encoding.UTF8.GetBytes(Password);
bs = x.ComputeHash(bs);
System.Text.StringBuilder s = …Run Code Online (Sandbox Code Playgroud) 我知道Android MediaPlayer是一件好事.它允许我们播放本地文件和媒体流.它很容易使用(例如):
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource("http://streaming.shoutcast.com/80sPlanet"); // this steam broadcasts audio/mpeg
mediaPlayer.prepareAsync();
mediaPlayer.start();
Run Code Online (Sandbox Code Playgroud)
可以通过调用setDataSource()带有不同参数集的重载来设置不同类型的DataSource .这个函数有一个有趣的原型:
void setDataSource(MediaDataSource dataSource)
Run Code Online (Sandbox Code Playgroud)
看起来可以完全覆盖DataSource您自己的实现.它确实有效:
import android.media.MediaDataSource;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.net.URL;
import java.net.HttpURLConnection;
public class UrlMediaDataSource extends MediaDataSource {
URL url;
HttpURLConnection connection;
BufferedInputStream stream;
public UrlMediaDataSource(URL url) throws IOException {
this.url = url;
connection = (HttpURLConnection) url.openConnection();
}
@Override
public long getSize() {
return 0;
}
@Override
public int readAt(long position, byte[] buffer, int offset, int …Run Code Online (Sandbox Code Playgroud) 我们目前正在开发基于用户生成的音频内容的社区.播放音频的基本技术将是Soundmanager 2是HTML5.我们基于SM2选项 jQuery 创建了自己的播放器界面.
为了使上载的mp3文件可嵌入,我目前正在寻找合适的技术.播放器必须可以在移动设备上播放(我认为不包括纯闪存播放器).交通泄漏应该是可以避免的.
有关跨浏览器(和跨设备)兼容性和安全性的可嵌入播放器代码段的最佳方法是什么?
恕我直言,这些是选项:
<iframe>标签(如Facebook优惠)<script>标记(将玩家代码"注入"DOM).编辑:为了避免误读:我正在谈论可以提供给我们的访问者的嵌入代码,因此他们可以在他们的远程网站上使用我们的播放器.是的,像Youtube或Soundcloud.
我已经在我的Android应用程序中集成了VLC播放器在Linux环境中.但现在问题是当我尝试播放YouTube链接时.我无法流式传输YouTube网址和相关的g-data".3gp"网址.错误是如以下所说的.
" 无法播放http://www.youtube.com/watch?v=oq1gNicFkeM." 在吐司.
有没有人对此有任何想法?
我已经玩了一段时间的MediaElement.js并且有一个新的应用程序,在一个页面上使用20个玩家.我希望能够在播放另一首歌时让歌曲停止 - 而不是在播放时重叠曲目.我似乎找不到一个简单的方法来破解这个 - 也许有人知道一种方式?
谢谢.
我正在尝试做一些我认为相当简单的事情.我有2个工具条.
TEST1:ToolStripMenuItem哪些应该显示面板- > test_panel_1
TEST2:ToolStripMenuItem哪些应该显示面板- > PANEL1
test_panel_1包含按钮 - > panel_1_button1,它应隐藏test_panel_1并显示test_panel_2
panel1包含按钮 - > button1,它应隐藏test_panel2然后显示panel2
但是,当我运行代码并单击test1ToolStripMenuItem时,它会显示test_panel_1,因为当我单击panel_1_button_1时,它只是清除test_panel_1并且不显示test_panel_2.无论我先点击什么,test2ToolStripMenuItem根本不会显示panel1.
这是我的代码......
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace panel_test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void panel_1_button1_Click(object sender, EventArgs e)
{
test_panel2.Visible = true;
test_panel_1.Visible = false;
}
private void test1ToolStripMenuItem_Click(object sender, EventArgs e)
{
test_panel_1.Visible = true;
panel1.Visible = false;
}
private void button1_click(object sender, …Run Code Online (Sandbox Code Playgroud) android ×2
c# ×2
html5 ×2
html5-audio ×2
.net ×1
audio ×1
c#-4.0 ×1
embeddable ×1
java ×1
javascript ×1
media ×1
mp3 ×1
panel ×1
show-hide ×1
stream ×1
url-scheme ×1
vlc ×1
youtube ×1