martinbonnin / ExoPlayer

Apache License 2.0
22 stars 3 forks source link

MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT not working #12

Closed mickyzinho closed 10 years ago

mickyzinho commented 10 years ago

Hi, I am creating a VideoRenderer with

HLSSampleSource sampleSource = new HLSSampleSource(strUri); new MediaCodecVideoTrackRenderer(sampleSource, MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT);

and use a VideoSurfaceView to display our m3u8 HLS stream. But the scale to fit attribute seems to be ignored completely, always stretching the video to cover the whole view. Do I miss sth here or is there a problem with the scaling of HLS content?

mickyzinho commented 10 years ago

Issue occurs e.g. with this stream: https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

martinbonnin commented 10 years ago

I am not sure this is a HLS related bug. Did you try with Dash or SmoothStreaming content ? If it's the same, then file the bug to the main ExoPlayer repository.

hiteshgupta33 commented 10 years ago

@martinbonnin Can we change the video Video scaling mode as in to full screen. Right now there is a lot of black space around the video even though the video is 720p or 1080p

mickyzinho commented 10 years ago

@hiteshgupta33 Can you provide test streams where that happens?

mickyzinho commented 10 years ago

@martinbonnin You're right, this issue also occurs with Dash content. I'll file a bug in the main repo.