streaming

Android: cannot play mp4 video

限于喜欢 提交于 2020-01-11 05:27:04
问题 I'm trying to play mp4 videos streaming from a server using native VideoView , sadly I keep getting a " Cannot play video " error. The weird thing is that the same video plays well on Froyo but will not play on HoneyComb. I tried the same video with MX Video Player (on HC) and it plays just fine. Another major problem is that I cannot re-encode the videos, so I have to use the videos as they are. What is causing the error? How can I play the video? Should I find a way to include a codec

Debug Streaming In Hive

独自空忆成欢 提交于 2020-01-09 22:23:10
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 2010-04-07 @ taobao Hive由于QL语言自身的限制, 使得某些数据处理的作业还是需要通过streaming交由脚本(如Python)来处理. 海量数据的处理中, 遇到"脏数据"是很常见的, 但其形式又是不可预见的. 为此我们编写的处理程序, 往往需要一段时间的调试去暴露可能出现的"脏数据". 在用java编写MapReduce ? 的时候, 我们可以捕获出现的未知异常, 同时用System.out.println输出"脏数据"的内容, 以便之后分析. 可惜, 这种"打印"办法在streaming时候不起作用, 因为streaming是通过标准输出来接受脚本处理的结果数据的, 若还是用"打印"的话, "脏数据"并不会出现jobtracker的日志中, 而是被作为结果数据收集了. 为解决这个问题, 我们之后耍点小手段. 以python为例, 当程序处理遇到"脏数据"时, 是会抛出异常的, 这个异常会被jobtracker收集, 其文本信息内容会被记录在日志中. 既然标准输出这条路被堵了, 可"异常"这条路是通的, 也就说可将"脏数据"置于异常中, 这样"脏数据"就会随着异常一起记录在日志中了. 可参考下面python代码 #!/usr/bin/env python from sys import

PHP: Stream PDF (make PDF accessible only from webpage)

馋奶兔 提交于 2020-01-07 09:18:11
问题 I have a site built in PHP and we have some PHP pages that require logging in that produce links to PDFs. The problem is that those PDFs (which were copied out to Amazon Cloudfront) were indexed and available for searching. What is the easiest way to stream an existing PDF to the browser, making it so that the user has to login to be able to see the document? I'm hoping that there is some simple Header code or something where I can say "load this file on the server that's not accessible on

Android Chromecast Companion Library - set TextTrackStyle error 2103

你。 提交于 2020-01-07 03:51:08
问题 I'm using CastCompanionLibrary-Android and I'm trying to set custom TextTrackStyle for the captions. I'm setting this TexTextStyle to the MediaInfo while I'm creating it: // set CC style TextTrackStyle textTrackStyle = new TextTrackStyle(); textTrackStyle.setBackgroundColor(Color.parseColor("#FFFFFF")); textTrackStyle.setForegroundColor(ContextCompat.getColor(mContext, R.color.blue)); MediaInfo mediaInfo = new MediaInfo.Builder(url) .setStreamDuration(movieVideoItem.getDuration())

Video streaming over RTP using gstreamer

牧云@^-^@ 提交于 2020-01-06 07:24:42
问题 I am trying to stream a video file using gstreamer from one device to another over RTP. At the sender side I am using the following command : gst-launch filesrc location=/home/kuber/Desktop/MELT.MPG ! mpegparse ! rtpsend ip=localhost But this gives the following error : no element "rtpsend" , I downloaded all the rtp tools and still the same error. Am I using rtpsend in some wrong way? Also can someone give me the command line code for streaming video file(locally stored in my laptop and not

BigQuery Stream and Delete while streaming buffer is not empty?

℡╲_俬逩灬. 提交于 2020-01-06 06:51:34
问题 BigQuery doesn't stream directly into their long term storage, they first put it into a write optimized store and periodically flush that to the main storage. I would like to understand BigQuery Streaming buffer better, in the following use cases. 1) what if I delete the bigquery table, and recreate a new bigquery table with the same name right away, when some records still stay in streaming buffer waiting to be flushed into main storage? For example, if I am streaming a million records into

BigQuery Stream and Delete while streaming buffer is not empty?

為{幸葍}努か 提交于 2020-01-06 06:51:28
问题 BigQuery doesn't stream directly into their long term storage, they first put it into a write optimized store and periodically flush that to the main storage. I would like to understand BigQuery Streaming buffer better, in the following use cases. 1) what if I delete the bigquery table, and recreate a new bigquery table with the same name right away, when some records still stay in streaming buffer waiting to be flushed into main storage? For example, if I am streaming a million records into

Cannot Load m3u8: no EXTm3u delimiter JWPlayer Error

烂漫一生 提交于 2020-01-06 06:11:19
问题 i can't speak english good sorry for this =) I have a web site for live stream. I use JWPlayer. Video runs smoothly on a computer (Chrome). But getting such an error in android devices. This is error's SS <script type="text/javascript"> jwplayer('playerjxASSdasni').setup({ 'id': 'playerID', 'width': '100%', 'height': '600', 'file': 'www.yyy.com:8080/live/asas.m3u8', 'androidhls': 'true', 'image': '/thumbs/bunny.jpg', 'modes': [ {type: 'html5',}, {type: 'flash', src: 'jwplayer/player.swf'},

Read UTF8(XML) Data from SQL Server 2005 the most efficient way

半城伤御伤魂 提交于 2020-01-06 05:47:25
问题 I want to read lots of data(single column nvarchar(max)) from SQL Server 2005 and deserialize it to an object. We are currently using the following, but this is not fast enough is there a better/efficient way to do it? using(MemoryStream stream = Encoding.UTF8.GetBytes((string)cmd.ExecuteScalar())) { XmlTextReader xmlReader; DataContractSerializer deserializer; deserializer = new DataContractSerializer(typeToDeserialize); xmlReader = new XmlTextReader(stream); return deserializer.ReadObject

Streaming a video on iPhone and then storing it on the device

て烟熏妆下的殇ゞ 提交于 2020-01-06 04:16:05
问题 I've been told that some apps have video streaming which streams initially and when completely downloaded the video is stored to the user's device for quick and internet-free subsequent viewing. Firstly, is this possible? Secondly, could you point me towards resources demonstrating how it could be done, or possibly offer some insight to get me started? Thanks friends. 回答1: good tutorial on how to stream video: http://buildmobilesoftware.com/2010/08/09/how-to-stream-videos-on-the-iphone-or