video-streaming

How to decode the H.264 video stream received from parcelfiledescriptor

↘锁芯ラ 提交于 2019-12-12 02:48:51
问题 I'm creating an Android application of live video streaming between two android phone. I've already established a socket connection between these devices. I'm capturing video in one device and send the stream to other device but currently I just want to save in the receiver side mobile device and save it. I'm recording using MediaRecorder in one device , so to stream to the receiver I,m using parcelfiledescriptor object by setting the data Client side code mediaRecorder.setAudioSource

Chromium - “Failed because the user didn't interact with the document first” in chrome?

两盒软妹~` 提交于 2019-12-12 01:00:00
问题 Ok, autoplay on visit used to work on our site. However now, we are getting: play() failed because the user didn't interact with the document first How come autoplay works on Youtube though? For instance on open video in new tab. Using HLS.js it no longer work. What is Youtube doing that we could do here ? 回答1: The latest version of chrome creates a per domain “score” if a user has interacted with media 20 times on a domain, it is allowed to auto play. If the interaction score is lower, it

MediaPlayer object getting Null after orientation change?

时间秒杀一切 提交于 2019-12-12 00:26:01
问题 I am trying to do video streaming that is working fine in portrait mode. Then I added code for onConfigurationChange to inflate another layout for landscape mode. but my app is getting crashed at this line: int timeElapsed = mediaPlayer.getCurrentPosition(); Here I am getting mediaPlayer as null while it has been already initialized. MediaPlayer mediaPlayer; public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_detailvideo

How to play an in downloading progress video file in IOS

人走茶凉 提交于 2019-12-11 23:43:35
问题 I'm assigned to implement a iphone app that can download video files from a server, and to play that video while the video file is written to the disk; something likes (Movie player)<--read--[###### iphone flaskdisk ######]<--write---(Downloader) I know that I would use HTTP video streaming play a remote video stream, but what i need is the video file is saved in flask mem after playing. Any suggestion? Thanks 回答1: If you know how to play a video from a URL, you can easily play the video

AVAssetImageGenerator not working properly, I am unable to fetch thumbnail of video from URL

社会主义新天地 提交于 2019-12-11 22:40:40
问题 I am trying to fetch the thumbnail of a video from URL. Sometimes it works fine and sometimes I do not get the image and get these 2 random errors, first is: couldn't generate thumbnail, error:Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x175aa5f0 {NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x1768e470 "The operation couldn’t be completed. (OSStatus error 268451843.)", NSLocalizedFailureReason=An unknown

rendering YUV ffmpeg frames in Android native ndk

こ雲淡風輕ζ 提交于 2019-12-11 20:13:03
问题 Can we render YUV frames from ffmpeg streaming output(AV_PIX_FMT_YUV420P) directly in Android screen without converting to RGB format? 回答1: I've had some experience with Google WebRTC open source project recently. It provide a fully packaged video call example, also contains an Android demo. What the demo doing is displaying decoded video frames, which is I420(YUV420P) pixel format. Take a look at the source code: https://code.google.com/p/webrtc/source/browse/trunk/webrtc/modules/video

How to add events to flash fallback for medialemetn and what evets are available?

♀尐吖头ヾ 提交于 2019-12-11 20:07:17
问题 I am using mediaelement.js, the player is working as intended with chrome but for firefox the events are not firing. Are there any specific events that don't work on firefox? Which events are available? I have tried both the loadeddata and progress events, but neither are getting called in firefox. player.addEventListener('loadeddata', function() { jQuery('.mejs-overlay-button').trigger('click'); }, false); 回答1: Are you adding the events inside the success function of your mediaelementplayer(

Re-stream live video feed

我与影子孤独终老i 提交于 2019-12-11 19:10:50
问题 I currently have a device running Ubuntu with an Asus Xtion Pro Live attached. What I'm trying to do is to capture the video and push it to a server, and then have the server re-stream it so that other clients that connect to my server can view the stream. The server is running Windows and has a public ip. What I currently have now is, while the device is on the same network as a client, the client can connect directly to the device to view the stream. For example, if the device has an ip of

Does Google WebRTC support Cisco Open H.264?

旧巷老猫 提交于 2019-12-11 18:53:41
问题 Knowing the fact that Cisco has its h.264 codec made as open source I wanted to add it to the Android WebRTC SDK. I tried to create custom VideoEncoder using the webRTC API but I found that the choice of the codec is made by its name. The SoftwareVideoEncoderFactory class returns a class which represents the specific codec based on VideoCodecInfo name: link. In my case, I did it like that: VideoCodecInfo codecInfo = new VideoCodecInfo("H264", getDefaultH264Params(false));

How to assure security for a video streaming using Lighttpd?

孤街浪徒 提交于 2019-12-11 18:49:58
问题 I need to stream a video which is present on server say xyz.com. If I access the correct path of the video everyone is able to see that video. What I need to do is that create a MD5sum corresponding to the every particular video which has an unique video id. So that from now onwards if the user is accessing the video as before ie : it should not load for the below. http:/xyz.com/video.mp4 It should load only for the following url http:/xyz.com/video.mp4?md5=202cb962ac59075b964b07152d234b70