简体   繁体   中英

How to connect Object Storage to a .php app in IBM Cloud (Bluemix)

I have a Cloud Foundry PHP App and I have it bound to an Object Storage Cloud Foundry Service. In my php app I want to have a simple video cointainer but I want the actual video FILE to be stored in the Object Storage Cloud Foundry Service. I basically want to do something like this:

<video width="320" height="240" controls autoplay>
  <source src="my_video.MP4" type="video/mp4">
  Sorry, your browser doesn't support the video element.
</video>

But I don't know how to establish the connection or what the source path would be to the file located in my Object Storage Cloud Foundry Service.

Looks like there is a working example on Github.Just pointing to a link . https://github.com/christiancompton/php-objectstorage

Even I am trying to achieve same thing.Hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM