Модераторы: SoWa
  

Поиск:

Ответ в темуСоздание новой темы Создание опроса
> Потоковое радио, Отображение исполнителей 
:(
    Опции темы
MrDmitry
Дата 29.9.2011, 13:27 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 556
Регистрация: 10.11.2006

Репутация: нет
Всего: нет



Привет всем. Помогите допилить плеер для прослушивания онлайн радио. Плеер простой. Кнопка плей - стоп  и регулятор громкости. Сам поток плеер воспринимает и проигрывает. Но id3 теги он конечно же не понимает. Исходник плеера прикрепил. Надеюсь на вашу помощь )

Присоединённый файл ( Кол-во скачиваний: 16 )
Присоединённый файл  www.rar 23,98 Kb
PM MAIL   Вверх
Fiyanov
Дата 8.10.2011, 13:11 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 255
Регистрация: 19.4.2007
Где: Kazakhstan->Te mirtau

Репутация: нет
Всего: 2



Тоже сталкивался с таким... Обошёл реализовав считываение id3 тегов в РНР и последующей передачей информации во Flash. 
PM MAIL ICQ   Вверх
jhonyxakep
Дата 10.10.2011, 14:18 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Divide Et Impera
**


Профиль
Группа: Участник
Сообщений: 983
Регистрация: 7.4.2009
Где: Что, Когда?

Репутация: нет
Всего: 8



Перед тем как задавать вопрос, рекомендую нажать магическую кнопку F1 во флеше.

Вот выдержка из мануала:

Код

id3 (Sound.id3 property)
public id3 : Object [read-only]

Provides access to the metadata that is part of an MP3 file. 

MP3 sound files can contain ID3 tags, which provide metadata about the file. If an MP3 sound that you load using Sound.attachSound() or Sound.loadSound() contains ID3 tags, you can query these properties. Only ID3 tags that use the UTF-8 character set are supported.

Flash Player 6 (6.0.40.0) and later use the Sound.id3 property to support ID3 1.0 and ID3 1.1 tags. Flash Player 7 adds support for ID3 2.0 tags, specifically 2.3 and 2.4. The following table lists the standard ID3 2.0 tags and the type of content the tags represent; you query them in the format my_sound.id3.COMM, my_sound.id3.TIME, and so on. MP3 files can contain tags other than those in this table; Sound.id3 provides access to those tags as well.

Property
 Description
 
TFLT
 File type
 
TIME
 Time
 
TIT1
 Content group description
 
TIT2
 Title/song name/content description
 
TIT3
 Subtitle/description refinement
 
TKEY
 Initial key
 
TLAN
 Languages
 
TLEN
 Length
 
TMED
 Media type
 
TOAL
 Original album/movie/show title
 
TOFN
 Original filename
 
TOLY
 Original lyricists/text writers
 
TOPE
 Original artists/performers
 
TORY
 Original release year
 
TOWN
 File owner/licensee
 
TPE1
 Lead performers/soloists
 
TPE2
 Band/orchestra/accompaniment
 
TPE3
 Conductor/performer refinement
 
TPE4
 Interpreted, remixed, or otherwise modified by
 
TPOS
 Part of a set
 
TPUB
 Publisher
 
TRCK
 Track number/position in set
 
TRDA
 Recording dates
 
TRSN
 Internet radio station name
 
TRSO
 Internet radio station owner
 
TSIZ
 Size
 
TSRC
 ISRC (international standard recording code)
 
TSSE
 Software/hardware and settings used for encoding
 
TYER
 Year
 
WXXX
 URL link frame
 

Flash Player 6 supported several ID31.0 tags. If these tags are in not in the MP3 file, but corresponding ID3 2.0 tags are, the ID3 2.0 tags are copied into the ID3 1.0 properties, as shown in the following table. This process provides backward compatibility with scripts that you may have written already that read ID3 1.0 properties.

ID3 2.0 tag
 Corresponding ID3 1.0 property
 
COMM
 Sound.id3.comment
 
TALB
 Sound.id3.album 
 
TCON
 Sound.id3.genre
 
TIT2
 Sound.id3.songname 
 
TPE1
 Sound.id3.artist
 
TRCK
 Sound.id3.track 
 
TYER
 Sound.id3.year 
 

Availability: ActionScript 1.0; Flash Player 6 - Behavior updated in Flash Player 7.

Example
The following example traces the ID3 properties of song.mp3 to the Output panel: 


var my_sound:Sound = new Sound();
my_sound.onID3 = function(){
    for( var prop in my_sound.id3 ){
    trace( prop + " : "+ my_sound.id3[prop] );
    }
}
my_sound.loadSound("song.mp3", false);





Это сообщение отредактировал(а) jhonyxakep - 10.10.2011, 14:19
PM MAIL ICQ   Вверх
MrDmitry
Дата 11.10.2011, 14:08 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Опытный
**


Профиль
Группа: Участник
Сообщений: 556
Регистрация: 10.11.2006

Репутация: нет
Всего: нет



Цитата(jhonyxakep @ 10.10.2011,  14:18)
Перед тем как задавать вопрос, рекомендую нажать магическую кнопку F1 во флеше.

Вот выдержка из мануала:

Код

id3 (Sound.id3 property)
public id3 : Object [read-only]

Provides access to the metadata that is part of an MP3 file. 

MP3 sound files can contain ID3 tags, which provide metadata about the file. If an MP3 sound that you load using Sound.attachSound() or Sound.loadSound() contains ID3 tags, you can query these properties. Only ID3 tags that use the UTF-8 character set are supported.

Flash Player 6 (6.0.40.0) and later use the Sound.id3 property to support ID3 1.0 and ID3 1.1 tags. Flash Player 7 adds support for ID3 2.0 tags, specifically 2.3 and 2.4. The following table lists the standard ID3 2.0 tags and the type of content the tags represent; you query them in the format my_sound.id3.COMM, my_sound.id3.TIME, and so on. MP3 files can contain tags other than those in this table; Sound.id3 provides access to those tags as well.

Property
 Description
 
TFLT
 File type
 
TIME
 Time
 
TIT1
 Content group description
 
TIT2
 Title/song name/content description
 
TIT3
 Subtitle/description refinement
 
TKEY
 Initial key
 
TLAN
 Languages
 
TLEN
 Length
 
TMED
 Media type
 
TOAL
 Original album/movie/show title
 
TOFN
 Original filename
 
TOLY
 Original lyricists/text writers
 
TOPE
 Original artists/performers
 
TORY
 Original release year
 
TOWN
 File owner/licensee
 
TPE1
 Lead performers/soloists
 
TPE2
 Band/orchestra/accompaniment
 
TPE3
 Conductor/performer refinement
 
TPE4
 Interpreted, remixed, or otherwise modified by
 
TPOS
 Part of a set
 
TPUB
 Publisher
 
TRCK
 Track number/position in set
 
TRDA
 Recording dates
 
TRSN
 Internet radio station name
 
TRSO
 Internet radio station owner
 
TSIZ
 Size
 
TSRC
 ISRC (international standard recording code)
 
TSSE
 Software/hardware and settings used for encoding
 
TYER
 Year
 
WXXX
 URL link frame
 

Flash Player 6 supported several ID31.0 tags. If these tags are in not in the MP3 file, but corresponding ID3 2.0 tags are, the ID3 2.0 tags are copied into the ID3 1.0 properties, as shown in the following table. This process provides backward compatibility with scripts that you may have written already that read ID3 1.0 properties.

ID3 2.0 tag
 Corresponding ID3 1.0 property
 
COMM
 Sound.id3.comment
 
TALB
 Sound.id3.album 
 
TCON
 Sound.id3.genre
 
TIT2
 Sound.id3.songname 
 
TPE1
 Sound.id3.artist
 
TRCK
 Sound.id3.track 
 
TYER
 Sound.id3.year 
 

Availability: ActionScript 1.0; Flash Player 6 - Behavior updated in Flash Player 7.

Example
The following example traces the ID3 properties of song.mp3 to the Output panel: 


var my_sound:Sound = new Sound();
my_sound.onID3 = function(){
    for( var prop in my_sound.id3 ){
    trace( prop + " : "+ my_sound.id3[prop] );
    }
}
my_sound.loadSound("song.mp3", false);




Я что то не понимаю? Зачем мне работа с id3 тегами если у меня радио поток? Единственное что про радио я нашол в этой справке это TRSN
Цитата

 Internet radio station name


Но выводить название радио станции не было моей целью ( 
PM MAIL   Вверх
jhonyxakep
Дата 12.10.2011, 15:51 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Divide Et Impera
**


Профиль
Группа: Участник
Сообщений: 983
Регистрация: 7.4.2009
Где: Что, Когда?

Репутация: нет
Всего: 8



Обрадую и огорчу одновременно.

Flash помещает теги станций внутрь id3v
PM MAIL ICQ   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | ActionScript 3 | Следующая тема »


 




[ Время генерации скрипта: 0.0441 ]   [ Использовано запросов: 22 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.