Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Народ подскажите, а аудио плеер как в контакте можно прикрутить???
Просто очень интересует возможность сделать из DLE аудио каталог ну или по кранеймере это как-то реализовать так как скрипта я похожего пока не нашелЕсли купить или самому написать то можно.
А видео не проигрывается с вконтакте, так это потому что пути там меняются постоянно.
return "<!--dle_video_begin:{$url}--><object type=\"application/x-shockwave-flash\" data=\"http://сайт./engine/classes/flashplayer/uppod.swf\" width=\"480\" height=\"360\"><param name=\"allowFullScreen\" value=\"true\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\"http://сайт./engine/classes/flashplayer/uppod.swf\" /><param name=\"flashvars\" value=\"comment=Stream-video&st=http://сайт.ru/engine/classes/flashplayer/video5-194.txt&file={$url}\" /></object><!--dle_video_end-->";
можно узнат ьпоподробнее как вы решили эту проблему?можно не напрягаться кустарным способом решил эту праблему)
if ($type == "xml") {
return "<!--dle_video_begin:{$url}--><object classid=\"clsid27CDB6E-AE6D-11cf-96B8-444553540000\" \"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"516\" height=\"592\" align=\"middle\">
<param name=\"movie\" value=\"".$config['http_home_url']."embed/player.swf?file={$url}&backcolor=010c12&frontcolor=ffffff&lightcolor=CCFFFF&screencolor=000000&playlistsize=300&volume=100&streamer=lighttpd&controlbar=over&playlist=bottom\" />
<param name=\"allowFullScreen\" value=\"true\" />
<param name=\"quality\" value=\"high\" />
<param name=\"bgcolor\" value=\"#010c12\" />
<param name=\"wmode\" value=\"opaque\" />
<embed
src=\"".$config['http_home_url']."embed/player.swf\"
width=\"516\"
height=\"592\"
bgcolor=\"undefined\"
allowscriptaccess=\"always\"
allowfullscreen=\"true\"
flashvars=\"file={$url}&backcolor=010c12&frontcolor=ffffff&lightcolor=CCFFFF&screencolor=000000&playlistsize=300&volume=100&streamer=lighttpd&controlbar=over&playlist=bottom\"
/></object><!--dle_video_end-->";
} elseif ($type == "flv") {
[video=/uploads/xml/spisok1.xml]
на JWPlayer'е я дописывал в парсер этот код:
блина чтото я всетаки не так делаю
вроде все ок, "а включаешь, не работает" (с)
моно на ваш parse.class.php одним глазком глянуть ????
function build_video($url) {
global $config;
} elseif( $type == "avi" or $type == "divx" ) {
$option = explode( "|", trim( $url ) );
$url = $this->clear_url( urldecode( $option[0] ) );
$comment = $this->clear_url( urldecode( $option[1] ) );
$type = explode( ".", $url );
$type = strtolower( end( $type ) );
if ( preg_match( "/[?&;%<\[\]]/", $url ) )
{
return "[video=" . $url . "]";
}
if( $comment != "") {
$comment = htmlspecialchars( strip_tags( stripslashes( $comment ) ), ENT_QUOTES );
$decode_url = $url . "|" . $comment;
}else
$decode_url = $url;
if( $type == "flv" or $type == "mp4" or $type == "m4v" or $type == "m4a" ) {
if( $config['flv_watermark'] ) $watermark = ",showWatermark:'always',watermarkUrl:'{THEME}/dleimages/flv_watermark.png',watermarkLinkUrl:''";
else $watermark = "";
if ($comment == "")
{
return "<!--dle_video_begin:{$decode_url}--><object id=\"video_87324\" type=\"application/x-shockwave-flash\" data=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" width=\"500\" height=\"375\"><param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" /><param name=\"flashvars\" value=\"st=2iob3gRLvcyb0c9Mv54BGdwN65wbvI9zvak8UfyRvcyb6xW43NJa2xo401TMygEmvIolGArr&file={$url}\" /></object><!--dle_video_end-->";
}
else
{
return "<!--dle_video_begin:{$decode_url}--><object id=\"video_87324\" type=\"application/x-shockwave-flash\" data=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" width=\"500\" height=\"375\"><param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" /><param name=\"flashvars\" value=\"comment={$comment}&st=2iob3gRLvcyb0c9Mv54BGdwN65wbvI9zvak8UfyRvcyb6xW43NJa2xo401TMygEmvIolGArr&file={$url}\" /></object><!--dle_video_end-->";
}
} elseif( $type == "txt" ) {
return "<!--dle_video_begin:{$decode_url}--><object id=\"video_87324\" type=\"application/x-shockwave-flash\" data=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" width=\"500\" height=\"515\"><param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" /><param name=\"flashvars\" value=\"st=2iob3gRLvcyb0c9Mv54BGdwN65wbvI9zvak8UfyRvcyb6xW43NJa2xo401TMygEmvIolGArr&pl={$url}\" /></object><!--dle_video_end-->";
function build_audio($url) {
global $config;
function build_image($url = "", $align = "") {
$option = explode( "|", trim( $url ) );
$url = $this->clear_url( urldecode( $option[0] ) );
$comment = $this->clear_url( urldecode( $option[1] ) );
$type = explode(".", $url);
$type = strtolower(end($type));
if( $url == "" ) return;
if( preg_match( "/[?&;%<\[\]]/", $url ) )
{
return "[audio=" . $url . "]";
}
$txt = explode('/', $url);
$txt = strtolower(end($txt));
if( $comment != "")
{
$comment = htmlspecialchars( strip_tags( stripslashes( $option[1] ) ), ENT_QUOTES );
$decode_url = $url . "|" . $comment;
}
else
{
$decode_url = $url;
}
if ( $type == "txt" )
{
return "<!--dle_audio_begin:{$decode_url}--><object id=\"audio_234769\" type=\"application/x-shockwave-flash\" data=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" width=\"350\" height=\"320\"><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"movie\" value=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" /><param name=\"flashvars\" value=\"st=2iob3gRLvcyb0c9Mv54BGdwN65wbvI9zvak8UfyRvcyb6xW43NJhGxo701TMt1Y1vIolGArr&pl={$url}\" /></object><!--dle_audio_end-->";
}
else
{
if ( $option[1] == "" )
{
return "<!--dle_audio_begin:{$decode_url}--><object id=\"audio_234769\" type=\"application/x-shockwave-flash\" data=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" width=\"350\" height=\"80\"><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"movie\" value=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" /><param name=\"flashvars\" value=\"st=2iob3gRLvcyb0c9Mv54BGdwN65wbvI9zvak8UfyRvcyb6xW43NJhGxo701TMt1Y1vIolGArr&file={$url}\" /></object><!--dle_audio_end-->";
}
else
{
return "<!--dle_audio_begin:{$decode_url}--><object id=\"audio_234769\" type=\"application/x-shockwave-flash\" data=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" width=\"350\" height=\"80\"><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"movie\" value=\"".$config['http_home_url']."engine/classes/flashplayer/uppod.v.0.46.3.swf\" /><param name=\"flashvars\" value=\"comment={$comment}&st=2iob3gRLvcyb0c9Mv54BGdwN65wbvI9zvak8UfyRvcyb6xW43NJhGxo701TMt1Y1vIolGArr&file={$url}\" /></object><!--dle_audio_end-->";
}
}
}
[video=путь_к_файлу]
[video=путь_к_файлу|название_ролика]
[video=путь_к_плейлисту]
[audio=]
$video_link = "";
$video_link = "<a class=maintitle href=\"javascript:insertfile('{$config['http_home_url']}uploads/files/{$row['onserver']}')\">вставить ссылку</a>";