Playing a video file from a server in Swift

UPDATE 2019, Swift 4: MPMovieControlStyle’ was deprecated in iOS 9.0: Use AVPlayerViewController in AVKit. So, following the advice, let’s change it. Original answer from 2016 is below. import UIKit import AVKit import AVFoundation class ViewController: UIViewController { override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) let url = URL(string: “https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4”)! playVideo(url: url) } func playVideo(url: URL) … Read more

Access ordered images and video in same Cursor

After lots of research and playing around with source code, I’m finally a bit more familiar with the Android filesystem. To get a single Cursor which can access information about both Images and Video I used the following: // Get relevant columns for use later. String[] projection = { MediaStore.Files.FileColumns._ID, MediaStore.Files.FileColumns.DATA, MediaStore.Files.FileColumns.DATE_ADDED, MediaStore.Files.FileColumns.MEDIA_TYPE, MediaStore.Files.FileColumns.MIME_TYPE, MediaStore.Files.FileColumns.TITLE … Read more

HTML5 Video muted but still playing

In Angular case, one can try [muted]=”‘muted’”, It is working for me. <video id=”video” style=”width:100%; height:100%” autoplay [muted]=”‘muted'” loop> <source src=”https://stackoverflow.com/questions/14111917/./assets/video/model-video.mp4″ type=”video/mp4″> </video>

HTML5 Video Autoplay not working correctly

Chrome does not allow autoplay if the video is not muted. Try using this: <video width=”440px” loop=”true” autoplay=”autoplay” controls muted> <source src=”http://www.tuscorlloyds.com/CorporateVideo.mp4″ type=”video/mp4″ /> <source src=”http://www.tuscorlloyds.com/CorporateVideo.ogv” type=”video/ogv” /> <source src=”http://www.tuscorlloyds.com/CorporateVideo.webm” type=”video/webm” /> </video>

What tool(s) can I use to produce iPhone App Screencasts? [closed]

For my screencast here, I ran the application in the iPhone Simulator and recorded it all using ScreenFlow. I can’t recommend ScreenFlow highly enough, as it really simplifies the whole process. ScreenFlow records your entire screen, but it provides excellent editing capabilities for cropping the video to the relevant 320 x 480 (or 480 x … Read more

FFmpeg: How to convert vertical video with black sides, to video 16:9, with blurred background sides

I solved! ffmpeg -i input.mp4 -lavfi ‘[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16’ -vb 800K output.webm Input: https://www.youtube.com/watch?v=17uHCHfgs60 Output: http://www.youtube.com/watch?v=CgZsDLfzrTs

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)