Ticket #531 (closed bug: fixed)
Some video filenames cause player to hide video during playback
| Reported by: | pablo | Owned by: | jeroen |
|---|---|---|---|
| Priority: | Milestone: | Flash 4.6 | |
| Component: | Keywords: | ||
| Cc: | Forum thread: |
Description
Problem:
If a video file has the string "mp3", "m4a" or "aac" within its filename, the player will blank out the video window (incorrectly assuming the file has an audio type).
Examples:
MyVideoFile-aac.flv MyVideoFile-mp3.flv
Solution:
Check the extension (substr(-3)), or use itemtype?.
The offending code, in Model.as:
case ModelStates.PLAYING:
if(item['file'].indexOf('m4a') == -1
&& item['file'].indexOf('mp3') == -1
&& item['file'].indexOf('aac') == -1) {
thumb.visible = false;
display.media.visible = true;
} else {
thumb.visible = true;
display.media.visible = false;
}
break;
Change History
Note: See
TracTickets for help on using
tickets.
