Thank you for visiting the Rackspace Community
The Community is currently in read-only mode. All content is available, but the ability to post new content or topics is not available at this time.

Please contact your support team if you have a question or need assistance for any Rackspace products, services, or articles.

Connect Cloudfile and play the video streaming action question

This question is answered.

Dear All,

I 'm developing the video connecting part, I have some quesetion.

Is it a really streaming action (declare: it should be provide the playback function in my concept)..

or download the file and play it only?

Cause I have a problems in this streaming activities.

Verified Answer
  • Hi All,

    Finally I found the solution and issue.

    When I get the public link, I do not set the streamming parameters in the constructor so I cannot stream the file.

    I recommended that please provide the tutorial for beginner.

All Replies
  • Cloud Files is able to provide both streaming and non-streaming of files. There are couple of ways to stream video or audio from Cloud Files. There is a HTML5 player that supports video and audio is able to stream http://www.rackspace.com/knowledge_center/article/streaming-audio-and-video-with-html-5 and for video there is also JW-player http://www.rackspace.com/knowledge_center/article/streaming-cloud-files-with-jw-player.

    If you can provide more information about your application or the way that you would like to using Cloud Files we will be able to provide further assistance with finding the solution.  

  • Hi Ethan,

    Please could you share a bit more information as to how you are developing your streaming application. What are the current issues you are seeing?

    Currently we recommend the following methods for streaming video from the our CDN;

    Click a link below to find out more.

    Please also check out http://www.rackspace.com/knowledge_center/product-faq/cloud-files#18 for further information regarding streaming on the Cloud Files platform.

    Kind Regards,
    JaredW
    Hybrid Cloud Support

  • Thanks for your reply,

    I can play the video in the flowplayer normally exclude the "two things" maybe it is one thing.

    1.

    When I click the time line of the video.

    The pointer was jump to the correct position but the video streaming is not work. Unless the video cache is loaded.

    2.

    When I plugged the Akamai and define the provider of the clip, it will not show the buffer. So I changed the provider to the http, then it will show the buffer length.

  • Hi Ethan,

    When you use the http provider could you confirm you are able to jump position in the movie and buffer correctly. This may be the correct provider for your use-case.

    Could you provide a sample of your code which included the player settings and the provider.

    Kind Regards,
    JaredW
    Hybrid Cloud Support

  • Hi JaredW,

    1. I confirm when I use the http provider that are able to jump the correct position and the buffer are also correctly (but cannot jump to no buffer position)

    2. I uploaded the php file to the skydrive

    link :  http://sdrv.ms/1eGPeGf

  • Hi Ethan,

    I have found a similar issue logged on the flowplayer site; http://flash.flowplayer.org/forum/2/82949

    I would recommend testing in simple html code to see if you can get this working.

    I would also look at the following option in your code; live:true, and change that to false to see if this can help with playback from anywhere in the stream.

    Kind Regards,
    JaredW
    Hybrid Cloud Support

  • Hi Ethan,


    The FlowPlayer is expected to work with the streaming URL. the main advantages of the streaming URL are being able to jump through the the video without having it buffered, also it saves you bandwidth costs.

    I have a working example of a file that works with streaming:

    http://6dd67bc3f0c30e22f44c-44ee12f2bac62ef3e53c0b1923bc3d61.r65.cf3.rackcdn.com/flowplayer-stream.html

    you can check the source code of the page to gain more insight about the code of the HTML file.

    You can follow the steps below to be able to have a working streaming with flow player:


    1.Download the latest flow player from the provided link on this article.

    2. Save the file on a local directory on your computer and extract the folder.

    3. Create a Container in your cloud files and make it published to CDN.

    4. upload all the file in SimplePlayer of the extracted directory to the newly created container.

    5. Use the index.html file in SimplePlayer directory as a reference and replace the "url" under the "clip" section with the streaming URL of a video you have on your cloud files. (it can be on any other containers.)

    for example: the clip section below:

    clip :
                 {
                    live:false,
                    provider: 'akamai',
                    autoPlay: false,
                    stopLiveOnPause:false,
                    url:'http://zerihdndemo-f.akamaihd.net/z/h264/darkknight/darkknight.smil/manifest.f4m'

    },

    Should be changed to :

    clip :
                 {
                    live:false,
                    provider: 'akamai',
                    autoPlay: false,
                    stopLiveOnPause:false,
                    autoBuffering: false,
                    url:'http://00c9958b18a46b124446-b2161ae35774395cbe0f6fd829261635.r21.stream.cf3.rackcdn.com/Understanding%20the%20Cloud%20Computing%20Stack_%20SaaS,%20PaaS%20and%20IaaS[720p].mp4'
                },

    6. upload the updated html file to the same container you uploaded all the other files within the SimplePlayer directory.

    7. locate the HTTP url of the index.html file you have uploaded and paste it to your browser.

    following the steps above you should be able to have a working flowplayer streaming your video.

    Kind Regards,

    Mehran Alavi

    Linux System Administrator

  • Hi All,

    I found that I cannot jump to the non-buffered area directly, so I need to ask other ppl to help me first. Crying

    Thank youYes

  • Hello again Ethan,

    If you nee further assistance with this issue, I would suggest you to create Support ticket and reference this question in the Forum so I can have a closer look to your account and try to provide you with a solution.

    Kind Regards,

    Mehran Alavi

    Linux Administrator

  • Hi All,

    Finally I found the solution and issue.

    When I get the public link, I do not set the streamming parameters in the constructor so I cannot stream the file.

    I recommended that please provide the tutorial for beginner.