三星Galaxy S4流媒体视频播放取向问题 [英] Samsung Galaxy S4 Streaming Video Playback Orientation Issue

查看:211
本文介绍了三星Galaxy S4流媒体视频播放取向问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在对三星Galaxy S4回放视频录像不能识别方向的元数据。它始终发挥景观。

When playing back videos on the Samsung Galaxy S4 the video does not recognize the orientation metadata. It always plays on landscape.

该应用程序还可以记录视频和所有其他设备正常播放而流。在S4中起着它细仅当视频被存储在设备,但它不会对流工作。

The app also records the video and plays correctly on all other devices while streaming. The S4 plays it fine only if the video is stored in the device but it won't work for streaming.

这是一个片段,而不是一个VideoView使用的MediaPlayer和SurfaceView。

Using MediaPlayer and SurfaceView on a Fragment, not a VideoView.

试过禁用没有运气空气查看,空中姿态,的Smart Stay,智能滚动和自动旋转。

Have tried to disable Air View, Air Gesture, Smart Stay, Smart Scroll and Auto Rotate without luck.

此外,即使存储的方向提示与视频手动旋转布局元素一起,但SurfaceView使用lockCanvas不工作,当转动时,转动它的父元素变黑,只播放音频。

Also even stored the orientation hint along with the video to rotate manually the element in the layout, but the SurfaceView when rotated using lockCanvas doesn't work and when rotating its parent element goes black and only plays the audio.

我可以尝试任何建议得到这个错误修复?您在使用时S4遇到相同的?任何帮助将大大AP preciated。谢谢!

Any suggestions I can try to get this bug fixed? Have you experiencing the same when using the S4? Any help on this will be greatly appreciated. Thanks!

推荐答案

找到此问题的解决方法。尝试使用TextureView而不是SurfaceView,播放视频之前,获得与MetadataRetriever旋转信息,并根据需要调整TextureView。它的工作在这一侧。

Found a workaround for this issue. Try using a TextureView instead a SurfaceView, before playing the video, get the rotation info with MetadataRetriever and adjust the TextureView as needed. It worked on this side.

查看详细资料在这里:
<一href=\"http://developer.samsung.com/forum/board/thread/view.do?boardName=General&messageId=249871&listLines=15&startId=zzzzz~\"相对=nofollow>流媒体视频播放取向问题@三星开发者论坛

See the details here: Streaming Video Playback Orientation Issue @ Samsung Developers Forum

这篇关于三星Galaxy S4流媒体视频播放取向问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆