CrossMediaManager play from local - xamarin.forms

I am trying to play from assests with CrossMediaManager, mp3 is located in asstest as Amndroid asset but nothing is played.
await CrossMediaManager.Current.PlayFromResource("assets:///britney.mp3");
I have also tred to play from resources raw folder

Related

how to write audio file in flutter web and upload it to firebase

currently I am able to record audio and can listen to them, Now I want to Write that audio in a file and upload to firebase.
I cant use the package dart.io for flutter-web for reading a temporary directories can any one help me with this problem having please do let me know.
so then I can write the audio to the file and upload to firebase.

flex-How to load video from local disk and play

I am developing a flex 4 application. The VideoPlayer component plays video when I place it in /web-root/video/myfile.flv. But my application will have alot of videos and hence I am supposed to store them in a separate directory, say, D:\mysitedata\videos. So I tried playing the video from this location but I get a playbackError.
<s:VideoPlayer width="800" height="600" complete="vpCompleteHandler(event);" loop="false" mediaPlayerStateChange="vpMediaPlayerStateChangeHandler(event);"
source="D:\mysitedata\videos\myfile.flv" />
It looks like you are trying to sue local and network resources at the same time. The Flash player does not like this by default. There is a great article on how to get around this at the following URL:
http://www.indieas.org/2009/09/error-2148-or-how-to-access-local-and-network-resources/
I am summing that you are running a kiosk like application since you are accessing local resources. Remote users will not be able to access your D: drive.
If you would like remote users to access your drive than you should create a virtual folder that points to your videos folder, and then use that virtual folder in the source path of the video.

Getting movie URL from UIImagepickerController

When I shoot a video using UIImagepickerController, the movie url which I receive from imagePickerController:didFinishPickingMediaWithInfo: and the url when I receive from the same video after saving to camera roll are different. Can anyone explain why this so?
Many Thanks,
Naveen
All media data within device are stored in Assets Library. You haven't raw access to this storage. iOS creates a temporary copy of movie which you want to use and store it into file accessible from your App.
After movie capturing you get back the temporary path to movie within your device file system. You need to save this file into your assets library (camera roll).
After movie choosing from library you get back the path to copy of compressed movie in device file system and url to assets library.

Flex build use local files

I have a very stupid problem. I'm using Flash Builder (Flex) 4.
My application displays a video using VideoDisplay component and some images.
The video filename is always named video.mp4 and the images are inside a folder called "real/".
The video file and the real folder are in the SAME location of the .swf built.
The video source in the code is set like this:
videoDisplay.source = 'video.mp4';
and the images, loaded dynamically, are like:
img.source = 'real/' + imageFilename;
In development, I put this video and real folder inside the Flash Builder folder called bin-debug: I can correctly display the video and see the images.
In the release version, when you export and build the release, I have tried to put this video file and the folder inside the folder bin-release, I open the index.html generated, but nothing, the video and the images are not loaded!
Is there any problem with the sandbox? I don't think so because it is in the same local folder!
Do I have to setup anything in the compiler? Some param?
use URLRequest to load the external files
new URLRequest("c:\folder\video.mp4"));

Publishing SWF using Adobe Flash

I have a SWF file which contains of an image (1keyframe) and also, it contains an AS3 file with the following codes:
var loader:Loader=new Loader();
var ur:URLRequest=new URLRequest("1.swf");
loader.load(ur);
addChild(loader);
I am trying to play the swf file (1.swf - an audio) while the image is being displayed. What I want to know is how will I be able to publish this project into an SWF file which can still play as expected even without the raw 1.swf file. I can publish SWF right now but when I delete the 1.swf file, my generated swf can only display the image.
If you are able to host your file 1.swf at an actual URL, you could change your AS3 code to fetch the file, over the network, from that specific URL.

Resources