How do I play video in my Flutter Desktop Application - flutter

I want to play video files (stored in my local machine) in a desktop application developed by flutter. But unfortunately I couldn't do it. Most popular video player packages do not support windows platform. I tried with dart_vlc but it's not working as documented. I followed the exact example given there.
Now I really need to play video files in my application but can't find a way to do it. Does anyone has any idea how to do it?

This dart_vlc works perfectly on windows platform. All I needed to do is go through the instructions mentioned in Readme section and change in my windows/runner/main.cpp file as mentioned here.
Note: Previously I mistakenly followed the older version of dart_vlc package.

Related

Web-based MP4 refusing to play in Safari 10.1.1 (standard setup) but does play Chrome 58 (standard setup)?

Ok, so I have noticed that somehow Safari (Version 10.1.1 (12603.2.4), using a standard setup with no add-on's or settings modifications) sometimes refuses to play .mp4 files that Chrome (Version 58.0.3029.110 (64-bit), also a standard setup) seems to play without a problem.
I discovered the issue since I am building a macOS Cocoa Application with Xcode that helps me browse WayBack media files. It's a hobby project to help me get more familiar with coding in Swift. Since it refused to play a lot of MP4 files I decided to try these links in Safari and noticed they failed as well. Then, trying Chrome, they all work.
My OS = macOS 10.12.5 (Sierra)
This video is such an example.
Does anyone know why a basic Safari setup apparently is unable to play the mp4?
NB: While I know that the MP4 file from the given link (below) does work in Safari if I play it directly from the original source (so not retrieving it from the WayBack server) I also need to understand why it is refusing to play via the given link and how to fix that.
Could it have something to do with the link being an HTTPS link, or might it it be a macOS issue? (As I have found that the AVPlayer of my macOS Cocoa App also refuses to play these videos).
Sorry to post such a broad question. I've searched online for similar posts to find out what the problem might be. I've found that there can be a lot of different reasons as to why browsers might or might not play videos.
A lack of in-depth knowledge prevents me from understanding how to properly troubleshoot this issue in a correct manner. It also prevented me from being able to fine-tune the question any further.

write file with ionic, plug in Phone, copy away?

I've just seen that there exists a cordova extionsion to write files in ionic.
But. What am i supposed to do with it? I mean a Usecase would be "create File, Plug-in Mobile, Copy to to Computer" but this I guess isn't supported by iOS at all.
So my questions are:
What is $cordovaFile meant for in ionic?
Is it possible to to realize the above Usecase in android even though it's clearly not in iOS?
Quote from the github page:
This plugin implements a File API allowing read/write access to files residing on the device.
Maybe you would want to download an image and save it to the sd card for example (you would need filetransfer plugin to download the image). More info about the plugin you can find here.

How to compile MobileVLC for iOS?

I'm trying to compile the Mobile VLC project but it always fails with the buildMobileVLC.sh script. Several different issues occur.
Can someone post instructions on how to build the MobileVLC project so that it runs properly on a device?
Thank you,
apptunes
Please see the following thread, and specifically this answer.
I will not paste the answer here as it's redundant, but if you follow the steps you'll get VLC to compile for iOS. The one thing that I am still having trouble with is being able to visualize multicast rdp/udp streams. HTTP stuff works fine, e.g. 3gp files etc... And of course standard files uploaded via iTunes work without a problem.

PhoneGap iOS Low Latency Audio

Until PhoneGap 1.6 was released I was using a PG plugin called SoundPlug to achieve low latency audio on my iOS app project.
With PhoneGap 1.6 the SoundPlug plugin no longer works (at least I can't seem to get it too). Does anyone have a solution I could use?
I'm using it to play a beep when a button is pressed that records audio.
Thanks
Plugins need to be updated to be used in the newly renamed Cordova.
There is a Plugin Update Guide pdf file in the .dmg file that has the iOS installer in it.
That might be a good place to start... otherwise, you might have to wait until someone updates the plugin. When they do, it will probably go into the new repo folder for iOS updated plugins (https://github.com/phonegap/phonegap-plugins/tree/master/iOS).

Creating and installing a Plugin for mobile Safari on ios4 devices

I have created a simple web plug-in to write data to file system. This works as expected on a mac Safari. Here i have to manually place the plug-in on to the /Library/Internet Plug-Ins folder. My question is there a way to find if the plug-in is not present through JavaScript and if it is not then download and install the same. I also would like to know if the same can be done on mobile Safari running on ios4 devices?
Obviously you can not load Plugins of any kind in Safari on the iOS device. This is the main reason Flash does not exist on iOS.
On the Mac you can do that. But you need to create the plugin in C++ and for each platform independently.
If you code the plugin correctly, it should be possible to "detect" it using JavaScript. I highly doubt you can download it automatically, though. This would pose a very large security hole for every user.