Can anybody explain to me how are YouTube videos playing even with disabled JavaScript in browser? Is there any server side scripting or any other technique involved? Thank you very much.
Youtube serves pure mp4 files, if your browser supports HTML5 or you got any other player plugin installed, it will work this way. On cellphones without HTML5 support or Flash, you may simply download those files. Flash player implementation on Youtube does not work without js.
I see YouTube player use an Adobe Flash not HTML5 :)
Player in HTML5 (not by default) doesn't work without JS. (most YouTube buttons, options and others too)
Related
I am using Cordova to create an APK.
The Android WebView does not allow scrubbing of HTML5 video.
Is possible to open my app's video in Android's Native Video Player.
The HTML is simple:
<video src="video.mp4"></video>
For the scrubbing issue, I have tried to render the video as an iframe and embedded element but neither have worked.
I have also tried to invoke JS commands on the video. While these work in my browser, they do not work when exported to an APK.
I have also researched related SO posts but found no solidifying answers.
How would you make a call to another app on the device?
I read about using Intent but that appears to be a Native solution, such as developing the app in Android Studio.
you will have to use cordova-plugin-media.
read this documentation https://cordova.apache.org/docs/en/11.x/reference/cordova-plugin-media/index.html
additionally you can also use any freely available jquery media player plugins
for eg. https://videojs.com/
I'm trying to find a solution for my website which desperately needs an upgrade. Currently I am using Flash-based players to stream content from Shoutcast, which doesn't work too terribly, but unfortunately it leaves mobile users behind.
Ideally, I would love to have an HTML5/Javascript player that can play Shoutcast (or other) streams online. I've tried jPlayer, which seems pretty good for playing individual files, but have been unsuccessful in trying to get it to work with Shoutcast and Icecast.
Does anybody have any suggestions on where to start?
You can use jPlayer to play your shoutcast stream using HTML5 native player - it works quite well on most browsers/platforms except android. In that case jPlayer provides the flash player backup.
You need to specify your type of audio as 'mp3' (aac streams do not work so make sure you are specifying a straight icy mp3 stream) I have used 'mp3' but you can also try type 'stream'
You need to change the url of your stream slightly:
Normal: http://yourserver.com:8000/listen.pls
jPlayer: http://yourserver.com:8000/;listen.pls
(note the addition of the semicolon - this helps with shoutcast servers)
Here is the documentation from the jPlayer site that should help as well.
http://www.jplayer.org/latest/demo-08/
Happy Streaming!
I need a html5 mp3 player that support playlists. The biggest thing is that it has to have a flash fallback to support firefox because I will only be using .mp3 as my source. Heres the catch...it has to work locally.
jPlayer is an html5 player with flash fallback, that also supports playlists.
I have a blog entry describing how to get it going (invisibly) here
You can consult the documentation if you are interested in a visual playlist.
http://jplayer.org/
I'm looking for a web video player with which I can keep the full compatibility with iOS devices: iPad, iPhone, etc (so I would exclude all Flash video players).
Until now I've used Flowplayer but I have some problems:
the main problem is that using flv files I can start very fastly to play the video but I don't have any compatibility with iOS devices. Instead, using mp4 files, I have the full compatibility with iOS devices but before playing the video I have to wait that all content of the file has been loaded (few minutes).
So my question is: does it exist a video format that allows me to play videos very fastly and also compatible also with iOS devices?
Not talking about HTML5 just yet, lets assume you are first interested in supporting most users and legacy devices. Unless you are using an embedded player, (such as Flash), there is nothing inherent in all browsers and/or JavaScript to allow you to play a video that is standardized across these devices. If you simply reference a link to the video file, you are asking the device to natively download and decode the video file. This is why it does not typically begin playing until the entire file is downloaded. This is dependent on each device having a compatible MIME encoding configured for the file type which points to a player that the browser can invoke to handle the file. When you use something like Flowplayer, usually these Flash applications can begin playing video before it is fully downloaded because it knows how to download the video from your server over HTTP and once it has received enough of the video stream (buffered the video), it can begin playing it. Currently your best option is to use something like you have been using for most devices, and have a separate link to the mp4 for iOS devices. If you just re-encode any videos you already have in FLV or whatever older formats you have been using to mp4, you should be able to play that in a current version of any Flash based player, as Flash will work with those files as well as it's legacy formats.
I've found this resource and it seems to be very good: http://code.google.com/p/php-mobile-detect/
I need to play videos from Youtube as MP4.
My system (an Android Phone) does not support Flash.
It can play MP4 videos.
So I'm thinking of creating a web page that plays videos from Youtube.
I need to get MP4 videos to play in my page.
What approaches are there?
Take a look at this related question, where the OP has figured out a hacky way to get the necessary ID and checksum parameters for the get_video "API".
Streaming Youtube Videos
He successfully played back the stream in the VideoView component.
You can use the fmt parameter for choosing which format you want, see wikipedia for a list: http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs
Good luck.
Did you actually try viewing videos? I have the Droid Eris, which shipped with a YouTube app. Try going to the mobile version of YouTube and see if that works out.
Google created Android. Google owns YouTube. Transitivity says you shouldn't have any problems.
Why not consider using Mobile youtube interface
Youtube provides alternative RTSP(real time streaming protocol) links for all existing videos.. dig into youtube api and try to get it.
once you get it you can try code playing the video invoking the inbuilt player to play those videos
Cheers.