[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: флеш проигрыватель
XylliGaH
вообщем такая бурда, скачал такой нормальный флешь проигрыватель, добавил его в корневую папку, сделал цикл, в котором в таблице выводятся композиции, а рядом в колонке появляется строка флешь плеера - что б можно было ее прослушать... вроде ничего сложного и все работает, только вот одно НО воспроизводятся не все треки, каким то дивным образов производятся через 1 , через 2 и по другому хаотичному порядку но не все...
закономерности не нашел, может кто сталкивался, и поможет в этом вопросе.

На всякий случай брошу код цикла:

Код

do
{
printf ("  <tr>
       <td><center>%s</center></td>
       <td><center>%s - %s<center></td>
       <td><object type='application/x-shockwave-flash' data='dewplayer.swf?mp3=%s' width='200' height='20'>
    <param name='audio' value='dewplayer.swf?mp3=%s' />
    </object></td>
       <td><center><a href='%s'>здесь</a></center></td>
    </tr>", $i, $row['artist'], $row['name'], $row['link'], $row['link'], $row['link']);
    $i++;
}
while($row = mysql_fetch_assoc($query));





Спустя 4 минуты, 9 секунд (16.05.2009 - 13:04) XylliGaH написал(а):
прошу прощения.... я разобрался путем тыка изменения имен тех файлов которые не прослушивались, помоему плееру не нравились некоторые символы в названии треков

Спустя 54 минуты, 48 секунд (16.05.2009 - 13:59) XylliGaH написал(а):
а именно проигрыватель не пускал треки с русско язычным названием и со знаком & в названиях) это если кому то понадобитсо

Спустя 2 часа, 40 минут, 47 секунд (16.05.2009 - 16:39) FatCat написал(а):
При помощи xml можно сделать любые имена в плейлисте.
Как раз вчера расковыривал "камтясю", разбирался с кодами проигрывателя.
Пример плейлиста с видеоклипами можно посмотреть на http://daopharm.ru/fonari/1/ - несколько дней еще полежит там.
Управляющий иксмыл
HTML
<?xml version="1.0" encoding="UTF-8"?>
<main>
<config>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hasPipOverlay type="Boolean">0</hasPipOverlay>
<hasToc type="Boolean">1</hasToc>
<hasAudio type="Boolean">1</hasAudio>
<mainVidIsFlv type="Boolean">1</mainVidIsFlv>
<skinTheme>glass</skinTheme>
<autoStart type="Boolean">0</autoStart>
<backgroundColor>FFFFFF</backgroundColor>
<showLoadingMov type="Boolean">0</showLoadingMov>
<scaleLoadingMov type="Boolean">1</scaleLoadingMov>
<loadingMovPercentToLoad type="Number">50</loadingMovPercentToLoad>
<loadingMovMinDuration type="Number">3</loadingMovMinDuration>
<controllerColor type="Number">0xC0C0C0</controllerColor>
<showAbout type="Boolean">1</showAbout>
<aboutBoxText>Сюжеты телесериала “Улицы разбитых фонарей”</aboutBoxText>
<timeDisplayFormat>MM:SS</timeDisplayFormat>
<showDuration type="Boolean">1</showDuration>
<showElapsedTime type="Boolean">1</showElapsedTime>
<timeDisplayFont>Arial</timeDisplayFont>
<timeDisplayFontColor type="Number">0x000000</timeDisplayFontColor>
<okLabel>OK</okLabel>
<localSecurityWarningTitle>Important</localSecurityWarningTitle>
<localSecurityWarning>This action is not allowed by the default Flash Player security settings when the content is played from a hard drive or CD. Once the content is moved to a web server, it should function as expected, and you should not see this message.

For other distribution methods, or to understand how the Flash Player security settings affect this content, please see the &quot;Flash Player Security&quot; topic in the Camtasia Studio help file.



</localSecurityWarning>
<includeScoreInEmail type="Boolean">0</includeScoreInEmail>
<endAction>Stop</endAction>
<!-- delete this line to disable warning -->
<endActionParam></endActionParam>
<controlsWidth type="Number">500</controlsWidth>
<controlsHeight type="Number">288</controlsHeight>
<video1>
<width type="Number">500</width>
<height type="Number">288</height>
</video1>
<pip>
<width type="Number">0</width>
<height type="Number">0</height>
</pip>
<toc>
<x type="Number">0</x>
<y type="Number">0</y>
<width type="Number">160</width>
<height type="Number">288</height>
<!-- AlternatingRowColors takes precedence over BackgroundColor and RowDepthColors takes precedence over both AlternatingRowColors and BackgroundColor -->
<backgroundColor type="Number"></backgroundColor>
<!-- accepts a hex value -->
<alternatingRowColors>
<!-- row alternate color based on the array of color values (row 1 = the value of the first color, row 2 = the value of the second color, row 3 equals the value of the first color, etc. -->
<array>
<!-- accepts two or more hex colors ( add additional Colors tags if more are needed ) -->
<colors type="Number"></colors>
<colors type="Number"></colors>
</array>
</alternatingRowColors>
<rowDepthColors>
<!-- color is based on the rows depth in the tree hierarchy -->
<array>
<!-- accepts two or more hex colors colors in the form of 0xFFFFFF ( add additional Colors tags if more are needed ) -->
<colors type="Number"></colors>
<!-- accepts a hex value -->
<colors type="Number"></colors>
<!-- accepts a hex value -->
</array>
</rowDepthColors>
<rowRollOverColor type="Number">0xA4A4A4</rowRollOverColor>
<!-- color of the row on mouse roll over - ignored if UseRollOver is false -->
<rowSelectedColor type="Number">0xC0C0C0</rowSelectedColor>
<!-- color of the row when it is the currently active row -->
<rowIndentation>10</rowIndentation>
<!-- number of pixels each row of a tree is indented -->
<borderStyle>solid</borderStyle>
<!-- none, inset, outset, solid -->
<textColor type="Number">0x000000</textColor>
<!-- the font color of tree items -->
<fontFamily>_sans</fontFamily>
<!-- the name of the font to be used, i.e. Arial, Times New Roman, HelveticaNeueLT Std -->
<fontSize type="Number">12</fontSize>
<fontWeight>none</fontWeight>
<!-- none, bold -->
<textAlign>left</textAlign>
<!-- left, right, center -->
<textDecoration>none</textDecoration>
<!-- none, underline -->
<textIndent type="Number">0</textIndent>
<textRollOverColor type="Number">0x000000</textRollOverColor>
<!-- color of text on mouse roll over - ignored if UseRollOver is false -->
<textSelectedColor type="Number">0x000000</textSelectedColor>
<!-- color of text when row is selected -->
<useRollOver type="Boolean">0</useRollOver>
<!-- Use boolean numerical equivalents( 0 = false, 1 = true ) if set to false the rollover colors for the text and row are ignored -->
<collapsible type="Boolean">0</collapsible>
<!-- if false, the collapsible nature of the tree is disabled -->
</toc>
</config>
<playlist>
<array>


<fileset>
<video1>
<duration type="Number">28.12</duration>
<uri>s2.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>s2_PIP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>


<fileset>
<video1>
<duration type="Number">31.56</duration>
<uri>s3.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>ޯ騮㞐IP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>

<fileset>
<video1>
<duration type="Number">22.32</duration>
<uri>s4.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>s2_PIP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>

<fileset>
<video1>
<duration type="Number">30.20</duration>
<uri>s5.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>s2_PIP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>

<fileset>
<video1>
<duration type="Number">38.92</duration>
<uri>s6.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>s6_PIP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>

<fileset>
<video1>
<duration type="Number">13.52</duration>
<uri>s7.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>s7_PIP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>

<fileset>
<video1>
<duration type="Number">3.12</duration>
<uri>s8.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>s8_PIP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>

<fileset>
<video1>
<duration type="Number">11.88</duration>
<uri>s1.flv</uri>
<frameRate type="Number">25</frameRate>
<keyframeRate type="Number">125</keyframeRate>
<blendingMode>Normal</blendingMode>
<isFlv type="Boolean">1</isFlv>
</video1>
<pip>
<duration type="Number">0.00</duration>
<frameRate type="Number">0</frameRate>
<keyframeRate type="Number">30</keyframeRate>
<uri>s_PIP.flv</uri>
</pip>
<hasPipVideo type="Boolean">0</hasPipVideo>
<hotspotInfo>

</hotspotInfo>
<quizInfo>

</quizInfo>

</fileset>


</array>

</playlist>
<tocInfo>
<node label="Эпизод 1" fileset="7" time="0.000000" />
<node label="Эпизод 2" fileset="0" time="0.000000" />
<node label="Эпизод 3" fileset="1" time="0.000000" />
<node label="Эпизод 4" fileset="2" time="0.000000" />
<node label="Эпизод 5" fileset="3" time="0.000000" />
<node label="Эпизод 6" fileset="4" time="0.000000" />
<node label="Эпизод 7" fileset="5" time="0.000000" />
<node label="Эпизод 8" fileset="6" time="0.000000" />
</tocInfo>
</main>
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.