What is the best way of making a live stream embed SWF Player Radio from http://streamcyclone.com/ Works on iphone safari
could not find any help topic on this any where all talks about converting locally and upload to the server
<embed type="application/x-shockwave-flash"
src="http://manage.streamcyclone.com/player/player.swf" width="260" height="80"
style="undefined" id="mpl" name="mpl" quality="high" allowfullscreen="true"
allowscriptaccess="always" wmode="opaque" flashvars="****************">
it's simple you can use
https://github.com/devgeeks/phonegap-plugins/tree/AudioStreamer/iPhone/AudioStream
it is a phonegap plugin(official) just for streaming audio files. use it just like what is says in read.me.
Related
How can I stream video files I have sitting in Google Cloud Storage on iOS?
If I try to play the video URL in iOS, the whole video gets downloaded and then played. That takes too long. I want to stream the video in 10 second chunks.
Google's Cloud Storage allows you to stream data to mobile making use of Signed URLs and a front-end or an app that serves the content.
It's really important to first set the right Content-Type in your objects of Cloud Storage. If not, the browser will download the file instead of playing it.
This would be the steps for this approach:
First you'll need to create the Signed URL of the content you want to serve using gcloud commands:
gsutil signurl -d 10m Desktop/private-key.json gs://example-bucket/cat.jpeg
Or it can also be done with third party libraries. In this other post they show how to do it with python.
Serve the result link on the front-end/app you want to present the content. Here is an HTML example:
<!DOCTYPE html>
<html>
<body>
<video width="320" height="240" controls>
<source src="video-signedurl.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
I work on a testing website that allow users to upload audio and video. In local server, everything is fine. The users can upload audio and video and play audio or video as they want. But after deploying the website to windows azure, the video does not work. The users in the azure server can upload audio and video, but they can only play audio. When trying to play video, an error message say (NO video with supported format and MIME type found).
In html, I use these to display video
<video id="Video" controls="controls">
<source src="#Url.Content("~/Video/"+VideName)" type="video/mp4" />
Your browser does not support HTML5 video.
</video>
I check the server to see if the video files are exist, but the files are exist there.
What is the problem ? Does azure refuse the request for video ?
Probably Azure does not recognize your deployed video files as static content. Try to add the following lines in your web.config file:
<staticContent>
<remove fileExtension=".mp4" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
</staticContent>
It should be placed in system.webServer section.
I have configured and setup the youtube direct lite and deployed the app in the google app engine.I am able to submit videos and these videos are approved and a approval mail is successfully send.But when I am trying to embed the playlist code of the uploaded video,
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/p/PLwNZwNRcLsUoRtvyzHc3dYz1uLV_z9R2M? fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/p/PLwNZwNRcLsUoRtvyzHc3dYz1uLV_z9R2M?fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
</object>
I am getting a white screen with no video shown.The video link that is generated also says the link is broken.But that is automatically generated link and it cant be broken.pls help
Based on what you describe, I believe you're using YouTube Direct, not YouTube Direct Lite. I'd recommend using the newer, more maintained YouTube Direct Lite at this point.
In any case, I just updated the code that gives out playlist embeds in YouTube Direct's admin interface to use the new iframe playlist player syntax, which should work better:
https://code.google.com/p/youtube-direct/source/detail?r=633
Try updating your YouTube Direct installation to pick up that new code, and regenerate your playlist embed code from the admin interface.
Can we add Youtube player in a HTML5 & javascript page without using flash. I need to make an application which uses youtubeplayer & could be played on differnet platoforms e.g. ios,android
(iOS doesn't support flash)
Here you have the code for embed videos with fallback to flash for those who doesn't support html5.
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0">
</iframe>
More info here http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
Or open them in a UIWebView? Their videos are in .swf format though.
Thank you.
EDIT: Okay, so I can get it to play in UIWebView, also when you click on the video in the UIWebView it will play the video in fullscreen. So am wondering if I can just get the code of when it clicks to fullscreen, and use it in some button I have.
Did that make sense?
Oh and thank you again.
Try embed the iframe snippet from Youku into your webview
<iframe height="498" width="510" frameborder="0" allowfullscreen
src="http://player.youku.com/embed/XNTY4ODU0NzQ0"></iframe>
I got it working on Android, but not tried it on iOS yet.
<video width="480" height="320"
src="http://v.youku.com/player/getRealM3U8/vid/XMzkxMTM3MDQw/type//video.m3u8"
controls>
<embed src="http://player.youku.com/player.php/sid/XMzkxMTM3MDQw/v.swf"
allowFullScreen="true" quality="high" width="480" height="320"
align="middle" allowScriptAccess="always"
type="application/x-shockwave-flash"></embed>
</video>
Just use the above HTML in a UIWebView for Youku. It can be played on iOS device and PC. Replace the XMzkxMTM3MDQw with the corresponding code of the video.
As you will easily be able to verify on the internet, Flash (.swf) is not supported on iOS devices. Maybe they offer their videos in another format, otherwise this won't work.
Update: I guess you're just opening the website in your web view. So that means on their web site they have an iOS compatible stream. You can fetch the stream data from the website's source code and build your own web site (stored locally on the device) that only displays that video stream in an UIWebView. Or you use MPMoviePlayer or HTTPLiveStream, whatever. However, make sure that this is allowed/legal, I can't help you there since I guess it heavily depends on what you want to do with your app.
See here to get the url of .m3u8 file for a youku video by its ID, and simply embed it into a <video> tag