Ticket #531 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by pablo

  • Milestone set to Flash 4.6

comment:2 Changed 4 years ago by jeroen

  • Status changed from new to closed
  • Resolution set to fixed

Fixed as suggested

Note: See TracTickets for help on using tickets.