 				return new HTTPStreamRequest(HTTPStreamRequestKind.LIVE_STALL, null, segments[segments.length-1].duration / 2);
 			}
 			
+			trace("Ending stream playback");
 			return new HTTPStreamRequest(HTTPStreamRequestKind.DONE);
 		}
 		

				}
				else
				{
					return new HTTPStreamRequest(HTTPStreamRequestKind.LIVE_STALL);
				}
			}


			if(quality != origQuality && manifest.streamEnds == false)
			{
				trace("Stalling for manifest -- quality[" + quality + "] lastQuality[" + lastQuality + "]");
				return new HTTPStreamRequest(HTTPStreamRequestKind.LIVE_STALL, null, 1);
			}

			// Advance sequence number.
