How to play latest video in document library using Media webpart?

Hi,
We are trying to play latest video file which is in SharePoint library by using Media webpart. We are adding video files in document library. The top most item or latest item should be played in our page using media webpart. Please let me know if any
OOB features available for implementing this.
Your help would be appreciated.
Thanks., Prakash

Hi,
We can get the latest video file URL dynamically and create Media player using ECMAScript Client Object Model.
The following articles for your reference:
How to: Configure the MediaWebPart Object Using JavaScript (ECM)
http://msdn.microsoft.com/en-us/library/ee558890.aspx
JavaScript to Create Media player
http://psnagarkar.blogspot.com/2013/06/javascript-to-create-media-player-in.html
Working with the ECMAScript Client Object Model (JSOM)
http://msdn.microsoft.com/en-us/library/office/hh372944(v=office.14).aspx
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • How to avoid postback while filter document library using metadata navigation filters?

    Hi All,
             Please help me with this scenario. I have a document library with metadata columns and normal columns and have enabled metadata navigation settings and key filters.
            It filters fine. But only problem every time i click the whole page will refresh. is there any way we can avoid page refresh while filtering.
    Or
    Any alternative solutions also much appreciated.
    Thanks for your help in advance.

    You're not going to be able to avoid that post back. The pages haven't been designed to allow AJAX behaviour and trying to re-build them would be a monster for MS let alone for you.

  • How to add a record in document library without upload file.

    Hi,
    how to add a record in document library without upload file?
    Is it possible? I want to create a folders in Document Library but inside folders i do not want to upload a file instead of just i want to create a record. I will map my local file path to the records.
    Can anyone help me on it?
    Thanks & Regards
    Poomani Sankaran

    Hello Sankaran,
    document library is to upload documents, without document you will not be able to add a record or Item to it.
    for your requirement you can use a list and enable folders within the list and maintain the local path of the file as an item in list.
    http://www.sharepointbriefing.com/spconfig/article.php/3834951/Enable-the-New-Folder-Creation-Option-in-SharePoint-Custom-Lists.htm
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to update managed metadata column for all file in document library using powershell

    Hi,
    How to update managed metadata column for all file in document library using powershell?
    Any help on it.
    Thanks & REgards
    Poomani Sankaran

    Hi TanPart,
    I have changed the code which you have give in order to get the files from SharePoint 2010 Foundation  Document Library.But i am getting below error in powershell.
    Property 'ListItemCollectionPosition' cannot be found on this object; make sure it exists and is settable.
    Could you tell me which is the issues in it?
    See the code below.
    $web = Get-SPWeb http://ntmoss2010:9090/Site
    $list = $web.Lists["DocLib"]
    $query = New-Object Microsoft.SharePoint.SPQuery
    $query.ViewAttributes = "Scope='Recursive'";
    $query.RowLimit = 2000
    $caml = '<Where><Contains><FieldRef Name="Title" /><Value Type="Text">Process Documents/Delivery</Value></Contains></Where>' +
            '<OrderBy Override="TRUE"><FieldRef Name="ID"/></OrderBy>'
    $query.Query = $caml
    do
        $listItems = $list.GetItems($query)
        $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition
        foreach($item in $listItems)
            #Cast to SPListItem to avoid ambiguous overload error
            $spItem = [Microsoft.SharePoint.SPListItem]$item;
            Write-Host $spItem.Title       
    while ($spQuery.ListItemCollectionPosition -ne $null)
    Thanks & Regards
    Poomani Sankaran

  • How to play YouTube videos in HD on iPhone over cellular?

    Does anyone know how to play YouTube videos using the Google YouTube app in HD on the iPhone over cellular? I'm asking because I have an iPhone 5 with a large LTE data plan, which I don't mind using a bit more data for better clearity on the videos. I know in the past people have suggested to use YouTube in the Safari broswer to view videos in HD, but I find it to be non-consistant. Anyone have a better idea how to watch YouTube videos in HD on iPhone/iPad over cellular (3G/LTE)?

    Did you use iAD to create the widget?   If  you did...  then there support  group  should have answers.
    If you used one of the widgets in iBA  - as you have  had no suggestion for a fix... you will need to contact iBooks support.
    The  More Like This column on the right shows links to similar problems.
    It would  seem to be  related to  your  use of  You Tube and Vimeo content or maybe its how you  put the  widget content  together.
    Have  you search the iBA help files, previous posts and the iBA  tips?

  • HT3775 how to play a video MPG format on a mac

    how to play a video MPG format on a mac

    Try VLC media player it seems to play almost any codec.
    https://www.macupdate.com/app/mac/5758/vlc-media-player

  • How top Open a Excel Document from share point document library using jquery

    How top Open a Excel Document  from share point document library using jquery

    Hi,
    According to your post, my understanding is that you want to open excel file via JQuery.
    To open excel file, we can use the following code.
    <script type="text/javascript">
    function openExcel(strFilePath) {
    var yourSite = "http://www.yoursite.com";
    openExcelDocPath(yourSite + strFilePath, false);
    function openExcelDocPath(strLocation, boolReadOnly) {
    var objExcel;
    objExcel = new ActiveXObject("Excel.Application");
    objExcel.Visible = true;
    objExcel.Workbooks.Open(strLocation, false, boolReadOnly);
    </script>
    For more reference:
    http://www.kavoir.com/2009/01/using-javascript-to-open-excel-and-word-files-in-html.html
    http://www.dotnetspider.com/resources/43453-Open-Word-Excel-files-using-Javascript.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to play a video

    how to play a video ,there is no option to play it

    In the account for your wife, preferences > accounts, you would add an app to the list of apps that run at login.  You may be able to add a file to this list, don't know.  You could write a simple script with open name-of-video file.  Possibly as simple as:
    #! /bin/bash
    # open is equivalent to double clicking on the file.
    open name-of-video
    Robert

  • How to play HD video on blackberry playbook

    Hi
    Plz tell me how to play HD videos on bb plybook

    Playbook natively supports hd video playback...not all formats though...infact the demo video of playbook is in hd...
    Further...if u still wanna play video of some format not supported by playbook...download QMplayer from appstore...its a paid app but trials free...

  • I DONT KNOW HOW TO PLAY THE VIDEO ON MY IPOD

    i dont know how to play the video on my ipod when i select it from the menu the song starts playing but there is no video all there is is a little picture in the top right hand corner can someone help please?

    the videos of course have to be in the correct format that's why an app like ipod itunes will be helpful in making your videos viewable you can even do the encoding yourself i might suggest checking out this helpful guide http://www.macworld.com/article/48480/2005/12/convertvideo.html once your videos have been converted the videos may appear in the Movies part of your itunes desktop hopefull this helps

  • I'm using iPad 4 with iOS. How to play YouTube video in background?

    Any suggestion?

    Welcome to the Support Communities. This article may help:
    How to Play YouTube Videos in the Background on iOS
    ...Found by doing THIS.
    And this is just a tip: You can edit your post within 15 minutes. To edit your initial post of a thread, click on the Edit post link in the Actions section at upper right. To edit your subsequent posts of a thread, click on the Edit link at the bottom of the particular post you want to edit. Either way, when done editing, click the blue Update button.

  • How to play a video in AIR on a mobile device

    Does anyone have any walkthrough they can share for how to play a video in an mobile AIR app? This would be for a video that's bundled with the air app.
    Thanks!

    Since the video is bundled, I'd recommend you make usage of the GPU accelerated StageVideo class:
    StageVideo - Adobe ActionScript® 3 (AS3 ) API Reference
    On that page you will find several tutorial and code links (under the description) on how to use it, for example:
    Adobe Flash Platform * Using the StageVideo APIs
    Getting started with stage video | Adobe Developer Connection
    The basics about it is if you have ever created a video player using NetStream and NetConnection then you already know how to use it. After the event fires indicating if StageVideo is available you can make use of it or determine if you need a fallback (regular Video with software rendering).
    Unlike just using the FLVPlayback component, you must create and attach your own video controls. Again if you've ever made a custom player with NC/NS classes above then chances are you've made custom controls. Just whichever buttons you desire for your functionality (play/pause, seek, volume, etc).
    It's worth repeating, I'm only recommending this because I choose this method with bundled videos. If you need to stream, NetStream will not give you the information you need for buffering/seeking. In that scenario I resort to using StageWebView on iOS which embeds a native HTML5 MP4 playback control. I actually start receiving the stream to get the metadata (video size) and generate a HTML page with a <video> tag that makes the video an appropriate size. Video in StageWebView does not work well (especially Flash video) on Android prior to KitKat so I avoid that and use StageVideo, which works great.

  • How to upload a video into Asset Library programmatically using server side code in sharepoint 2013

    How to upload a video into Asset Library programmatically using server side code in sharepoint 2013

    First you need to configure your asset library with video content type and then you can use SharePoint object model to upload the video files in it...
    check this link for setting up Asset library
    http://www.c-sharpcorner.com/UploadFile/54db21/asset-library-in-sharepoint-2010/ 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1d64a5f7-c7db-4ae0-8b0d-d0722cacf5f2/assets-library-video-files-and-c?forum=sharepointdevelopmentprevious
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • How to play a video file stored locally in the system

    hi
    how to play a video file stored locally
    thanks
    mraj

    Hi,
    You can't do that in a simple way. You need to have a port open in the firewall, and you need to have a server process on the remote machine.
    Kaj

  • How to download youtube videos to ipad without using a computer.

    How to download youtube videos to ipad without using a computer???  Looking to download some videos people created using Dr. Jean music.  My kid used Dr. Jean in preschool and wanted to keep singing them at home.
    Looking for a friend that doesn't use a computer.  I myself have downloaded some kids educational stuff and added to itunes and then put on ipod/ipad using firefox. 
    Is there an easy way, so they don't go to the photo roll??
    thanks in advance.

    There are some Apps you can use, but be careful they will only download these videos inside the App, so you won't ba able to play them in your video app or share them.
    Most popular is the app called "Video Download" but there are a lot of alternatives for free and even with more quality which you can pay for.

Maybe you are looking for

  • Avg Daily Usage

    Is there a T code,Table, or report in SAP that will display the average daily usage of a component part? Basically an average of the depreq.

  • Shift patterns for work centers

    Hi, I have question regarding shift patterns for work centers. We are actually utilizing the work centres in a aftermarket setup (service jobs). What we would like to do is to add shift patters to the work centers which look similar to this: Mo-Su 07

  • Plan-Driven in classic scenario

    Hi there. We are working with classic scenario in SRM 5.5 We are customizing plan-driven procurement (only MRP without PS and PM modules) Is it possible the next flow? For ECC system 1. MRP creates purchase requisition 2. We pass the purchase requisi

  • Cache size question...

    howdy, just a quick one. i've noticed in the new firefox (1.5) there is an option in preferences to limit the cache size. however, there seems to be no option in safari. :: is there a method to set the cache size in safari? :: any info is greatly app

  • Why is angry birds in my updates list?

    I have a brand new macbook air that's only a week or so old and has never had angry birds installed on it. I only vaguely even know what the heck angry birds is, let alone have I ever used it. Yet in the App Store on the updates tabs, low and behold