I am trying to play multiple files in one playlist with the wowza streaming server. I thought that I can manage this functionality with a SMIL file, but that didn't work either.
I don't know whether wowza is using the smil file only for bitrate swithing but the sequence didnt work for me.
The smil file is looking like this:
<smil>
<head></head>
<body>
<seq>
<video src="mp4:test1.mp4" system-bitrate="600000"></video>
<video src="mp4:test2.mp4" system-bitrate="600000"></video>
</seq>
</body>
When I replace the sequence tag with a switch tag, it only plays the second video and not the first one at all.
Is it even possible to create such stream where I will be able to play multiple video files defined in a smil file?
Thanks
from what I know, Wowza does not allow to join separate files into a single VOD stream.
i was building kind of special streaming proxy server for such purposes.
Related
I'm having problems trying to play audios in HTML 5 with the tag.
The audio is recorded correctly with the media file with compresion plugin: https://github.com/remoorejr/cordova-plugin-media-with-compression, in the Documents folder, and I can even delete the files I created, so the filesystem is not the problem, I can write in the folder. Also I downloaded the data in XCode to check if the file was there, and it was, and also used the checkFile, with the File Plugin, and it says that exist.
But when I try to play any of that audios on the HTML5 player, I can't.
This is what I have in the HTML (I'm sure the audio file exist):
<audio controls="controls" id="audio" style="width: 80%;">
<source src="file:///var/mobile/Containers/Data/Application/LONG STRING HERE/Documents/audiofile.m4a" type="audio/mpeg" />
</audio>
I tried with cdvfile:/// and withouth the file:/// or cdvfile:/// just starting with "/var/etc..." none of them work.
Thanks in advance!!
I have a wordpress website in which I want to embed the audio player for .mp3 files. But the user should not get the server url of the music file.
Currently I have used [audio src=""]. But through this user get the url though page source. So is there any way or any plugin through which I can hide it in the page source.
Also I cannot use the flash player as it has to be run on iphone/ipad too.
Looking forward for the replies
The problem with HTML5 audio and video is, that it directly links to the file.
This is also the reason sites like Netflix don't use it.
Only Microsoft Silverlight can protect your content from rippers properly.
BUT - you could use the dirty solution: Make an <iframe> and embed another html file that only contains your audio source and replace the body container with <body oncontextmenu="return false">
This will disable your users to open the context menu over your audio file and thus they will not be able to find the location of the file, however "html-pros" will just use f12 to open it.
If you only do it on this very limited part of the page, most people won't be able to get around this though. ;)
Now i am implementing a video playback on my site and for mobile devices i use HTML 5 video player:
<video src="/get_video.php/myfile.mov" controls width="400" height="250"></video>
In src attribute stored url to php file which output a contents of video file. MIME-type of file i don't know(it's dynamic) so i send content type header - application/octet-stream.
And my iPhone cant play this video: screenshot
So Question: How to force the player to play videos?
Thanks.
First of all, I recommend reading these resources on Video tags:
http://www.w3schools.com/tags/tag_video.asp
http://www.w3schools.com/tags/att_video_src.asp
https://developer.mozilla.org/en-US/docs/HTML/Element/video
As I understand, you have to specify in your MIME type a real video type (vs application/octet-stream). You mentioned that it's dynamic, however on the server side you know which file are you reading (so, you can figure out file format).
Supported types are:
video/mp4
video/webm
video/ogg
i am sending live rtmp stream to wowza server with a live application config but everytime i connect to the stream for watching the live stream, its start from the beginning of the stream. I can see wowza is creating bigger and bigger file in /content directory and this file will everytime be played from the beginning.
How can i say wowza to send it live, like send the last 10 seconds of the file?
Best regards,
Chris
You'll probably have more luck asking this question on the Wowza forums, where their support team regularly addresses these questions. You'll need to provide more information:
What is your input (camera, flash media encoder, file)?
Can you stream VOD?
A large file building in the content directory sounds like you may be recording the stream. Do you have any add-ons such as the live stream recorder installed?
What url are you using to connect?
Well that answer is simple. You set the wrong stream type in the config.
I guess you set rtp-live-record instead of rtp-live that should fix it.
Kind Regards, Sui
Follow these instructions to create a live stream and broadcasting it
Go to the Wowza Media Server Directory. Probably it is /usr/local/WowzaMediaServer
cd applications;mkdir live
Here live is your application name
cd ../conf;mkdir live;cp Application.xml live/
Now edit the Application.xml file
cd live;vim Application.xml
Change the stream type default to live
live
set HTTPStreamers
cupertinostreaming,smoothstreaming,sanjosestreaming
set LiveStreamPacketizers to
cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer
set Playmethod
none
Now go to your browser and open the player
file:///usr/local/WowzaMediaServer/examples/LiveVideoStreaming/client/live.html
Server : rtmp://;1935/live
Stream :
Note * : For live streaming you have to use an encoder ( Adobe Flash media Live Encoder , etc )
i want to create an epub reader with feature like play video and audio from my iphone app.
One more thing i would like to say that it will not a web based applicaton.
i mean to say that i dont want to use uiwebview.
please any body help me thanx in adv.
EPUB3 supports tag, http://idpf.org/epub/30/spec/epub30-overview.html#sec-multimedia
So you can embed video like this:
<video id="my_video_1" width="720" height="365" preload="auto" controls="true">
<source src="../Misc/my_video_1.m4v" />
</video>
And, H.264 or VP8 video codecs are recoomended.
http://idpf.org/epub/30/spec/epub30-publications.html#note-video-codecs
The epub format is wrapped as a zip file (you can just unzip it). There was a lot of discussion about it in this thread:
Reading ePub format
So you can just add the audio/video in the zip and then runnit locally using MPMoviePlayer. If you want to be able to actually show the book you must re-implement a web engine, as epub books uses HTML to diagram. So, as far as I know, the UIWebView is the easiest way to go.