Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media Library / Playlist JSON scheme #8

Open
bakercp opened this issue Apr 1, 2013 · 1 comment
Open

Media Library / Playlist JSON scheme #8

bakercp opened this issue Apr 1, 2013 · 1 comment
Labels

Comments

@bakercp
Copy link
Member

bakercp commented Apr 1, 2013

Upon connecting to the websocket, a new client will receive the following:

{
    "message-id": INCREMENTAL_MESSAGE_ID, // generated by the server
    "command": "new-medialibrary",
    "data": {
        "assets": [
            {            
                uuid: UNIQUE_ASSET_ID,
//                title: "Title",
                file-name: "MyFile.mkv",
                duration: "Seconds",
                number-of-frames: 100 // optional
                type: "VIDEO", // VIDEO, IMAGE, SOUND,
                playcount:111,
                size: { width: 320, height:240 } // optional
                poster:base64:posterFrame,//base64 encoded poster frame
            }       

...
            {            
                uuid: UNIQUE_ASSET_ID,
                title: "Title",
                file-name: "MyFile.mkv",
                duration: "Seconds",
                number-of-frames: 100 // optional
                type: "VIDEO", // VIDEO, IMAGE, SOUND,
                playcount:111,
                size: { width: 320, height:240 } // optional
                poster:base64:posterFrame,//base64 encoded poster frame
            }            

        ]

     }
}
{
    "message-id": INCREMENTAL_MESSAGE_ID, // generated by the server
    "command": "new-playlist",
    "data": {
        "playlist-name":12345
        "playlist-uuid":12345
        "playlist-loop-mode:"LOOP",
        "playlist-repeat:"LOOP",
        "playlist-items": [  // position is implied
               {
                playlist-item-uuid:UNIQUE_ASSET_ID,
                mask-uuid:123
                ...
                }
          ]
      }
}
@ghost ghost assigned yyolk Apr 5, 2013
@yyolk
Copy link
Contributor

yyolk commented Apr 5, 2013

will implement to receive on page load for testing

@ghost ghost assigned yyolk Apr 15, 2013
yyolk added a commit that referenced this issue May 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants